v1

latestOpenAPI 3.0.3MIT-LICENSE2026-07-2469127278.1 KB
Products

Create Product

Creates a new product (line item) for an existing order. Use this endpoint to add an additional item to the order after it has been created.

post/orders/{id}/line_items

Path parameters

idstring required

Identifier of the resource

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

X-Child-Company-Idstring

In the case of a holding company, the company id of the child company to which will process the request.

Request body

namestring required

The name of the item. It will be displayed in the order.

unit_priceinteger required

The price of the item in cents.

quantityinteger required

The quantity of the item in the order.

skustring

The stock keeping unit for the item. It is used to identify the item in the order.

brandstring

The brand of the item.

descriptionstring

Short description of the item

tagsstring[]

List of tags for the item. It is used to identify the item in the order.

metadataobject

Arbitrary key-value data for your internal use. Keys should be strings; values can be any JSON value.

Example request

{
  "name": "Box of Cohiba",
  "unit_price": 20000,
  "quantity": 1,
  "sku": "XYZ12345",
  "brand": "Cohiba",
  "description": "Imported From Mex.",
  "metadata": {
    "key": "value"
  }
}

Response

Successful operation