Authorization
default A public key (pk./pk_test.) is accepted on /payments, /customers, /links, /invoices and the catalogue reads (/channels, /providers, /countries, /currencies); anything that moves money out, reads the balance or manages the account answers 406 to it. It is an identifier, never an authorization. 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
Path Parameters
Customer `id`.
Request Body
application/json
Email address.
Phone number, international format.
Two-letter country code the phone number is read in when it is written without its international prefix.
Full name, or the business name of a business. Changes only when you send it.
Accepted for older integrations: copied into `business_name` when that one is not sent.
Refused: send the full name in `name`.
Refused: send the full name in `name`.
Individuals only: the date of birth, `YYYY-MM-DD`, before today.
Individuals only.
"male""female""other"Businesses only: the registered name.
Businesses only: the legal form or line of business, as you record it.
Businesses only: the trade register number.
Businesses only: a tax number kept on the profile. The tax ids Tax checks are added with `POST /customers/{id}/tax_ids`.
Businesses only: who signs for the business.
Businesses only: their title.
Your description of the customer, up to 1 000 characters.
Your internal notes.
Preferred currency, ISO 4217.
The primary shipping address.
Two-letter country code.
City.
Street and number.
State or region.
Postal code, where the country has them.
Building, floor or landmark.
The primary billing address, with the same fields as `address`.
Two-letter country code.
City.
Street and number.
State or region.
Postal code, where the country has them.
Building, floor or landmark.
The customer's language, `fr` or `en`: invoices sent to them are written in it.
ISO 4217 codes.
Locales such as `fr` or `en`.
A group name of your own, to filter the list with `customer_group`.
Your labels, up to 50 characters each.
Free-form key-value data.
Response Body
application/json
application/json
curl -X PUT "https://api.wajub.com/customers/cus_Qe7Tb2Wn5Lr9Xc4Mv8Hk1Zs3" \ -H "Content-Type: application/json" \ -d '{}'{ "code": 200, "status": "OK", "message": "Customer updated", "customer": { "id": "cus_Qe7Tb2Wn5Lr9Xc4Mv8Hk1Zs3" }}OK