URL
PATCH
/api/v1/customers/update
Parameters
Name |
Type |
Method |
Required |
Default |
Description |
email |
string |
GET |
yes |
|
E-mail zákazníka. |
enabled |
bool |
POST |
no |
|
Príznak, či má byť zákazník povolený alebo zakázaný. |
Response
HTTP 204 - No Content
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
URL
GET
/api/v1/customers/list
Parameters
Name |
Type |
Method |
Required |
Default |
Description |
page |
int |
GET |
no |
1 |
Stránkovanie. |
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"page": 1,
"pages": 1,
"itemsCount": 2,
"itemsPerPage": 10,
"customers": [
{
"id": 1,
"email": "customer@example.org",
"enabled": 1,
"price_level_id": 1
},
{
"id": 2,
"email": "customer2@example.org",
"enabled": 0,
"price_level_id": 2
}
]
}
URL
GET
/api/v1/customers/count
Response
HTTP 200 - OK
Host: example.org
Content-Type: application/vnd.shoptec.v1.0+json; charset=utf-8
{
"count": 2
}