Coupon
The widget calls this endpoint to get a coupon for the required discount amount. For example, if two products have been added where the first product requires a discount of $10 and the 2nd requires a discount of $20, then a coupon code will be requested for $30 to apply to the order.
Request
Method: GET
Endpoint: /coupon
fetch("https://PRICEBEAT_DOMAIN_URL/b2b/coupon?d=180&client=CLIENT_SHORTCODE&c=CUSTOMER_ID");
Response
{
  "code": 0,
  "payload": "COUPON_CODE",
  "type": 1
}