Skip to main content

Order placement API (0.1.0)

Download OpenAPI specification:Download

team-order-management: team-order-management@newstore.com

Beta - self-checkout / Associate App slice. Use this API to place orders for processing in the NewStore platform. A successful response means the order has been accepted; payment capture, receipt generation, and downstream processing complete asynchronously.

order-placement

Place orders into the NewStore platform.

Place an order

Place an order for processing in the NewStore platform. A successful response means the order has been accepted; payment capture, receipt generation, and downstream processing complete asynchronously.

Authorizations:
oauth2
header Parameters
idempotency-key
required
string (Idempotency-Key) [ 1 .. 256 ] characters

Caller-provided key used to make order placement safe to retry.

x-newstore-request-id
string <= 255 characters
Example: 2a0295b0-50a8-459c-82cd-5079d3f35bfb

Optional caller-provided request correlation identifier. Generated by the service when omitted.

Request Body schema: application/json

The order to place.

external_id
string or null (External Id) [ 1 .. 64 ] characters .*\S.*

Caller-supplied external identifier for correlation and external lookup. Must be unique per tenant when supplied. The order number is generated by the system.

checkout_id
string or null (Checkout Id) [ 1 .. 64 ] characters

Associated checkout ID for reconciliation.

required
object (Channel)

Describes the origin of the order.

required
object (Catalog)

The catalogue and locale used to resolve the order's items.

required
object (Pricing)

Currency and tax treatment for all prices in the payload.

required
Array of objects (Line Items) [ 1 .. 100 ] items
required
Array of objects (Fulfillments) [ 1 .. 10 ] items
required
object (Payment)

The payments attached to an order.

Responses

Request samples

Content type
application/json
{
  • "external_id": "client-order-000123",
  • "channel": {
    },
  • "catalog": {
    },
  • "pricing": {
    },
  • "line_items": [
    ],
  • "fulfillments": [
    ],
  • "payment": {
    }
}

Response samples

Content type
application/json
{
  • "id": "2a0295b0-50a8-459c-82cd-5079d3f35bfb",
  • "order_number": "ORD0000123456",
  • "external_id": "client-order-000123",
  • "items": [
    ]
}