---
title: "Add order"
method: POST
path: "/3.0/ecommerce/stores/{store_id}/orders"
tags: ["ecommerce"]
---

# Add order

`POST /3.0/ecommerce/stores/{store_id}/orders`

## Request

- Base URL: `https://api.mailchimp.com`
- URL: `https://api.mailchimp.com/3.0/ecommerce/stores/{store_id}/orders`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://login.mailchimp.com/oauth2/authorize`
    - Token URL: `https://login.mailchimp.com/oauth2/token`
- TypeScript: <https://skmtc.dev/mailchimp/apis/mailchimp-api/docs/3.0/ecommerce/stores/:store_id/orders/post.ts> (a function with typed inputs; its response is checked against the schema)

Add a new order to a store.

## Path parameters

- `store_id` string, required

## Request body

- object: Information about a specific order.
  - `billing_address` object: The billing address for the order.
    - `address1` string: The billing address for the order.
    - `address2` string: An additional field for the billing address.
    - `city` string: The city in the billing address.
    - `company` string: The company associated with the billing address.
    - `country` string: The country in the billing address.
    - `country_code` string: The two-letter code for the country in the billing address.
    - `latitude` union: The latitude for the billing address location.
      - number
      - string
    - `longitude` union: The longitude for the billing address location.
      - number
      - string
    - `name` string: The name associated with the billing address.
    - `phone` string: The phone number for the billing address
    - `postal_code` string: The postal or zip code in the billing address.
    - `province` string: The state or normalized province in the billing address.
    - `province_code` string: The two-letter code for the province in the billing address.
  - `campaign_id` string: A string that uniquely identifies the campaign for an order.
  - `cart_id` union: A cart id that the order was placed for.
    - string
    - integer
  - `cancelled_at_foreign` string: The date and time the order was cancelled in ISO 8601 format. Note: passing a value for this parameter will cancel the order being created.
  - `currency_code` string, required: The three-letter ISO 4217 code for the currency that the store accepts.
  - `customer` object, required: Information about a specific customer. For existing customers include only the `id` parameter in the `customer` object body.
    - `address` object: The customer's address.
      - `address1` string: The mailing address of the customer.
      - `address2` string: An additional field for the customer's mailing address.
      - `city` string: The city the customer is located in.
      - `country` string: The customer's country.
      - `country_code` string: The two-letter code for the customer's country.
      - `postal_code` string: The customer's postal or zip code.
      - `province` string: The customer's state name or normalized province.
      - `province_code` string: The two-letter code for the customer's province or state.
    - `company` string: The customer's company.
    - `email_address` string: The customer's email address.
    - `first_name` string: The customer's first name.
    - `id` string, required: A unique identifier for the customer. Limited to 50 characters.
    - `last_name` string: The customer's last name.
    - `opt_in_status` boolean: The customer's opt-in status. This value will never overwrite the opt-in status of a pre-existing Mailchimp list member, but will apply to list members that are added through the e-commerce API endpoints. Customers who don't opt in to your Mailchimp list [will be added as `Transactional` members](https://mailchimp.com/developer/marketing/docs/e-commerce/#customers).
  - `discount_total` union
    - number
    - string
  - `financial_status` string: The order status. Use this parameter to trigger [Order Notifications](https://mailchimp.com/developer/marketing/docs/e-commerce/#order-notifications).
  - `fulfillment_status` string: The fulfillment status for the order. Use this parameter to trigger [Order Notifications](https://mailchimp.com/developer/marketing/docs/e-commerce/#order-notifications).
  - `landing_site` string: The URL for the page where the buyer landed when entering the shop.
  - `lines` object[], required: An array of the order's line items.
    - `discount` union
      - number
      - string
    - `id` string, required: A unique identifier for the order line item.
    - `price` union, required
      - number
      - string
    - `product` object: Information about a specific product.
      - `description` string: The description of a product.
      - `handle` string: The handle of a product.
      - `image_url` string: The image URL for a product.
      - `images` object[]: An array of the product's images.
        - `id` string, required: A unique identifier for the product image.
        - `url` string, required: The URL for a product image.
        - `variant_ids` union[]: The list of product variants using the image.
          - union
            - string
            - integer
      - `published_at_foreign` string: The date and time the product was published.
      - `title` string, required: The title of a product.
      - `type` string: The type of product.
      - `url` string: The URL for a product.
      - `variants` object[], required: An array of the product's variants. At least one variant is required for each product. A variant can use the same `id` and `title` as the parent product.
        - `backorders` string: The backorders of a product variant.
        - `id` union, required: A unique identifier for the product variant.
          - string
          - integer
        - `image_url` string: The image URL for a product variant.
        - `inventory_quantity` integer: The inventory quantity of a product variant.
        - `price` union
          - number
          - string
        - `sku` string: The stock keeping unit (SKU) of a product variant.
        - `title` string, required: The title of a product variant.
        - `url` string: The URL for a product variant.
        - `visibility` string: The visibility of a product variant.
      - `vendor` string: The vendor for a product.
    - `product_id` string, required: A unique identifier for the product associated with the order line item.
    - `product_variant_id` string, required: A unique identifier for the product variant associated with the order line item.
    - `quantity` integer, required: The quantity of an order line item.
  - `order_total` union, required
    - number
    - string
  - `order_url` string: The URL for the order.
  - `outreach` object: The outreach associated with this order. For example, an email campaign or Facebook ad.
    - `id` string: A unique identifier for the outreach. Can be an email campaign ID.
  - `processed_at_foreign` string: The date and time the order was processed in ISO 8601 format.
  - `promos` object[]: The promo codes applied on the order
    - `amount_discounted` union, required
      - number
      - string
    - `code` string, required: The Promo Code
    - `type` 'fixed' | 'percentage', required: Type of discount. For free shipping set type to fixed
  - `shipping_address` object: The shipping address for the order.
    - `address1` string: The shipping address for the order.
    - `address2` string: An additional field for the shipping address.
    - `city` string: The city in the order's shipping address.
    - `company` string: The company associated with the shipping address.
    - `country` string: The country in the shipping address.
    - `country_code` string: The two-letter code for the country in the shipping address.
    - `latitude` union: The latitude for the shipping address location.
      - number
      - string
    - `longitude` union: The longitude for the shipping address location.
      - number
      - string
    - `name` string: The name associated with an order's shipping address.
    - `phone` string: The phone number for the order's shipping address.
    - `postal_code` string: The postal or zip code in the shipping address.
    - `province` string: The state or normalized province in the order's shipping address.
    - `province_code` string: The two-letter code for the province or state in the shipping address.
  - `shipping_total` union
    - number
    - string
  - `tax_total` union
    - number
    - string
  - `tracking_carrier` string: The tracking carrier associated with the order.
  - `tracking_code` 'prec': The Mailchimp tracking code for the order. Uses the 'mc_tc' parameter in E-Commerce tracking URLs.
  - `tracking_number` string: The tracking number associated with the order.
  - `tracking_url` string: The tracking URL associated with the order.
  - `updated_at_foreign` string: The date and time the order was updated in ISO 8601 format.

## Response `200`

- object: Information about a specific order.
  - `_links` object[]: A list of link types and descriptions for the API schema documents.
    - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
    - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
    - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
    - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
    - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
  - `billing_address` object: The billing address for the order.
    - `address1` string: The billing address for the order.
    - `address2` string: An additional field for the billing address.
    - `city` string: The city in the billing address.
    - `company` string: The company associated with the billing address.
    - `country` string: The country in the billing address.
    - `country_code` string: The two-letter code for the country in the billing address.
    - `latitude` number: The latitude for the billing address location.
    - `longitude` number: The longitude for the billing address location.
    - `name` string: The name associated with an order's billing address.
    - `phone` string: The phone number for the billing address.
    - `postal_code` string: The postal or zip code in the billing address.
    - `province` string: The state or normalized province in the billing address.
    - `province_code` string: The two-letter code for the province or state in the billing address.
  - `campaign_id` string: A string that uniquely identifies the campaign associated with an order.
  - `cart_id` string: A cart id that the order was placed for.
  - `cancelled_at_foreign` string, date-time: The date and time the order was cancelled in ISO 8601 format.
  - `currency_code` string: The three-letter ISO 4217 code for the currency that the store accepts.
  - `customer` object: Information about a specific customer.
    - `_links` object[]: A list of link types and descriptions for the API schema documents.
      - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
      - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
      - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
      - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
    - `address` object: The customer's address.
      - `address1` string: The mailing address of the customer.
      - `address2` string: An additional field for the customer's mailing address.
      - `city` string: The city the customer is located in.
      - `country` string: The customer's country.
      - `country_code` string: The two-letter code for the customer's country.
      - `postal_code` string: The customer's postal or zip code.
      - `province` string: The customer's state name or normalized province.
      - `province_code` string: The two-letter code for the customer's province or state.
    - `company` string: The customer's company.
    - `created_at` string, date-time: The date and time the customer was created in ISO 8601 format.
    - `email_address` string: The customer's email address.
    - `first_name` string: The customer's first name.
    - `id` string: A unique identifier for the customer.
    - `last_name` string: The customer's last name.
    - `opt_in_status` boolean: The customer's opt-in status. This value will never overwrite the opt-in status of a pre-existing Mailchimp list member, but will apply to list members that are added through the e-commerce API endpoints. Customers who don't opt in to your Mailchimp list [will be added as `Transactional` members](https://mailchimp.com/developer/marketing/docs/e-commerce/#customers).
    - `orders_count` integer: The customer's total order count.
    - `sms_phone_number` string: A US phone number for SMS contact.
    - `total_spent` union
      - number
      - string
    - `updated_at` string, date-time: The date and time the customer was last updated in ISO 8601 format.
  - `discount_total` number: The total amount of the discounts to be applied to the price of the order.
  - `financial_status` string: The order status. Use this parameter to trigger [Order Notifications](https://mailchimp.com/developer/marketing/docs/e-commerce/#order-notifications).
  - `fulfillment_status` string: The fulfillment status for the order. Use this parameter to trigger [Order Notifications](https://mailchimp.com/developer/marketing/docs/e-commerce/#order-notifications).
  - `id` string: A unique identifier for the order.
  - `landing_site` string: The URL for the page where the buyer landed when entering the shop.
  - `lines` object[]: An array of the order's line items.
    - `_links` object[]: A list of link types and descriptions for the API schema documents.
      - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
      - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
      - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
      - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
    - `discount` number: The total discount amount applied to a line item.
    - `id` string: A unique identifier for an order line item.
    - `image_url` string: The image URL for a product.
    - `price` union
      - number
      - string
    - `product_id` string: A unique identifier for the product associated with an order line item.
    - `product_title` string: The name of the product for an order line item.
    - `product_variant_id` string: A unique identifier for the product variant associated with an order line item.
    - `product_variant_title` string: The name of the product variant for an order line item.
    - `quantity` integer: The order line item quantity.
  - `order_total` union
    - number
    - string
  - `order_url` string: The URL for the order.
  - `outreach` object: The outreach associated with this order. For example, an email campaign or Facebook ad.
    - `id` string: A unique identifier for the outreach. Can be an email campaign ID.
    - `name` string: The name for the outreach.
    - `published_time` string, date-time: The date and time the Outreach was published in ISO 8601 format.
    - `type` string: The type of the outreach.
  - `processed_at_foreign` string, date-time: The date and time the order was processed in ISO 8601 format.
  - `promos` object[]: The promo codes applied on the order
    - `amount_discounted` number: The amount of discount applied on the total price. For example if the total cost was $100 and the customer paid $95.5, amount_discounted will be 4.5 For free shipping set amount_discounted to 0
    - `code` string: The Promo Code
    - `type` 'fixed' | 'percentage': Type of discount. For free shipping set type to fixed
  - `shipping_address` object: The shipping address for the order.
    - `address1` string: The shipping address for the order.
    - `address2` string: An additional field for the shipping address.
    - `city` string: The city in the order's shipping address.
    - `company` string: The company associated with an order's shipping address.
    - `country` string: The country in the order's shipping address.
    - `country_code` string: The two-letter code for the country in the shipping address.
    - `latitude` number: The latitude for the shipping address location.
    - `longitude` number: The longitude for the shipping address location.
    - `name` string: The name associated with an order's shipping address.
    - `phone` string: The phone number for the order's shipping address
    - `postal_code` string: The postal or zip code in the order's shipping address.
    - `province` string: The state or normalized province in the order's shipping address.
    - `province_code` string: The two-letter code for the province or state the order's shipping address is located in.
  - `shipping_total` union
    - number
    - string
  - `store_id` string: The unique identifier for the store.
  - `tax_total` union
    - number
    - string
  - `tracking_carrier` string: The tracking carrier associated with the order.
  - `tracking_code` 'prec': The Mailchimp tracking code for the order. Uses the 'mc_tc' parameter in E-Commerce tracking URLs.
  - `tracking_number` string: The tracking number associated with the order.
  - `tracking_url` string: The tracking URL associated with the order.
  - `updated_at_foreign` string, date-time: The date and time the order was updated in ISO 8601 format.

## Other responses

- `default`: An error generated by the Mailchimp API.

---

[API](https://skmtc.dev/mailchimp/apis/mailchimp-api.md) - [All operations](https://skmtc.dev/mailchimp/apis/mailchimp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailchimp/apis/mailchimp-api/revisions/53bf4b156855?raw)
