Zum Inhalt springen

Endpoints

Orders & products

Orders, their items and timeline, and the product catalog.

Pfade sind relativ zur Basis-URL. Jede Karte zeigt die Berechtigung, die der Aufruf braucht, und jeden Parameter mit Typ und Grenzen.

GET
/orders

List orders, newest first.

Berechtigung: orders
Paginiert

Query-Parameter

  • statusoptionalenum

    Fulfillment status.

    Erlaubte Werte:unfulfilledshippeddeliveredcancelledfailed

  • payment_statusoptionalenum

    Payment status.

    Erlaubte Werte:pendingpaid

  • contact_idoptionalinteger

    Orders of this contact.

  • created_sinceoptionalstring (ISO 8601 date-time with offset)

    Orders created at or after this time.

GET
/orders/:id

Retrieve an order with its items.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

POST
/orders

Create an order for a contact.

Berechtigung: orders

JSON-Body

  • contact_iderforderlichinteger

    The customer.

  • itemserforderlicharray of objects

    1–200 items. Each item: name (required), quantity (required), unit_price (required), product_id, sku.

  • currencyoptionalstring

    Three-letter ISO 4217 code, e.g. "USD".

  • notesoptionalstring | null

    Up to 2,000 characters.

  • statusoptionalenum

    Fulfillment status.

    Erlaubte Werte:unfulfilledshippeddeliveredcancelledfailed

  • payment_statusoptionalenum

    Payment status.

    Erlaubte Werte:pendingpaid

  • paid_amountoptionalnumber

    ≥ 0.

  • shipping_feeoptionalnumber

    ≥ 0.

PATCH
/orders/:id

Update order details. Send at least one field.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

JSON-Body

  • statusoptionalenum

    Fulfillment status.

    Erlaubte Werte:unfulfilledshippeddeliveredcancelledfailed

  • payment_statusoptionalenum

    Payment status.

    Erlaubte Werte:pendingpaid

  • paid_amountoptionalnumber

    ≥ 0.

  • shipping_feeoptionalnumber

    ≥ 0.

  • notesoptionalstring

    Up to 2,000 characters.

PUT
/orders/:id/status

Change the fulfillment status.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

JSON-Body

  • statuserforderlichenum

    Fulfillment status.

    Erlaubte Werte:unfulfilledshippeddeliveredcancelledfailed

POST
/orders/:id/items

Add an item to an order.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

JSON-Body

  • nameerforderlichstring

    Line name, 1–255 characters.

  • quantityerforderlichinteger

    1–100,000.

  • unit_priceerforderlichnumber

    0–100,000,000, in the order currency.

  • product_idoptionalinteger | null

    A product of this workspace (see GET /products).

  • skuoptionalstring | null

    Up to 100 characters.

  • Items can only change while the order is unfulfilled and unpaid (409 order_not_editable).
PATCH
/orders/:id/items/:itemId

Change the quantity of an order item.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

  • itemIderforderlichinteger

    Order item ID.

JSON-Body

  • quantityerforderlichinteger

    1–100,000.

  • Only while the order is unfulfilled and unpaid.
DELETE
/orders/:id/items/:itemId

Remove an item from an order.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

  • itemIderforderlichinteger

    Order item ID.

  • An order needs at least one item: removing the last one answers 409 (cancel the order instead).
POST
/orders/:id/timeline

Add a note to the order timeline.

Berechtigung: orders

Pfadparameter

  • iderforderlichinteger

    Order ID.

JSON-Body

  • noteerforderlichstring

    1–2,000 characters.

GET
/products

List catalog products, newest first.

Jedes Teammitglied
Paginiert

Query-Parameter

  • searchoptionalstring

    Matches the product name, up to 200 characters.

  • in_stockoptionalenum

    Stock filter.

    Erlaubte Werte:truefalse

  • sourceoptionalenum

    Where the product came from.

    Erlaubte Werte:manualshopifytrendyol

GET
/products/:id

Retrieve a product.

Jedes Teammitglied

Pfadparameter

  • iderforderlichinteger

    Product ID.

POST
/products

Create a product.

Berechtigung: business_pages

JSON-Body

  • nameerforderlichstring

    1–500 characters.

  • descriptionoptionalstring | null

    Up to 20,000 characters.

  • priceoptionalnumber | string | null

    A number ≥ 0, or a price text up to 50 characters.

  • original_priceoptionalnumber | string | null

    Price before discount. Same format as price.

  • currencyoptionalstring | null

    Up to 10 characters, e.g. "USD".

  • skuoptionalstring | null

    Up to 200 characters.

  • brandoptionalstring | null

    Up to 200 characters.

  • in_stockoptionalboolean | null

    Whether the product is available.

  • stock_quantityoptionalinteger | null

    Units in stock, ≥ 0.

  • image_urloptionalstring (URL) | null

    Main image, up to 2,048 characters.

  • imagesoptionalarray of strings (URL)

    Up to 50 image URLs.

  • urloptionalstring (URL) | null

    Product page URL.

  • tagsoptionalarray of strings

    Up to 100 tags, 100 characters each.

  • categoriesoptionalarray of strings

    Up to 100 categories, 100 characters each.

PATCH
/products/:id

Update a product. Send at least one field.

Berechtigung: business_pages

Pfadparameter

  • iderforderlichinteger

    Product ID.

JSON-Body

  • nameoptionalstring

    1–500 characters.

  • descriptionoptionalstring | null

    Up to 20,000 characters.

  • priceoptionalnumber | string | null

    A number ≥ 0, or a price text up to 50 characters.

  • original_priceoptionalnumber | string | null

    Price before discount. Same format as price.

  • currencyoptionalstring | null

    Up to 10 characters, e.g. "USD".

  • skuoptionalstring | null

    Up to 200 characters.

  • brandoptionalstring | null

    Up to 200 characters.

  • in_stockoptionalboolean | null

    Whether the product is available.

  • stock_quantityoptionalinteger | null

    Units in stock, ≥ 0.

  • image_urloptionalstring (URL) | null

    Main image, up to 2,048 characters.

  • imagesoptionalarray of strings (URL)

    Up to 50 image URLs.

  • urloptionalstring (URL) | null

    Product page URL.

  • tagsoptionalarray of strings

    Up to 100 tags, 100 characters each.

  • categoriesoptionalarray of strings

    Up to 100 categories, 100 characters each.

DELETE
/products/:id

Delete a product.

Berechtigung: business_pages

Pfadparameter

  • iderforderlichinteger

    Product ID.