Claim a guest customer
/customer_claimsLinks a guest customer to the account in your app. When your reference already has a customer, Pay.com moves the guest's subscriptions, orders and entitlements to it. Nothing about the payments changes.
- From your server, when your system can prove the app account started the purchase: send the guest's
guest_customerand yourcustomer_reference_id. - With the emailed link: Pay.com emails the customer a single-use link to your claim page, valid for 30 days. After they sign in, send its
tokenand yourcustomer_reference_id.
Pay.com never claims a purchase by matching an email address. Claiming again with the same reference does nothing new. Another reference returns 409 with already_claimed.
Headers
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace. A retry with the same key, endpoint and body gets the first response. Another endpoint or body gets 400 idempotency_error, and a retry while the first is running gets 409.
Parameters
customer_reference_idstringRequiredYour ID for the app account.
guest_customerstringThe guest's customer ID (cust_).
tokenstringThe single-use token from the emailed link.
Returns
The claim.
idstringresourcestringcustomerstringcustomer_reference_idstringmethodstringcreatedstringtest_modebooleanErrors
400401403404409