customers
Create a customer linked to a merchant
POST
Authorizations
Merchant API key bearer token. Legacy wire prefixes api_key_ and api_ are also accepted.
Path Parameters
Merchant TypeID (mer_...) for the owner context.
Body
application/json
Create a customer under the merchant scope. Request shape depends on entityType.
- Option 1
- Option 2
Available options:
individual Individual legal first name.
Minimum string length:
1Individual legal last name.
Minimum string length:
1Idempotency key for safe create retries.
Minimum string length:
1Optional customer phone number.
Minimum string length:
1Response
201 - application/json
Minimum string length:
1Minimum string length:
1Pattern:
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Available options:
individual, organization Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$