Create Customer
POST
/v1/customers
/v1/customers
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
email
string
optional
<= 125 characters
name
string
optional
<= 255 characters
description
string
optional
<= 1023 characters
Example
{
"email": "string",
"name": "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",
"description": "string"
}'
Responses
🟢200成功
application/json
Body
code
string
required
msg
string
optional
data
object (Customer)
required
customerId
string
required
email
string
邮箱
name
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-04-10 07:59:29