Skip to main content

Promos Fetch API

The following endpoint retrieves the details of all Promos created

/merchants/promos

Example#

curl -u <YOUR_SECRET_KEY> \
-X GET https://api.durianpay.id/v1/merchants/promos \
-H "content-type: application/json"'

Response#

{
"data": [
{
"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"
}
]
}