# Organization API: Customers: Store

> The 7 Organization API operations for store.

Source: https://www.coritan.com/docs/api/reference/organizations/customers/store/

Part of [Customers](/docs/api/reference/organizations/customers/).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| GET | [`/api/v1/orgs/{org_slug}/store/customers/me`](#op-get-api-v1-orgs-org-slug-store-customers-me) | Get me |
| PATCH | [`/api/v1/orgs/{org_slug}/store/customers/me`](#op-patch-api-v1-orgs-org-slug-store-customers-me) | Name, phone, marketing consent (the shopper alone turns it on) and VAT id |
| GET | [`/api/v1/orgs/{org_slug}/store/customers/me/addresses`](#op-get-api-v1-orgs-org-slug-store-customers-me-addresses) | List my addresses |
| POST | [`/api/v1/orgs/{org_slug}/store/customers/me/addresses`](#op-post-api-v1-orgs-org-slug-store-customers-me-addresses) | Add my address |
| PATCH | [`/api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}`](#op-patch-api-v1-orgs-org-slug-store-customers-me-addresses-address-id) | Update my address |
| DELETE | [`/api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}`](#op-delete-api-v1-orgs-org-slug-store-customers-me-addresses-address-id) | Delete my address |
| GET | [`/api/v1/orgs/{org_slug}/store/customers/me/orders`](#op-get-api-v1-orgs-org-slug-store-customers-me-orders) | The shopper's orders in the key's mode, newest first |

### Get me {#op-get-api-v1-orgs-org-slug-store-customers-me}

`GET /api/v1/orgs/{org_slug}/store/customers/me`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Name, phone, marketing consent (the shopper alone turns it on) and VAT id {#op-patch-api-v1-orgs-org-slug-store-customers-me}

`PATCH /api/v1/orgs/{org_slug}/store/customers/me`

Name, phone, marketing consent (the shopper alone turns it on) and VAT id.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |

#### Request body

`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 |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### List my addresses {#op-get-api-v1-orgs-org-slug-store-customers-me-addresses}

`GET /api/v1/orgs/{org_slug}/store/customers/me/addresses`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Add my address {#op-post-api-v1-orgs-org-slug-store-customers-me-addresses}

`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.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |

#### Request body

`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 |

#### Responses

| Status | Meaning |
| --- | --- |
| `201` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Update my address {#op-patch-api-v1-orgs-org-slug-store-customers-me-addresses-address-id}

`PATCH /api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `address_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Request body

`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 |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Delete my address {#op-delete-api-v1-orgs-org-slug-store-customers-me-addresses-address-id}

`DELETE /api/v1/orgs/{org_slug}/store/customers/me/addresses/{address_id}`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `address_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### The shopper's orders in the key's mode, newest first {#op-get-api-v1-orgs-org-slug-store-customers-me-orders}

`GET /api/v1/orgs/{org_slug}/store/customers/me/orders`

The shopper's orders in the key's mode, newest first.

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_slug` | path | string | yes |  |
| `limit` | query | integer | no | Default: `20`. |
| `offset` | query | integer | no | Default: `0`. |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
