VM_API
English
  • 简体中文
  • English
  1. Stored Value Card
VM_API
English
  • 简体中文
  • English
  • Integration Guide
  • Environment Configuration
  • Global Error Codes
  • Stored Value Card
    • Apply for Card
      POST
    • Card Details
      POST
    • Freeze/Unfreeze Card
      POST
    • Delete Card
      POST
    • Card Top-up
      POST
    • Card Refund
      POST
    • Transaction Records
      POST
    • Get Card Product Code
      POST
    • Get Account Balance
      POST
  • Notification
    • WebHook
  • Get accessToken
    GET
  1. Stored Value Card

Apply for Card

POST
/createCard
最后修改时间:2025-05-15 03:28:20
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox-api.vmcardio.com/createCard' \
--data-urlencode 'product_code=' \
--data-urlencode 'first_name=' \
--data-urlencode 'last_name=' \
--data-urlencode 'amount=' \
--data-urlencode 'label=' \
--data-urlencode 'area_code=' \
--data-urlencode 'mobile=' \
--data-urlencode 'email=' \
--data-urlencode 'card_address=' \
--data-urlencode '——address_line_one=' \
--data-urlencode '——address_line_two=' \
--data-urlencode '——city=' \
--data-urlencode '——state=' \
--data-urlencode '——country=' \
--data-urlencode '——post_code='
响应示例响应示例
{
  "code": 200,
  "data": {
    "card_id": "b8a24270-4cfd-407c-ac2b-d38eff******"
  }
}

请求参数

Body 参数application/x-www-form-urlencoded
product_code
string 
必需
Product code
first_name
string 
必需
Cardholder's first name
last_name
string 
必需
Cardholder's last name
amount
number 
必需
Card load amount
label
string 
可选
Card label
area_code
string 
可选
Area code
mobile
string 
可选
Mobile number
email
string 
Email
可选
card_address
string 
可选
Address information
——address_line_one
string 
可选
Address line 1 (required if card_address is provided)
——address_line_two
string 
可选
Address line 2
——city
string 
可选
City (required if card_address is provided)
——state
string 
可选
State (required if card_address is provided)
——country
string 
可选
Country (required if card_address is provided)
——post_code
string 
可选
Postal code (required if card_address is provided)

返回响应

🟢200成功
application/json
Body
code
integer 
必需
data
object 
必需
card_id
string 
卡ID
必需
上一页
Global Error Codes
下一页
Card Details
Built with