Taxes

Create new taxes for an existing orden

post/orders/{id}/tax_lines

Request

Path parameters

idstring required
Example:6307a60c41de27127515a575

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

amountinteger required

The amount to be collected for tax in cents

descriptionstring required

description or tax's name

metadataobject

Example request

{
  "amount": 100,
  "description": "testing",
  "metadata": {
    "key": "value"
  }
}

Response

successful

amountinteger required

The amount to be collected for tax in cents

descriptionstring required

description or tax's name

metadataobject
idstring required
objectstring
parent_idstring

Example response

{
  "amount": 100,
  "description": "testing",
  "metadata": {
    "key": "value"
  },
  "id": "tax_lin_2tQ8dC5mg1UADmVPo",
  "object": "tax_line",
  "parent_id": "ord_2tPAmKCEJqh8RE6nY"
}

Changes