POST
/
v2
/
orders
Create orders
curl --request POST \
  --url https://dev.sbx.imprint.co/v2/orders \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "77f60af4-185e-4867-b113-34e3cf7c6acd",
  "customer_id": "1bb0ab64-ed57-4f2f-bd8d-ab04d1a365c5",
  "payment_method_id": "0144ea84-3c39-4382-a37a-03c699b77646",
  "partner_order_id": "o-c8a1fe46bbff4a18ba1d",
  "merchant_id": "m-123456789",
  "merchant_name": "Crate & Barrel",
  "merchant_address": [
    {
      "street_line1": "123 Main St",
      "street_line2": "Apt 4B",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "country": "USA"
    }
  ],
  "order_lines": [
    {
      "name": "Couch Supreme",
      "product_url": "www.crate.com/couch-supreme",
      "quantity": 1,
      "rate": 274999,
      "rewards_rate": 2500
    }
  ],
  "total_order_amount": 274999,
  "total_rewards_amount": 2500,
  "currency": "USD",
  "created_at": "2025-02-13T19:08:07Z",
  "updated_at": "2025-02-13T19:08:07Z"
}'
{
  "id": "77f60af4-185e-4867-b113-34e3cf7c6acd",
  "customer_id": "1bb0ab64-ed57-4f2f-bd8d-ab04d1a365c5",
  "payment_method_id": "0144ea84-3c39-4382-a37a-03c699b77646",
  "partner_order_id": "o-c8a1fe46bbff4a18ba1d",
  "merchant_id": "m-123456789",
  "merchant_name": "Crate & Barrel",
  "merchant_address": [
    {
      "street_line1": "123 Main St",
      "street_line2": "Apt 4B",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "country": "USA"
    }
  ],
  "order_lines": [
    {
      "name": "Couch Supreme",
      "product_url": "www.crate.com/couch-supreme",
      "quantity": 1,
      "rate": 274999,
      "rewards_rate": 2500
    }
  ],
  "total_order_amount": 274999,
  "total_rewards_amount": 2500,
  "currency": "USD",
  "created_at": "2025-02-13T19:08:07Z",
  "updated_at": "2025-02-13T19:08:07Z"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Body

application/json

Response

200 - application/json

Orders created successfully

The response is of type object.