Skip to main content
PATCH
/
customers
/
{id}
Update customer details
curl --request PATCH \
  --url https://api.paygentic.io/v0/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taxRates": "<string>"
}'
{
  "id": "<string>",
  "object": "customer",
  "consumerId": "<string>",
  "merchantId": "<string>",
  "paymentAuthorizationEnabled": true,
  "authorizationToken": "<string>",
  "authorizationExpiresAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "organization": {
    "id": "<string>",
    "name": "<string>",
    "phone": "<string>",
    "address": "<string>",
    "billingEmail": "<string>"
  },
  "taxRates": {}
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the customer.

Body

application/json
taxRates

A single tax rate that applies to all plans and metrics for example "12.1%" for 12.1% tax rate

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

merchantId
string
required

Unique identifier for an organization

paymentAuthorizationEnabled
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
authorizationToken
string
authorizationExpiresAt
string<date-time>
organization
object
taxRates
object

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

I