post https://separation-merchant.metaprise.online/index/Virtualcard/updateCard
REQUEST OBJECT
Object | Type | Required | Description |
---|---|---|---|
bid | String(32) | yes | The bid is the account number generated by Metaprise for the merchant. It is a string of 32 bits long to uniquely identify the merchant generated by the system. |
amount | String(32) | no | setting card spends limitation, the units are cents. (For example: enter "10088" is "100.88) For "Per_authorization" Cards, it is the limit for each transaction. |
out_trade_no | String | yes | It is a string of numbers to uniquely distribute the id to a specific order, which the id is created by merchants. |
status | String | no | Dictates whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements., possible value: active, freeze, canceled |
cancellation_reason | enum | no | required when providing canceled in status, possible value: lost/stolen |
sign | String | yes | Encrypt data according to API ENDPOINTS>>Authentication. |
RESPONSE OBJECT(add_card)
Object | Sub Object | Type | Required | Description |
---|---|---|---|---|
result | String | yes | The result of response, 1. success 2. fail | |
error | String | no | ||
error_code | String | no | ||
data | bid | String(32) | yes | generated by Metaprise for the merchant. It is a string of 32 bits long to uniquely identify the merchant generated by the system. |
out_trade_no | String(32) | yes | It is a string of number to uniquely distribute the id to a specific order, which the id is created by merchants. | |
amount | String | no | setting card spends limitation, the units are cents. (For example: enter "10088" is "100.88) For "Per_authorization" Cards, it is the limit for each transaction. | |
status | String(2) | no | status of the card, possible value: active, inactive | |
type | String(2) | yes | Per_authorization |
{
"result": "success",
"data": {
"bid": "py_live_SBNS6pH23kAM1RWzHpbgK3I",
"out_trade_no": "Spapi203208890012112121",
"amount": 20000,
"status": "active",
"type": "Per_authorization"
}
}