**Version: 202201**

# Update Order

**PUT** `/openapi/2022-01/orders/:id`

Allows users to update the details of an existing order.

## Request

**Path Parameters**

- `id` string (required)

  Order's ID

**application/json**

**Body | Example**

**Body**

- `note` string
- `tags` string

  Order's tags, separated by comma, for example: `a,b`
- `buyer_accespts_marketing` boolean

  Whether customer accept marketing campaign
- `shipping_address` object

  - `first_name` string

    First name of consignee.
  - `last_name` string

    Last name of consignee.
  - `email` string
  - `phone` string

    Phone number, for example: `5052814445`
  - `country` string

    Country, for example: `United States`
  - `country_code` string

    Country code, for example: `US`
  - `province` string

    Province, for example: `New Mexico`
  - `province_code` string

    Province Code, for example: `NM`
  - `city` string

    City, for example: `SAN JOSE`
  - `area` string

    Area, for example: `Bay area`
  - `address1` string

    Street address, for example: `1 Rue des Carrieres`
  - `address2` string

    Apartment/floor/room number, for example: `Suite 1234`
  - `company` string

    Company, for example: `ABC Limited`
  - `latitude` string

    Latitude of the delivery address, for example: `22.54`
  - `longitude` string

    Longitude of the delivery address, for example: `114.06`
  - `phone_area_code` string

    Area code, for example: `+86`
  - `zip` string

    ZIP code, for example: `87036`

```json
{
  "note": "string",
  "tags": "string",
  "buyer_accespts_marketing": true,
  "shipping_address": {
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone": "string",
    "country": "string",
    "country_code": "string",
    "province": "string",
    "province_code": "string",
    "city": "string",
    "area": "string",
    "address1": "string",
    "address2": "string",
    "company": "string",
    "latitude": "string",
    "longitude": "string",
    "phone_area_code": "string",
    "zip": "string"
  }
}
```

## Responses

**200**

200

**application/json**

No schema
