Skip to main content
PATCH
/
v1
/
billing
/
customers
/
{id}
Update a customer
curl --request PATCH \
  --url https://api.paybridgenp.com/v1/billing/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "externalCustomerId": "<string>",
  "metadata": {}
}
'
{
  "id": "bc_01j9x2k3m4n5p6q7r8s9t0u1v2",
  "livemode": true,
  "name": "Aarav Sharma",
  "email": "aarav@example.com",
  "phone": "9801234567",
  "externalCustomerId": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your PayBridge API key. Obtain one from the dashboard under Settings → API Keys. Prefix: pk_sandbox_ for testing, pk_live_ for production.

Path Parameters

id
string
required

Body

application/json
name
string
email
string<email> | null
phone
string | null
Maximum string length: 20
externalCustomerId
string | null
metadata
object

Response

Updated customer.

id
string
Example:

"bc_01j9x2k3m4n5p6q7r8s9t0u1v2"

livemode
boolean

true when created with a live key, false for sandbox.

name
string
Example:

"Aarav Sharma"

email
string<email> | null
Example:

"aarav@example.com"

phone
string | null
Example:

"9801234567"

externalCustomerId
string | null

Your internal customer ID for cross-referencing.

metadata
object
createdAt
string<date-time>
updatedAt
string<date-time>