Vouchers
Get Cakes
POST
https://sandbox.mnasati.com/v1/vouchers
This endpoint allows you to get list of vouchers available.
Headers
Name
Type
Description
Content-Type
string
Application/JSON
Access Token
string
Authentication token (JWT).
{
"status":true,
"vouchers":[
{
"coupon_id":"84",
"title":"test",
"title_ar":"test",
"description":"",
"description_ar":"",
"till":"2022-12-12",
"code":"1234",
"coupon_limit":"0",
"limit_per":"all",
"thumb_image":"https://mnasatistorage.fra1.digitaloceanspaces.com/manastitesting/uploads/coupon_image/coupon_84_1608720672_thumb.jpg",
"details":{
"discount_type":"amount",
"discount_value":13,
"shipping_free":"1",
"minimum_order_amount":"0"
}
},
{
"coupon_id":"87",
"title":"dania",
"title_ar":"dania",
"description":"",
"description_ar":"",
"till":"2029-12-12",
"code":"123123",
"coupon_limit":"1",
"limit_per":"all",
"thumb_image":"https://mnasatistorage.fra1.digitaloceanspaces.com/manastitesting/uploads/coupon_image/coupon_87_1610039396_thumb.jpg",
"details":{
"discount_type":"percent",
"discount_value":"12.00",
"shipping_free":"1",
"minimum_order_amount":"1"
}
}
]
}
Examples
import http.client
conn = http.client.HTTPSConnection("sandbox.mnasati.com")
headers = {
'Content-Type': "",
'Authorization-Jwt': ""
}
conn.request("POST", "/v1/vouchers", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Last updated
Was this helpful?