Organization API: Customers: Store
The 7 Organization API operations for store.
Part of Customers.
GET /api/v1/orgs/{org_slug}/store/customers/me
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
PATCH /api/v1/orgs/{org_slug}/store/customers/me
Name, phone, marketing consent (the shopper alone turns it on) and VAT id.
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
first_name |
string or null |
no |
last_name |
string or null |
no |
phone |
string or null |
no |
accepts_marketing |
boolean or null |
no |
vat_id |
string or null |
no |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
GET /api/v1/orgs/{org_slug}/store/customers/me/addresses
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
POST /api/v1/orgs/{org_slug}/store/customers/me/addresses
An address needs address_1, city and country_code; the first
one saved is the default for shipping and billing.
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
first_name |
string or null |
no |
last_name |
string or null |
no |
company |
string or null |
no |
address_1 |
string or null |
no |
address_2 |
string or null |
no |
city |
string or null |
no |
province |
string or null |
no |
postal_code |
string or null |
no |
country_code |
string or null |
no |
phone |
string or null |
no |
is_default_shipping |
boolean or null |
no |
is_default_billing |
boolean or null |
no |
metadata |
object or null |
no |
| Status |
Meaning |
201 |
Success. |
422 |
The request is not valid. detail lists each problem. |
PATCH /api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}
| Name |
In |
Type |
Required |
address_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
first_name |
string or null |
no |
last_name |
string or null |
no |
company |
string or null |
no |
address_1 |
string or null |
no |
address_2 |
string or null |
no |
city |
string or null |
no |
province |
string or null |
no |
postal_code |
string or null |
no |
country_code |
string or null |
no |
phone |
string or null |
no |
is_default_shipping |
boolean or null |
no |
is_default_billing |
boolean or null |
no |
metadata |
object or null |
no |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
DELETE /api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}
| Name |
In |
Type |
Required |
address_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
GET /api/v1/orgs/{org_slug}/store/customers/me/orders
The shopper's orders in the key's mode, newest first.
| Name |
In |
Type |
Required |
Description |
org_slug |
path |
string |
yes |
|
limit |
query |
integer |
no |
Default: 20. |
offset |
query |
integer |
no |
Default: 0. |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |