Customer credit
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/customer-credit.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
Customer credit: money held for a customer, added or taken out by hand and used to pay their sales orders.
Learn more: Take payments and refunds
3 operations
- POSTAdd or take out customer credit
/Adds credit to the customer's balance (v1/ api/ store/ {team_slug}/ customer/ {hash_id}/ credit action: deposit) or takes it out (action: withdraw), and returns the entry. - GETList a customer's credit history
/Lists the customer's credit entries, newest first: credit added or taken out by hand, credit used to pay sales orders, sales order payments refunded to credit, Customer Portal payments received into credit and later changes to them…v1/ api/ store/ {team_slug}/ customer/ {hash_id}/ credit - GETGet a customer credit entry
/Returns one credit entry of the customer.v1/ api/ store/ {team_slug}/ customer/ {hash_id}/ credit/ {id}
