- 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
Recharge card
POST
https://sandbox.vcc.top/api/card/charge
Request
Body Params application/json
request_id
string
optional
<= 100 characters
company_id
number
required
charge_amount
string
required
<= 12 characters
card_id
number
required
sign
string
required
Encryption Rule: touppercase(SHA256(company_id + card_id + charge_amount + api_key))
All encryption parameters need to remove spaces before encryption.
<= 100 characters
Example
{
"request_id": "",
"company_id": "4101",
"charge_amount": "10",
"card_id": "100029701",
"sign": "0461E27872869CE387EFEB2243BEEB7048396F33E2AE47D3AF3F4C5AE9D0472B"
}
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/card/charge' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_id": "",
"company_id": "4101",
"charge_amount": "10",
"card_id": "100029701",
"sign": "0461E27872869CE387EFEB2243BEEB7048396F33E2AE47D3AF3F4C5AE9D0472B"
}'
Responses
🟢200Success
application/json
Body
code
integer
required
msg
object
required
zh-CN
string
required
en-US
string
required
data
object
required
status
string
required
reqNo
integer
required
errorMsg
null
required
groupId
null
required
Example
{
"code": 0,
"msg": {
"zh-CN": "成功",
"en-US": "Success"
},
"data": {
"status": "1",
"reqNo": 115801,
"errorMsg": null,
"groupId": null
}
}