Skip to Content
StarsellDocs
API referenceOrders

Update an order

PATCH
/stores/{storeId}/orders/{orderId}

Move an order on: ship with tracking, deliver, cancel, mark paid, refund in full, add a note, set tags or the staff note, archive. Everything sent is applied together, or nothing is. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

orderId*string

The order id, or its number (1042)

Header Parameters

Idempotency-Key?string

Makes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.

Match^[!-~]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
fulfillment_status?string
Value in"sent_to_supplier""shipped""delivered""returned"
status?"cancelled"
Value in"cancelled"
payment_status?string
Value in"paid""refunded"
tracking?string

With fulfillment_status shipped, or alone to change it on an order that left

note?string

Added to the order timeline. Each call adds it again, unless it repeats an Idempotency-Key

tags?array<>
staff_note?|null
archived?boolean

true archives the order, false brings it back

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://starsell.app/api/v1/stores/string/orders/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "number": 0,    "label": "string",    "status": "open",    "payment_status": "paid",    "fulfillment_status": "unfulfilled",    "currency": "string",    "subtotal_minor": 0,    "discount_minor": 0,    "discounts": [      {        "discount_id": "49c104c1-008b-4f4f-abbc-6958059cb48b",        "code": "string",        "title": "string",        "kind": "amount_off_products",        "amount_minor": 0      }    ],    "shipping_minor": 0,    "tax_minor": 0,    "tax_included": true,    "tip_minor": 0,    "payment_method": "string",    "total_minor": 0,    "channel": "string",    "tracking": "string",    "test": true,    "tags": [      "string"    ],    "staff_note": "string",    "archived": true,    "archived_at": "2019-08-24T14:15:22Z",    "customer": {      "email": "string",      "phone": "string",      "name": "string",      "first_name": "string"    },    "shipping_address": {      "line1": "string",      "city": "string",      "zip": "string",      "country": "string"    },    "note": "string",    "items": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",        "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",        "title": "string",        "variant_name": "string",        "quantity": 0,        "price_minor": 0,        "discount_minor": 0,        "image_url": "string",        "parts": [          {            "product_id": "string",            "variant_id": "string",            "title": "string",            "variant_name": "string",            "quantity": 0          }        ]      }    ],    "item_count": 0,    "status_url": "string",    "admin_url": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}