Handling Errors

Metaprise APIs always return a response. If an endpoint request fails, the response body includes an errors array as explained in the following section.

Issue a card

Error CodeDescription
request_declineYour request was decline by metaprise
out_trade_no_duplicateout trade no is duplicate
amount_less_than_low_limitnot allow issue a card less than your request amount
amount_greater_than_height_limitnot allow issue a card greater than your request amount
balance_not_enoughbalance not enough
currency_not_supportyour request currency currently not support

Retrieve a card

Error CodeDescription
Invalid_out_trade_noYour request has invalid parameter, out_trade_no not found
invalid_paramsOut_trade_no and Card_num can not be empty at the same time
card_not_issueCard not issue yet

Write-off a card

Error CodeDescription
card_num_not_foundcard number not found.
card_has_been_write_offthe card has been write off
waiting_for_write_offthe card waiting for write off
invalid_paramsOut_trade_no and Card_num can not be empty at the same time

List all transactions

Error CodeDescription
no_match_recrodThere is no transaction record of this card
card_not_foundcan not found this card