Dry-run API Reference
Customers
A customer is a persisted person record for a shopper or creator in a merchant account. Partner API customers can be created, enrolled in a program, and credited.
Response blueprint
Fields returned by dry-run fixtures. Expand nested objects to inspect their fields.
array of objects — item fields
idintegeremailstringEmail address for this person.
phonestring | nullPhone number for this person.
first_namestring | nullPerson's given name.
last_namestring | nullPerson's family name.
instagram_handlestring | nullThe instagram handle for this resource.
tiktok_handlestring | nullThe tiktok handle for this resource.
balancestringStore credit amount in wallet. Eg.
"12.3", meaning $12.30codestring | nullMay be blank if customer is not enrolled yet. Public, to share with friends/followers
microsite_urlstring | nullMay be blank if customer is not enrolled yet. Public, to share with friends/followers
reward_codestring | nullMay be blank if customer is not enrolled yet. Private, to redeem their wallet balance.
redeem_urlstring | nullMay be blank if customer is not enrolled yet. Private, to redeem their wallet balance.
campaign_idinteger | nullMay be blank if customer is not enrolled yet.
enrolled_atstring | nullISO8601 timestamp when customer was enrolled. May be blank if customer is not enrolled yet.
tagsarray of stringsCustomer tags added via the admin app
Endpoints
/api/dry-run/v1/customersPOSTCreate customer/api/dry-run/v1/customersPUTUpdate customer/api/dry-run/v1/customers/{id}POSTEnroll a customer/api/dry-run/v1/customers/{id}/enrollPOSTAdd balance/api/dry-run/v1/customers/{id}/add_balanceGETGet customer insights/api/dry-run/v1/customers/{id}/insightsPOSTRedact a customer/api/dry-run/v1/customers/{id}/redact