Manage reviews and payments with Podium: request reviews from customers, track review status, and create payment invoices.
podium-core-workflow-a (messaging)// Send a review request to a customer
const { data } = await podium.post(`/locations/${locationId}/review-invitations`, {
data: {
attributes: {
'contact-phone': '+15551234567',
'customer-name': 'Jane Doe',
},
},
});
console.log(`Review invitation sent: ${data.data.id}`);
const { data } = await podium.get(`/locations/${locationId}/reviews`);
for (const review of data.data) {
console.log(` ${review.attributes.rating}/5 — ${review.attributes.body}`);
}
const { data } = await podium.post(`/locations/${locationId}/invoices`, {
data: {
attributes: {
'contact-phone': '+15551234567',
amount: 5000, // $50.00 in cents
description: 'Service invoice #1234',
},
},
});
console.log(`Invoice created: ${data.data.id}, amount: $${data.data.attributes.amount / 100}`);
| Error | Cause | Solution |
|---|---|---|
422 Invalid amount |
Amount not in cents | Convert dollars to cents (multiply by 100) |
403 Payments not enabled |
Feature not active | Enable Payments in Podium account |
| Review invitation failed | Customer opted out | Check contact preferences |
Handle webhook events: podium-webhooks-events