Create a customer
/v1/customersEmail is the only required field — every customer is uniquely identified by email per merchant. Re-creating with the same email returns the existing record.
Body parameters
emailstringrequiredCustomer email. Must be unique within your merchant account.
first_namestringoptionalGiven name.
last_namestringoptionalFamily name.
phonestringoptionalPhone in E.164 format, e.g. +2348012345678.
metadataobjectoptionalArbitrary key/value pairs (max 20 keys, values up to 500 chars).
Response
200idstringTagPay-assigned customer ID, prefixed with `cus_`.
emailstringCustomer email.
first_namestring | nullGiven name, or null.
last_namestring | nullFamily name, or null.
phonestring | nullPhone number, or null.
created_atstringISO-8601 creation timestamp.
total_chargesintegerLifetime count of successful charges by this customer.
total_spendintegerLifetime sum of successful charge amounts in kobo.
Errors
INVALID_EMAIL400Email is required and must be valid.EMAIL_EXISTS409A customer with this email already exists. Use retrieve or update instead.UNAUTHORIZED401API key missing or invalid.