---
title: "Create order"
method: POST
path: "/order/initiate"
tags: ["Orders"]
---

# Create order

`POST /order/initiate`

This is where you can initiate an order with ShopBack, by using the **initiateOrder** method. We also provide a number of methods to refund orders. For example if the consumer returns one (or all) item(s) of an order, you can initiate a full or partial refund. You would be asked to send us the SKU number of the items to be refunded.

## Headers

- `Authorization` string, required
- `X-ShopBack-Idempotent-Id` string

## Response `200`

successful operation

- InitiatedOrderResponse
  - `orderContextToken` string
  - `orderId` integer, required
  - `orderUuid` string

## Other responses

- `404` — Not Found, Merchant not found/Currency not found
- `412` — Precondition Failed.**Example of** possible error messages: * Provided token is invalid or expired * Order with requested external ids already exists * Consumer country is not supported for this operation * BillingAddress Country is not merchant supported * There was an error with the scanned QR code. Please ensure that you have scanned the correct QR code from our merchant partners.
- `500` — Internal Server Error, Something went wrong on servers's end.

---

[API](https://skmtc.net/shopback/apis/online-payments-api.md) · [All operations](https://skmtc.net/shopback/apis/online-payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopback/online-payments-api/versions/160fc287769e/schema)
