Create Customer
POST/customers
Creates a customer.
Every field is optional — a customer with no details at all is valid, and useful if you only want somewhere to attach saved payment methods.
Pass the returned id as customerId when you create a payment or a subscription to link it to this buyer.
What linking does:
- A payment saved with
generatePaymentTokenstores its payment method under this customer - The customer's details are copied onto the payment at the time it is made. Editing the customer later never rewrites a payment that already happened
- A subscription gains renewal failover across the customer's other saved payment methods
Best practices:
- Create the customer once, when the buyer first registers with you, and reuse the
id - Use
metadatato store your own user identifier, so you can match your records to MONEI's
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 500
- 503
A customer object
The request is incorrect or could not be processed
Unauthorized error. Please check your auth credentials
The specified resource was not found
The request was well-formed but could not be processed due to semantic errors
Unexpected server error
The service is temporarily unavailable
¿Te ha resultado útil esta página?