firestarter_record_purchase
Log off-network purchases (e.g., Lazada, Shopify) to centralize purchase history and enable future reordering. Call right after any successful checkout outside the network.
Instructions
Record a purchase completed OUTSIDE the network — e.g. after driving checkout on Lazada, a Shopify storefront, or any other store — so Firestarter keeps one purchase history across every marketplace and can reorder the item later. Call this right after an off-network checkout succeeds, with whatever details are visible on the confirmation page. Test-environment keys only for now: live keys get a TEST_MODE_ONLY refusal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Product title as shown by the store | |
| amount | No | Total paid, in the purchase currency | |
| source | Yes | Where the purchase happened, lowercase (e.g. "lazada", "shopify", "shopee", "amazon", "other") | |
| currency | No | ISO currency code (e.g. "MYR", "USD") | |
| image_url | No | Product image URL | |
| product_url | No | Direct product page URL — reorders reopen this | |
| raw_payload | No | Any extra captured details (confirmation-page fields, shipping, options) | |
| seller_name | No | Store / seller name | |
| purchased_at | No | ISO 8601 purchase timestamp; omit for 'just now' | |
| seller_domain | No | Seller's domain (e.g. "watsons.com.my") — powers later reorders and seller discovery | |
| external_order_ref | No | The store's order id/reference from the confirmation |