Load a product catalog and attach guest purchase history
A 5-step recipe with Push. We can help you get access.
Recipe · 5 steps
Load a product catalog and attach guest purchase history
with Push
Create a product, attach a purchase to a contact, and verify it.
- Product objects are open — account-defined custom fields are sent as plain top-level members under the field name, not its label. Read them before building the payload, because the documented property list is not exhaustive for a given acco
- Create the catalog entry. Returns 201; products are addressed by UUID thereafter.
- Record the purchase under the contact. NOT idempotent — a retry creates a second purchase and inflates the guest's spend history. On a timeout, run listContactPurchases below and check before retrying.
- Read the purchase back. Purchases are addressed at ACCOUNT level once created, not under the contact, so filter by contact_id here. There is no pagination on this operation — filter narrowly rather than listing the whole account.
- Confirm the catalog entry reads back with the values that were written.
What you'll need to have ready
- accountId: The Cendyn CRM account id.
- contactId: An existing contact id. Run push-onboard-and-welcome-guest first if you do not have one.
- productName
- productPrice
- productCurrency: Currency code for the product price.
- campaignId: Optional campaign to attribute the purchase to.
For your developer
Arazzo workflow push:loadCatalogAndPurchaseHistory, 5 operations: listProductCustomFields → createProduct → createPurchase → listPurchase → showProduct. Specs on APIs.io.