---
title: "Notify a paid order"
method: POST
path: "/commerce/orders"
tags: ["Commerce"]
---

# Notify a paid order

`POST /commerce/orders`

## Request

- Base URL: `https://sending.dev/api/v1`
- URL: `https://sending.dev/api/v1/commerce/orders`
- Auth: HTTP bearer

Closes the source cart, emits `order_paid`, `placed_order` and one `ordered_product` per item, and records the conversion. A buyer who is not a contact yet is created as a transactional-only contact (consent `not_subscribed`: receipts and notices, no marketing campaigns or automations, and not counted toward the plan's contact limit) instead of dropping the order. The events are deduplicated on `externalId`: sending the same order again returns 202 without emitting second events or starting post-purchase automations twice. Required scope: `commerce:write`. Requires a plan with the `ecommerce` feature.

## Request body

- CommerceOrderInput
  - `externalId` string, required
  - `email` string, email, required
  - `items` object[]
    - `title` string, required
    - `quantity` integer
    - `price` number
    - `imageUrl` string
    - `url` string
    - `productId` string
  - `total` number, required
  - `currency` string
  - `cartExternalId` string

## Response `202`

Order accepted.

- CommerceAccepted
  - `status` 'accepted', required

## Other responses

- `401`: Missing or invalid token.
- `402`: Plan quota exceeded.
- `403`: Insufficient scope.
- `422`: Invalid input.

---

[API](https://skmtc.dev/sending/apis/sending-dev-api.md) · [All operations](https://skmtc.dev/sending/apis/sending-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sending/apis/sending-dev-api/revisions/9fe78d2918a1?raw)
