Description
Create a reward redemption order. Allows customers to redeem their wallet points for available rewards from the catalog.
Headers
Bearer token received after successful OTP verification.
application/json
Parameters
ISO 8601 timestamp when the order was placed.
Total value of the order in points.
Total number of unique items in the order.
Array of order line items.
Client-generated order reference ID.
Stock Keeping Unit of the product to redeem.
Quantity of units to redeem.
Example Request
{
"order_timestamp": "2021-03-26T15:42:36-04:00",
"order_total": 1500,
"order_items": 3,
"line_items": [
{
"order_id": "asdsa3432",
"SKU": "SKU1",
"qty": 1
}
]
}
Example Response
{
"id": 45654654654,
"order_id": "asdsa3432",
"state": "success",
"vouchers": [
{
"voucher_code": "BCP123456",
"pin": "4 characters / optional*",
"validity": "2024-03-26"
}
],
"redemption_url": "bigcity.in",
"how_to_avail": "",
"terms": "",
"note": "Order created successfully.",
"created_at": "2021-03-26T15:42:36-04:00",
"updated_at": "2021-03-26T15:42:36-04:00"
}
Example of Error Response
{
"name": "Unprocessable entity",
"message": "Validation Failed",
"code": 37,
"status": 422,
"type": "yii\\web\\HttpException"
}
Response Fields
Bigcity system order ID.
Client-provided order reference ID.
Order status (e.g., "success").
Array of generated voucher details.
Generated voucher code for redemption.
PIN code (optional, if applicable).
Voucher expiry date (YYYY-MM-DD).
URL where voucher can be redeemed.
Instructions for availing the voucher.
Terms and conditions.
Additional notes or status message.
Order creation timestamp.
Order last update timestamp.
Redemption Rules
- Points are deducted immediately after successful redemption
- Customer cannot redeem beyond available wallet balance
- Redemption requests are subject to product availability