Dark Mode

Promos Fetch by ID API


The following endpoint retrieves the details of all Promos created

/merchants/promos/:id

Run in Postman

Request Attributes

id

Integer
Mandatory

Unique identifier of the Promo to be retrieved

Example
curl -X GET \
  https://api.durianpay.id/v1/merchants/promos/prm_vnvN2Rp1tU7753 \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -H 'content-type: application/json' \

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
 "id": "prm_XXXXXXX",
 "currency": "IDR",
 "label": "PROMO1",
 "description": "",
 "status": "expired",
 "starts_at": "2015-05-05T12:30:00",
 "ends_at": "2015-05-08T12:30:00",
 "min_order_amount": "0",
 "max_discount_amount": "75",
 "type": "card_promos",
 "promo_details": {
    "bin_list": [12, 23],
    "bank_codes": ["BCA"]
 },
 "discount": "30",
 "discount_type": "percentage",
 "limit_type": "quota",
 "limit": 50,
 "sub_type": "direct_dicsount",
 "price_deduction_type": "total_price"
}

401 - Unauthorized Access

500 - Internal Server Error