Dark Mode

Delete Promo API


The following endpoint deletes a promo

/merchants/promos/:id

Run in Postman

Request Attributes

id

Integer
Mandatory

Unique identifier of the Promo to be deleted

Example
curl -X DELETE \
  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
{
    "message": "Promo deleted successfully"
}

401 - Unauthorized Access

500 - Internal Server Error