Upadte a card

REQUEST OBJECT

ObjectTypeRequiredDescription
bidString(32)yesThe 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.
amountString(32)nosetting 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_noStringyesIt is a string of numbers to uniquely distribute the id to a specific order, which the id is created by merchants.
statusStringnoDictates 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_reasonenumnorequired when providing canceled in status, possible value: lost/stolen
signStringyesEncrypt data according to API ENDPOINTS>>Authentication.

RESPONSE OBJECT(add_card)

ObjectSub ObjectTypeRequiredDescription
resultStringyesThe result of response,

1. success
2. fail
errorStringno
error_codeStringno
databidString(32)yesgenerated by Metaprise for the merchant. It is a string of 32 bits long to uniquely identify the merchant generated by the system.
out_trade_noString(32)yesIt is a string of number to uniquely distribute the id to a specific order, which the id is created by merchants.
amountStringnosetting 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.
statusString(2)nostatus of the card, possible value: active, inactive
typeString(2)yesPer_authorization
{
    "result": "success",
    "data": {
        "bid": "py_live_SBNS6pH23kAM1RWzHpbgK3I",
        "out_trade_no": "Spapi203208890012112121",
        "amount": 20000,
        "status": "active",
        "type": "Per_authorization"
    }
}
Language