Customers

Customer data and their self-service entry point.

View as Markdown

Customers are usually created automatically when a Hosted Checkout completes, or you can create one directly via the API. Customers self-manage their subscription and payment methods through the /portal/{customerId} magic-link flow — this is an existing product mechanism with no corresponding developer API today (there's no server-to-server endpoint to mint a Portal session); magic-link verification still requires the customer to enter their own email.

GET/api/Customer— List customers
PropertyValue
Required scopecustomers:read
Idempotency-KeyNot required
ParameterInTypeRequired
pagequeryinteger (int32)
pageSizequeryinteger (int32)
orderByquerystring
orderDirectionquerystring
createdFromquerystring (date-time)
createdToquerystring (date-time)
POST/api/Customer— Create a new customer
PropertyValue
Required scopecustomers:write
Idempotency-KeyNot required
ParameterInTypeRequired
emailbodystring (email)
externalIdbodystring
metadatabodyobject
namebodystring
statusbodystring
GET/api/Customer/{customerId}— Retrieve a single customer
PropertyValue
Required scopecustomers:read
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
PUT/api/Customer/{customerId}— Update a customer
PropertyValue
Required scopecustomers:write
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
emailbodystring (email)
externalIdbodystring
metadatabodyobject
namebodystring
statusbodystring
GET/api/Customer/{customerId}/CustomValue— 顧客:CustomValue。
PropertyValue
Required scopecustomers:read
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
pagequeryinteger (int32)
pageSizequeryinteger (int32)
orderByquerystring
orderDirectionquerystring
createdFromquerystring (date-time)
createdToquerystring (date-time)
POST/api/Customer/{customerId}/CustomValue— 顧客:CustomValue。
PropertyValue
Required scopecustomers:write
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
PUT/api/Customer/{customerId}/CustomValue— 顧客:CustomValue。
PropertyValue
Required scopecustomers:write
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
POST/api/Customer/{customerId}/EntitlementOverride— 顧客:EntitlementOverride。
PropertyValue
Required scopeentitlements:write
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
allowedbodystring
limitbodyinteger (int32)
limitAmountbodyinteger (int32)
GET/api/Customer/{customerId}/PaymentMethod— List a customer's saved payment method refs
PropertyValue
Required scopepayments:read
Idempotency-KeyNot required
ParameterInTypeRequired
customerIdpathstringRequired
pagequeryinteger (int32)
pageSizequeryinteger (int32)
orderByquerystring
orderDirectionquerystring
createdFromquerystring (date-time)
createdToquerystring (date-time)