Customers API
Last updated
Last updated
To create a Customer you'll need to provide:
Valid Authorization
header (see above how to create one)
Valid request
name | value | description |
---|---|---|
field | length | type | required | description |
---|---|---|---|---|
Example of response:
To retrieve previously created customer you'll need to provide:
Valid Authorization
header (see above how to create one)
Create resource beforehand
Provide valid resource uuid
Response is the same as the one for create
To retrieve previously created customer you'll need to provide:
Valid Authorization
header (see above how to create one)
Create resource beforehand
Provide valid merchant_customer_id
Response is the same as the one for create
To update previously created customer you'll need to provide:
Valid Authorization
header (see above how to create one)
Create resource beforehand
Provide valid resource uuid
Updates the specified customer by setting the values of the parameters passed.
Any parameters not provided will be left unchanged.
Fields available for create
are also available for update.
Setting key to null in metadata will unset value for that key.
Response is the same as the one for create
To delete previously created customer you'll need to provide:
Valid Authorization
header (see above how to create one)
Create resource beforehand
Provide valid resource uuid
Example of response:
To list previously created customers you'll need to provide:
Valid Authorization
header (see above how to create one)
|field| length | type |description|
|status| enum | String
|approved, invalid-request or error| |data|20 |Array<Dictionary>
| An array of customers |
To list previously created customers you'll need to provide:
Valid Authorization
header (see above how to create one)
field | length | type | description |
---|---|---|---|
name | value | description |
---|---|---|
name | value | description |
---|---|---|
name | value | description |
---|---|---|
name | value | description |
---|---|---|
field | length | type | description |
---|---|---|---|
name | value | description |
---|---|---|
name | value | description |
---|---|---|
field | length | type | description |
---|---|---|---|
path
v2/customers
This path is used for create action
method
POST
We are creating resource, hence POST
method
merchant_customer_id
1-100
String
NO
Merchant's customer id
description
1-200
String
NO
The Customer description
1-200
String
NO
Customer’s email address.
name
1-50
String
NO
Customer’s full name or business name.
phone
1-30
String
NO
Customer's phone
metadata
predefined
Dictionary
NO
Set of key-value pairs. Useful for storing additional data about the object
zip_code
1-9
String
NO
Customer's ZIP or postal code.
city
3-30
String
NO
Customer's city, district, suburb, town, or village.
address
3-100
String
NO
Customer's address
country
2
String
NO
Two-letter country code, see ISO 3166-1 alpha-2
status
enum
String
approved, invalid-request or error
uuid
predefined
String
Customer's uuid - use this value for operations with customer
merchant_customer_id
100
String
Merchant's customer id
description
1-200
String
The Customer description
1-200
String
Customer’s email address.
name
1-50
String
Customer’s full name
phone
1-30
String
Customer's phone
metadata
predefined
Dictionary
Set of key-value pairs. Useful for storing additional data about the object
zip_code
1-9
String
Customer's ZIP or postal code.
city
3-30
String
Customer's city
address
3-100
String
Customer's address
country
2
String
Two-letter country code, see ISO 3166-1 alpha-2
deleted
predefined
Boolean
True if customer is deleted
created_at
predefined
DateTime
Created at
updated_at
predefined
DateTime
Created at
deleted_at
predefined
DateTime
Nullable, set if customer is deleted
path
/v2/customers/:uuid
uuid
of previously created resource
method
GET
path
/v2/merchants/customers/:merchant_customer_id
merchant_customer_id
of previously created resource
method
GET
path
/v2/customers/:uuid
uuid
of previously created resource
method
POST
We are updating resource, hence POST
method
path
/v2/customers/:uuid
uuid
of previously created resource
method
DELETE
status
enum
String
approved, invalid-request or error
id
20
String
Customer's id
deleted
predefined
Boolean
True if customer is deleted
path
/v2/customers
uuid
of previously created resource
method
GET
We are retrieving resources, thus GET
query
limit
Limit number of objects listed, default limit is 50
. Must be valid number.
query
offset
If you need to skip values set offset to non 0 value, objects are sorted by created_at DESC
. Must be valid number.
path
/v2/customers/:uuid/payment-methods
uuid
of previously created resource
method
GET
We are retrieving resources, thus GET
query
limit
Limit number of objects listed, default limit is 50
. Must be valid number.
query
offset
If you need to skip values set offset to non 0 value, objects are sorted by created_at DESC
. Must be valid number.
status
enum
String
approved, invalid-request or error
data
20
Array<Dictionary>
An array of customers