技能 产品商业 Podium评论与支付管理工作流

Podium评论与支付管理工作流

v20260423
podium-core-workflow-b
该工作流集成了Podium API,用于管理核心业务流程。功能包括自动化发送客户评论邀请、列出和追踪评论状态,以及创建正式的支付发票。适用于需要全流程客户服务管理和财务记录的商业场景。
获取技能
325 次下载
概览

Podium Core Workflow B

Overview

Manage reviews and payments with Podium: request reviews from customers, track review status, and create payment invoices.

Prerequisites

  • Completed podium-core-workflow-a (messaging)
  • Reviews and Payments features enabled in Podium account

Instructions

Step 1: Request a Review

// 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}`);

Step 2: List Reviews

const { data } = await podium.get(`/locations/${locationId}/reviews`);
for (const review of data.data) {
  console.log(`  ${review.attributes.rating}/5 — ${review.attributes.body}`);
}

Step 3: Create a Payment Invoice

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}`);

Output

  • Review invitations sent to customers
  • Review listing with ratings and content
  • Payment invoices created and tracked

Error Handling

ErrorCauseSolution
422 Invalid amountAmount not in centsConvert dollars to cents (multiply by 100)
403 Payments not enabledFeature not activeEnable Payments in Podium account
Review invitation failedCustomer opted outCheck contact preferences

Resources

Next Steps

Handle webhook events: podium-webhooks-events

信息
分类 产品商业
名称 podium-core-workflow-b
版本 v20260423
大小 2.41KB
更新时间 2026-04-28
语言