| Description | Using card |
| Request Path | {{base_url}}/stores/card-redeem/ |
| Method | Post |
Usage
Client can redeem card using PIN on the back of the physical card. Product ID must retrieve from check API first.
Request Parameters
| Parameter | Data Type | Position | Required | Description |
| Authorization | String | Header | Yes | Used retrieving token in a header: Authorization: JWT {token} |
| terminal_id | Integer | Body | Yes | Store Terminal id |
| terminal_pin | String | Body | No | Terminal user password |
| card_pin | String | Body | Yes | 16 digit numbers and characters |
| transaction_id | String | Body | Yes | Use a Universally Unique Identifier (UUID) algorithm to enforce uniqueness |
| product_id | Integer | Body | Yes | Retrieved from check API |
| amount | String | Body | Yes | If it is reusable, then send the amount of redeem, else send the product amount. |
Response Parameters
| Parameter | Description | Nullable |
| status_code | Status code:{01, 03, 04, 05, 06, 07, 08, 09, 10, 11} | No |
| status | Card status | No |
| expire_date | Expiration date | No |
| remaining | Remaining amount | No |
| transaction_id | Use a Universally Unique Identifier (UUID) algorithm to enforce uniqueness | No |
| currency _Detail | Detail of currency | No |
| title | Title of currency | No |
| abbr | Abbreviation of currency name | No |
| symbol | Symbol of currency like usd | No |
| iso_code | An unique number of currency | No |