Update a customer order

If the status is Confirmed (30) or greater, the software tries to book available products from stock immediately.

If the status is Shipped (70) or Delivered (80), and products are booked, the software creates a shipment document and picks products from the stock.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Database ID of the resource

Body Params
integer

Database ID of the customer.

string

A unique number to identify the customer order.

string

Reference of the customer order.

integer
enum

Status of customer order.

  • 10 - quotation
  • 20 - waiting for confirmation
  • 30 - confirmed
  • 40 - waiting for production
  • 50 - in production
  • 60 - ready for shipment
  • 70 - shipped
  • 80 - delivered
  • 85 - archived
  • 90 - cancelled

If the status is Confirmed (30) or greater, the software tries to book available products from stock immediately.
If the status is Shipped (70) or Delivered (80), and products are booked, the software tries to create a shipment document and pick products from stock.

integer

Date and time when this customer order was created.

integer

Date and time when this customer order should be delivered.

string | null

Delivery terms of the order.

string

Internal notes, any additional information about the order.

number

Percentage of discount.

number

Alias of discount_rate

number

Sum of discount in the order's currency.

number

Currency rate of the customer order.

integer

ID of customer order shipping address if it is selected in customer order details.

integer

Optional site ID.

If provided, products are booked from this site.
Otherwise, products are booked from the customer order's site.

integer

Database ID of the pricelist.

integer

Sales person who handles that customer order.

Optional stock lot ID or array of stock lot IDs.

If provided, products are booked from these stock lots.
Otherwise, products are booked from any stock lots.

Optional storage location ID or array of storage location IDs.

If provided, products are booked from these storage locations.
Otherwise, products are booked from any storage location.

products
array of objects

Array of products that are sold.

  • If omitted, existing lines remain unchanged.
  • Provided line_id values are updated, lines without line_id are created, and existing lines not mentioned remain unchanged.
products
Responses
202

Customer order updated

404

Resource not found

429

Rate limited - another request is running

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json