Aller au contenu
Chargement des API keys…
Authorization<token>

Use a public key (pk./pk_test.) for payment initialization. Use a secret key (sk./sk_test.) for sensitive operations (transfers, refunds, balance), or a restricted key (rk./rk_test.) scoped to specific permissions. The _test. variant of any key selects the sandbox environment, there is no separate sandbox URL. Never expose your secret key in client-side code.

In: header

Request Body

application/json

type"individual" | "business"
"individual""business"
emailstring | null

This field is required when <code>phone</code> is not present. Must be a valid email address. Must not be greater than 255 characters.

phonestring | null

This field is required when <code>email</code> is not present. Must not be greater than 50 characters.

phone_countrystring | null

Must be 2 characters.

namestring | null

Must not be greater than 255 characters.

company_namestring | null

Must not be greater than 255 characters.

first_namestring
last_namestring
date_of_birthstring | null

Must be a valid date. Must be a date before <code>today</code>.

gender"male" | "female" | "other"
"male""female""other"
business_namestring | null

This field is required when <code>type</code> is <code>business</code>. Must not be greater than 255 characters.

business_typestring | null

Must not be greater than 128 characters.

business_registration_numberstring | null

Must not be greater than 64 characters.

tax_idstring | null

Must not be greater than 64 characters.

legal_representative_namestring | null

Must not be greater than 255 characters.

legal_representative_titlestring | null

Must not be greater than 128 characters.

descriptionstring | null

Must not be greater than 1000 characters.

notesstring | null
currencystring | null

Must be 3 characters.

addressobject | null
countrystring | null

Must be 2 characters.

citystring | null

Must not be greater than 128 characters.

address_line1string | null

Must not be greater than 255 characters.

statestring | null

Must not be greater than 128 characters.

postal_codestring | null

Must not be greater than 20 characters.

address_line2string | null

Must not be greater than 255 characters.

billingobject | null
countrystring | null

Must be 2 characters.

citystring | null

Must not be greater than 128 characters.

address_line1string | null

Must not be greater than 255 characters.

statestring | null

Must not be greater than 128 characters.

postal_codestring | null

Must not be greater than 20 characters.

address_line2string | null

Must not be greater than 255 characters.

preferred_languagestring | null

Must not be greater than 10 characters.

preferred_currenciesarray<string>

Must be 3 characters.

preferred_localesarray<string>

Must not be greater than 10 characters.

customer_groupstring | null

Must not be greater than 64 characters.

tagsarray<string>

Must not be greater than 50 characters.

metadataobject | null

Response Body

application/json

application/json

curl -X POST "https://api.wajub.com/customers" \  -H "Content-Type: application/json" \  -d '{}'
POST
/customers
{  "code": 201,  "status": "Created",  "message": "Customer created",  "customer": {    "id": "cus_01JXXX",    "email": "amina@example.com",    "name": "Amina Diallo",    "status": "active"  }}

Customer created

Que pensez-vous de ce contenu ?