Skip to main content
POST
/
v1
/
customers
/
{customerId}
/
tax-profiles
Create customer tax profile
curl --request POST \
  --url https://api.quentli.com/v1/customers/{customerId}/tax-profiles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "taxInfo": {
      "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.

Body

application/json

Request body for creating a customer tax profile (customer id is provided in the URL path).

input
object
required

Response

Customer tax profile created

Created or updated customer tax profile.

customerTaxInfo
object
required

Fiscal profile used to issue tax invoices for a customer.