YoboPay
  1. Customers
YoboPay
  • 接入说明
  • Introduction
  • Webhook接入
  • Webhook Introduction
  • Test Card
  • Embedded Checkout
  • Checkout
    • Create Session
      POST
    • Expire Session
      POST
    • Retrieve Session
      GET
  • PaymentIntents
    • Retrieve PaymentIntent
      GET
    • List all paymentIntent
      GET
  • Charges
    • List all charges
      GET
  • Customers
    • Create Customer
      POST
    • Update Customer
      POST
    • Retrieve Customer
      GET
  • Events
    • The Event object
    • Types of Events
    • Data Object
      • PaymentIntent
      • Charge
  • Refunds
    • Create Refund
      POST
    • List all refunds
      GET
  1. Customers

Create Customer

POST
/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
phone
string 
optional
电话号码
description
string 
optional
描述
<= 1023 characters
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 
邮箱
optional
name
string 
姓名
optional
phone
string 
电话号码
required
description
string 
描述
optional
created
integer 
创建时间
optional
Example
{
  "code": "success",
  "msg": "",
  "data": {
    "customerId": "cus_test_uyFdKYjPnXJa",
    "email": "[email protected]",
    "name": "robin",
    "description": "",
    "created": 1741684152834
  }
}
Modified at 2025-05-29 11:04:35
Previous
List all charges
Next
Update Customer
Built with