Skip to main content
PATCH
/
v0
/
customers
/
{id}
Update
curl --request PATCH \
  --url https://api.paygentic.io/v0/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taxId": "<string>",
  "taxRates": 50
}'
{
  "id": "cus_n5o6p7q8r9s0t1u2",
  "object": "customer",
  "consumerId": "org_v3w4x5y6z7a8b9c0",
  "createdAt": "2024-01-20T09:15:00Z",
  "merchantId": "org_d1e2f3g4h5i6j7k8",
  "paymentAuthorizationEnabled": true,
  "taxId": "GB123456789",
  "taxRates": {
    "default": 10
  },
  "updatedAt": "2024-03-12T16:30:00Z",
  "validTaxAddress": {
    "message": null,
    "valid": true
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the customer.

Body

application/json
taxId
string | null

Business tax registration identifier. Sample values: 'GB123456789' for UK VAT, 'DE123456789' for German VAT, 'FR12345678901' for French VAT. Enables inter-company tax handling and exemption from standard tax collection. Assign null to delete the identifier.

taxRates

Single tax rate percentage applied across all plans and metrics. Sample values: '8.5' represents 8.5% tax rate, '12.1' represents 12.1% tax rate, '0' represents no tax

Required range: 0 <= x <= 100

Response

Customer updated successfully

id
string
required

Unique identifier for a customer

object
enum<string>
default:customer
required
Available options:
customer
consumerId
string
required

Unique identifier for an organization

createdAt
string<date-time>
required
merchantId
string
required

Unique identifier for an organization

paymentAuthorizationEnabled
boolean
required
updatedAt
string<date-time>
required
validTaxAddress
object
required

Indicates whether the consumer address is valid for tax calculation when using Paygentic Tax. If valid=false, tax calculation will be skipped and internal invoice flow with default tax rate will be used.

authorizationExpiresAt
string<date-time>
authorizationToken
string
organization
object
taxId
string

Business tax registration identifier. Sample values: 'GB123456789' for UK VAT, 'DE123456789' for German VAT, 'FR12345678901' for French VAT. Enables inter-company tax handling and exemption from standard tax collection.

taxRates
object

An object mapping plan IDs, metric IDs, or 'default' to a tax rate percentage (e.g., 13 for 13%)