Create a new customer
Creates a new customer record for the authenticated provider. Customers represent end-users who will purchase your products. Email is required and must be unique per provider. The name field is optional but recommended for better tracking.
Request body
Response
Customer created successfully
Example response
{
"email": "customer@example.com",
"externalRef": "auth_user_12345",
"name": "John Doe",
"purchases": [
{
"amount": 9900,
"cancellationReason": "Customer request",
"cancelledAt": "2025-10-28T10:00:00Z",
"currency": "GBP",
"endDate": "2025-11-27T10:00:00Z",
"exchangeRate": 1.32,
"originalAmount": 7500,
"planRef": "pln_abc123",
"productName": "API Gateway Manager",
"productRef": "prd_abc123",
"reference": "pur_1A2B3C4D",
"startDate": "2025-10-27T10:00:00Z",
"status": "active"
}
],
"reference": "cus_3c4d5e6f7g8h"
}Changes
Changed in 9 of the 27 revisions of this API.7311
- ○
the request property
metadatabecame optionalrequest-property-became-optional
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added the pattern
^[\p{L}\p{N} .,'"&\/()+:\-]*$to the request propertynamerequest-property-pattern-added
- ▲
the
telephonerequest property type/format changed fromstring/to/request-property-type-changed
- ●
the
externalRefrequest property's maxLength was set to50request-property-max-length-set
- ●
the
namerequest property's maxLength was set to100request-property-max-length-set
- ○
added the new optional request property
descriptionnew-optional-request-property
- ○
added
subschema #1subschema #2to thetelephonerequest propertyoneOflistrequest-property-one-of-added
- ▲
- ▲
the response's body type/format changed from
object/to/for status400response-body-type-changed
This revision also has 192 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type/format changed from
/toobject/for status400response-body-type-changed
- ▲
- ○
added the optional property
purchases/items/planRefto the response with the201statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the optional property
purchases/items/productReferencefrom the response with the201statusresponse-optional-property-removed
- ○
added the optional property
purchases/items/productRefto the response with the201statusresponse-optional-property-added
- ●
- ▲
added the new required request property
metadatanew-required-request-property
- ▲
the
emailrequest property type/format changed fromstring/tostring/emailrequest-property-type-changed
- ○
added the new optional request property
telephonenew-optional-request-property
- ○
added the optional property
purchases/items/exchangeRateto the response with the201statusresponse-optional-property-added
- ○
added the optional property
purchases/items/originalAmountto the response with the201statusresponse-optional-property-added
This revision also has 44 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the required property
purchases/items/planNamefrom the response with the201statusresponse-required-property-removed
- ○
added the optional property
purchases/items/planSnapshotto the response with the201statusresponse-optional-property-added
- ○
added the required property
purchases/items/productNameto the response with the201statusresponse-required-property-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○