Skip to main content
PUT
Update a customer

Authorizations

X-API-Key
string
header
required

API Key for authentication (format: sk_...)

Headers

X-Organization-Id
string

Required for Supabase session auth. Ignored when authenticating with an API key (the organization resolves from the key).

Path Parameters

customerId
string
required

Body

application/json

Customer legal name

Example:

"Dunder Mifflin"

taxId
string

Mexican RFC

Example:

"ABC101010111"

taxSystem
string

SAT tax system code

Example:

"601"

email
string

Customer email

Example:

"email@example.com"

phone
string

Customer phone

Example:

"6474010101"

defaultInvoiceUse
string

Default CFDI use code

Example:

"G01"

addressStreet
string

Street name

addressExterior
string

Exterior number

addressInterior
string

Interior number

addressNeighborhood
string

Neighborhood

addressCity
string

City

addressMunicipality
string

Municipality

addressZip
string

ZIP code

addressState
string

State

addressCountry
string

Country code

Response

id
string
required
Example:

"590ce6c56d04f840aa8438af"

organizationId
string
required
Example:

"org-uuid"

Example:

"Dunder Mifflin"

taxId
string
required
Example:

"ABC101010111"

taxSystem
string
required
Example:

"601"

email
string
required
Example:

"email@example.com"

defaultInvoiceUse
string
required
Example:

"G01"

address
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
phone
object
Example:

"6474010101"