Taxes

Update taxes for an existing orden

put/orders/{id}/tax_lines/{tax_id}

Request

Path parameters

idstring required
Example:6307a60c41de27127515a575

Identifier of the resource

tax_idstring required
Example:tax_lin_2tQ974hSHcsdeSZHG

identifier

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

The amount to be collected for tax in cents

descriptionstring

description or tax's name

metadataobject

Example request

{
  "amount": 100,
  "description": "testing"
}

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

    • breaking

      request property / list-of-types was narrowed by removing types object from media type application/json

    • breaking

      the request property's minLength was increased from 2 to 3

    • breaking

      the request property type changed from no type to object