Skip to main content
PATCH
/
v1
/
customers
/
{customerId}
/
tax-profiles
/
{id}
Update customer tax profile
curl --request PATCH \
  --url https://api.quentli.com/v1/customers/{customerId}/tax-profiles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "data": {
      "legalName": "<string>",
      "taxId": "XAXX010101000",
      "taxSystem": "601",
      "zip": "06100",
      "defaultUsage": "G03",
      "default": true,
      "neighborhood": "<string>",
      "street": "<string>",
      "outerNumber": "<string>",
      "innerNumber": "<string>",
      "city": "<string>",
      "state": "<string>"
    }
  }
}
'
{
  "customerTaxInfo": {
    "id": "cti_1234567890abcdefghij",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "customerId": "cus_1234567890abcdefghij",
    "legalName": "<string>",
    "default": true,
    "defaultUsage": "G03",
    "taxId": "XAXX010101000",
    "taxSystem": "601",
    "zip": "06100",
    "city": "Ciudad de Mexico",
    "state": "Ciudad de Mexico",
    "country": "MEX",
    "neighborhood": null,
    "street": null,
    "outerNumber": null,
    "innerNumber": null
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Path Parameters

customerId
string
required

Identifier of the customer.

id
string
required

Identifier of the customer tax profile.

Body

application/json

Request body for updating a customer tax profile (ids are provided in the URL path).

input
object
required

Response

Customer tax profile updated

Created or updated customer tax profile.

customerTaxInfo
object
required

Fiscal profile used to issue tax invoices for a customer.