Get Campaign Reward
This API is used to retrieve detailed information about a campaign reward generation transaction by providing the transaction ID.
Endpoint
URL : {BaseURL}/api/v1/campaign-rewards/generate-detail/{transactionId}
Method : GET
Header : Content-Type : Application/JSON
Request
This section describes the request parameters and provides examples of JSON requests used to retrieve detailed information about a campaign reward generation transaction by transaction ID.
Sample JSON Request
curl --location --globoff '{{BaseURL}}/api/v1/api/v1/campaign-rewards/generate-detail/{transactionId}' \
--header 'accept: application/json'
Response
This section describes the response parameters and provides JSON response examples returned by the API when retrieving detailed information about a campaign reward generation transaction.
Description Parameter Response
| Field | Data Type | Mandatory | Format | Description |
|---|---|---|---|---|
| requestID | String (36) | YES | UUID | Unique identifier for the request. |
| rc | Integer (3) | YES | Numeric | Response code indicating the status of the operation. |
| message | String (200) | YES | Alphanumeric | A descriptive message regarding the response. |
| data | JSON Object | YES | JSON Object | Detail information from data. |
| id | String (36) | YES | UUID | Unique identifier for the campaign. |
| refId | String (36) | YES | UUID | Unique reference ID from campaign reward generate. |
| catalogId | String (36) | YES | UUID | Unique identifier for the catalog. |
| voucherId | String (36) | YES | UUID | Unique identifier for the voucher. |
| voucherPhoto | String (500) | YES | URL | URL of the voucher image. |
| voucherName | String (200) | YES | Alphanumeric | Name of the voucher that was redeemed by the customer. |
| voucherType | String (200) | YES | Alphanumeric | Type of voucher (e.g., “PPOB” and “Non PPOB”). |
| voucherCategory | String (200) | YES | Alphanumeric | Voucher classification/category |
| validUntil | String (32) | YES | Timestamp | Expiration date of voucher |
| description | String (2000) | YES | Text | Description of the Campaign Reward (if any). |
| howToRedeem | String (2000) | YES | Text | Instructions to redeem the voucher |
| terms | String (2000) | YES | Text | Terms & conditions |
| clientLogo | String (500) | NO | URL | URL to the client logo |
| customField | String (200) | NO | Alphanumeric | Additional custom field (optional) |
| retryCount | Integer (100) | YES | Numeric | Number of retry attempts |
| redeemID | String (36) | NO | UUID | Unique identifier for the redeem |
| redeemTime | String (32) | NO | Timestamp | Time when voucher redeemed |
| redeemValue | Integer (10) | NO | Numeric | Redemption amount / value |
| customerID | String (36) | NO | UUID | Unique identifier for the customer |
| storeCode | String (200) | NO | Alphanumeric | Code of store |
| status | String (200) | YES | Alphanumeric | Status of the reward generation (“generated”, etc.) |
| errorReason | String (500) | NO | Text | Error details if generation failed |
Sample JSON Response
{
"requestID": "094ed79e-d6ba-49bb-b27a-dd843e66ayyy",
"rc": 200,
"message": "success",
"data": {
"id": "31d27f82-234d-4f6e-a89e-43084160dyyy",
"refId": "50688dda-4abf-4e50-a803-8a6c231d2b96",
"catalogId": "c2c4deea-d46f-438e-adae-2e56ded80f42",
"voucherId": "7b1bd296-2700-483c-8bcd-654fdf9c3yyy",
"voucherPhoto": "{{BaseURL}}/api/service-product/api/v1/product-non-ppob/image/9db7027f-3609-4dc1-b8d0-c30845ed9db8.png",
"voucherName": "Ace Hardware Rp 100.000",
"voucherType": "Non PPOB",
"voucherCategory": "Consumer goods",
"validUntil": "2026-12-31T00:00:00+07:00",
"description": "MAP Gift Voucher is the official gift voucher of PT Mitra Adiperkasa Tbk. Accepted in 2,900 retail stores managed under MAP Group Indonesia, with a wide range of products and brands. It is a perfect gift for Birthdays, Wedding Anniversaries, Valentines, Holidays, Festive occasions, at any time, anywhere!",
"howToRedeem": "Enter the link to digital voucher landing page\nClick button “Redeem Voucher”\nComplete requirement field\nClick button “Redeem Now”\nShow the barcodeEnjoy your voucher",
"terms": "Use the voucher by showing the voucher from the MAP Club application at the cashier (Do not press the USE button before the cashier)\nVouchers are valid every day, including Saturdays, Sundays and national holidays.\nVouchers can be used to purchase discounted products and other promotional products.\nVouchers are valid for purchasing all products and can be used without a minimum purchase.\nThe difference in Rupiah value that arises due to the value of the voucher used being higher than the value of the goods purchased, cannot be returned in any form.\nVouchers can only be used in offline stores and cannot be used in online stores\nVouchers that have been purchased cannot be returned or exchanged for cash.\nPT Mitra Adiperkasa Tbk has the right to change the Terms & Conditions for using vouchers without prior notification.",
"clientLogo": "",
"customField": "",
"retryCount": 0,
"redeemID": "",
"redeemTime": "",
"redeemValue": null,
"customerID": null,
"storeCode": null,
"status": "generated",
"errorReason": null
}
}