Skip to main content
POST
Update Customer

Authorizations

Authorization
string
header
required

Bearer API Key authentication. Format: Authorization: Bearer {your_api_key}

Headers

Request-Id
string
default:008e3967-a1b5-48bb-be14-d5bff5092e61
required

The unique identifier of the request

Body

application/json
email
string
required

Customer email

customer_id
string

Subotiz platform customer_id, either customer_id or payer_id must exist to identify the customer to update, customer_id has higher priority

phone
string

Customer phone number

name
string

Customer name

address
object

Customer address

metadata
object

A set of key-value pairs that can be attached to an object, allowing you to store additional information in a structured format.

payer_id
string

Third-party customer ID

email_subscription
integer<int32>

Whether to subscribe to marketing email notifications

  • 1: Do not subscribe
  • 2: Subscribe

Response

200 - application/json

OK

code
string

error code

message
string

error message

data
object