Redeem Card

DescriptionUsing card 
Request Path{{base_url}}/stores/card-redeem/
MethodPost

Usage

         Client can redeem card using PIN on the back of the physical card. Product ID must retrieve from check API first.

Request Parameters

ParameterData TypePositionRequiredDescription 
AuthorizationStringHeaderYesUsed retrieving token in a header: Authorization: JWT {token}
terminal_idIntegerBodyYesStore Terminal id
terminal_pinStringBodyNoTerminal user password
card_pinStringBodyYes16 digit numbers and characters 
transaction_idStringBodyYesUse a Universally Unique Identifier (UUID) algorithm to enforce uniqueness
product_idIntegerBodyYesRetrieved from check API
amountStringBodyYesIf it is reusable, then send the amount of redeem, else send the product amount.

Response Parameters

ParameterDescriptionNullable 
status_codeStatus code:{01, 03, 04, 05, 06, 07, 08, 09, 10, 11}No 
statusCard statusNo 
expire_dateExpiration dateNo 
remainingRemaining amountNo 
transaction_idUse a Universally Unique Identifier (UUID) algorithm to enforce uniquenessNo 
currency _DetailDetail of currencyNo 
    titleTitle of currencyNo 
    abbrAbbreviation of currency nameNo 
    symbolSymbol of currency like usdNo 
    iso_codeAn unique number of currencyNo