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 Code

Description

request_decline

Your request was decline by metaprise

out_trade_no_duplicate

out trade no is duplicate

amount_less_than_low_limit

not allow issue a card less than your request amount

amount_greater_than_height_limit

not allow issue a card greater than your request amount

balance_not_enough

balance not enough

currency_not_support

your request currency currently not support

Retrieve a card

Error Code

Description

Invalid_out_trade_no

Your request has invalid parameter, out_trade_no not found

invalid_params

Out_trade_no and Card_num can not be empty at the same time

card_not_issue

Card not issue yet

Write-off a card

Error Code

Description

card_num_not_found

card number not found.

card_has_been_write_off

the card has been write off

waiting_for_write_off

the card waiting for write off

invalid_params

Out_trade_no and Card_num can not be empty at the same time

List all transactions

Error Code

Description

no_match_recrod

There is no transaction record of this card

card_not_found

can not found this card