- 接入说明
- Introduction
- Webhook接入
- Webhook Introduction
- Test Card
- Embedded Checkout
- Checkout
- PaymentIntents
- Charges
- Customers
- Events
- Refunds
Update Customer
POST
/v1/customers/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Body Params application/json
email
string
optional
name
string
optional
phone
string
optional
description
string
optional
Example
{
"email": "string",
"name": "string",
"phone": "string",
"description": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/customers/' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "string",
"name": "string",
"phone": "string",
"description": "string"
}'
Responses
🟢200成功
application/json
Body
code
string
required
msg
string
optional
data
object (Customer)
required
customerId
string
required
email
string
邮箱
name
string
姓名
phone
string
电话号码
description
string
描述
created
integer
创建时间
Example
{
"code": "success",
"msg": "",
"data": {
"customerId": "cus_test_uyFdKYjPnXJa",
"email": "[email protected]",
"name": "robin",
"description": "",
"created": 1741684152834
}
}
Modified at 2025-05-29 11:04:39