- Guides
- API Reference
- Introduction
- Endpoints
- Data Types
- Signing
- 3-D Secure Verification
- Subscription
- Errors
- Webhooks
- Items Information
- Changelog
- Acquiring
- Create a direct paymentPOST
- Create a redirect (iFrame) paymentPOST
- Capture a transactionPOST
- Review a transactionPOST
- Cancel a transactionPOST
- Cancel a subscriptionPOST
- Query a transactionPOST
- Refund a transactionPOST
- Search a refund transactionPOST
- Create a payoutPOST
- Optimise payment methodsPOST
- Update an orderPOST
- Issuing
- Appendix
Create cardholder
POST
https://sandbox.vcc.top/api/cardholder/create
Request
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
request_id
string
optional
<= 100 characters
billing_address
string
required
This parameter is required for tangible goods
<= 100 characters
billing_city
string
required
This parameter is required for tangible goods
<= 50 characters
billing_postal
string
required
This parameter is required for tangible goods
<= 6 characters
billing_state
string
required
This parameter is required for tangible goods and when the country is United States or Canada
<= 20 characters
birth_date
string
required
<= 10 characters
billing_country
string
required
This parameter is required for tangible goods
<= 3 characters
email
string
required
<= 100 characters
first_name
string
required
<= 50 characters
last_name
string
required
<= 50 characters
mobile
string
required
<= 13 characters
mobile_prefix
string
required
<= 4 characters
remark
string
optional
<= 500 characters
company_id
number
required
sign
string
required
Encryption Rule: touppercase(SHA256(company_id + email + first_name + last_name + api_key))
All encryption parameters need to remove spaces before encryption.
<= 100 characters
Example
{
"request_id": "",
"billing_address": "1600 Amphitheatre Parkway",
"billing_city": "New York",
"billing_postal": "94043",
"billing_state": "NY",
"birth_date": "1996-07-02",
"billing_country": "US",
"email": "test1811@email.com",
"first_name": "Jon",
"last_name": "Doe",
"mobile": "9521325",
"mobile_prefix": "+1",
"remark": "test",
"company_id": "4101",
"sign": "14DC174549C80FF4C62113CB7A08BF03846DED0D37F7985E6C5CAD845C823861"
}
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 'https://sandbox.vcc.top/api/cardholder/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_id": "",
"billing_address": "1600 Amphitheatre Parkway",
"billing_city": "New York",
"billing_postal": "94043",
"billing_state": "NY",
"birth_date": "1996-07-02",
"billing_country": "US",
"email": "test1811@email.com",
"first_name": "Jon",
"last_name": "Doe",
"mobile": "9521325",
"mobile_prefix": "+1",
"remark": "test",
"company_id": "4101",
"sign": "14DC174549C80FF4C62113CB7A08BF03846DED0D37F7985E6C5CAD845C823861"
}'
Responses
🟢200OK
application/json
Body
code
integer
required
msg
object
required
zh-CN
string
required
en-US
string
required
data
object
required
billingAddress
string
required
billingCity
string
required
billingPostal
string
required
billingState
string
required
birthDate
string
required
companyId
integer
required
countryCode
string
required
email
string
required
firstName
string
required
lastName
string
required
mobile
string
required
mobilePrefix
string
required
remark
string
required
cardholderId
integer
required
isStatus
string
required
status
string
required
Example
{
"code": 0,
"msg": {
"zh-CN": "成功",
"en-US": "Success"
},
"data": {
"billingAddress": "1600 Amphitheatre Parkway",
"billingCity": "New York",
"billingPostal": "94043",
"billingState": "NY",
"birthDate": "1996-07-02 08:00:00",
"companyId": 4101,
"countryCode": "US",
"email": "test1811@email.com",
"firstName": "Jon",
"lastName": "Doe",
"mobile": "9521325",
"mobilePrefix": "+1",
"remark": "test",
"cardholderId": 8101,
"isStatus": "1",
"status": "1"
}
}