post http://{{url}}/v1/customers/
You can use this API to update customer information (eg email address) or add more payment sources to a customer.
Flow
You can:
- Add a new payment source with credit card
- Add a new payment source with one-time token
- Add a new payment source with vault token
- Set default source. By default default source always equal a new added payment source
Request params
| field | required | type | description |
|---|---|---|---|
| id | + | string (24 hex characters) | _id received at the creation stage |
Request body
| field | required[flow] | type | description |
|---|---|---|---|
| token | +2 | string(UIID) | One-time token with all the payment source information |
| reference | - | string | Manually defined reference for customer in payment systems |
| description | - | string | Customer description. This is customer internal description |
| company_name | - | string | Customer company name |
| first_name | - | string | Customer first name |
| last_name | - | string | Customer last name |
| - | string | Customer email | |
| phone | - | string(E.164) | Customer phone in E.164 international notation (Example: +12345678901) |
| default_source | + | string (24 hex characters) | Payment source used by default |
| payment_source | +2, +3 | object | See create customer |
