Order Line Item

Upsert an order line item

Upsert an order line item

put/unstable/order-line-item

Request

  • Base URL
    https://api.authentified.co
  • Auth
    API key in header X-Authentified-API-Key

Request body

idstring required

The Unique Identifier of the order in your system

orderIdstring required

The Unique Identifier of the order this line item belongs to

productIdstring required

The Unique Identifier of the product this line item refers to

variantIdstring required

The Unique Identifier of the product variant this line item refers to

pricenumber required

The price of the line item

quantitynumber required

The quantity of the product in this line item

subTotalnumber required

The subtotal for this line item

createdAtstring date-time

The date and time when the order line item was created in your system

updatedAtstring date-time

The date and time when the order line item was updated in your system

Example request

{
  "id": "599062",
  "orderId": "192382",
  "productId": "458291",
  "variantId": "6426781",
  "price": 29.99,
  "quantity": 2,
  "subTotal": 59.98,
  "createdAt": "2023-10-01T12:12:00Z",
  "updatedAt": "2023-10-01T18:38:00Z"
}

Response

Order updated successfully

idstring required

The Unique Identifier of the order in your system

orderIdstring required

The Unique Identifier of the order this line item belongs to

productIdstring required

The Unique Identifier of the product this line item refers to

variantIdstring required

The Unique Identifier of the product variant this line item refers to

pricenumber required

The price of the line item

quantitynumber required

The quantity of the product in this line item

subTotalnumber required

The subtotal for this line item

createdAtstring date-time

The date and time when the order line item was created in your system

updatedAtstring date-time

The date and time when the order line item was updated in your system

Example response

{
  "id": "599062",
  "orderId": "192382",
  "productId": "458291",
  "variantId": "6426781",
  "price": 29.99,
  "quantity": 2,
  "subTotal": 59.98,
  "createdAt": "2023-10-01T12:12:00Z",
  "updatedAt": "2023-10-01T18:38:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.