GET
/
carts
/
available-coupons
curl --request GET \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/carts/available-coupons \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "coupons": [
      {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "tags": [
          "<string>"
        ],
        "redemption_limits": {
          "total_redemptions": 123,
          "per_customer_redemptions": 123,
          "per_coupon_code_redemptions": 123
        },
        "redemption_count": 123,
        "minimum_order_total": 0,
        "starts_at": "2023-11-07T05:31:56Z",
        "expires_at": "2023-11-07T05:31:56Z",
        "details": {
          "discount_type": "<string>",
          "discount_percent": 123,
          "maximum_discount_amount": 123,
          "products": [
            {
              "product_id": "<string>",
              "variant_id": "<string>",
              "minimum_quantity": 123,
              "maximum_quantity": 123,
              "minimum_value": 123,
              "maximum_value": 123
            }
          ],
          "category_id": [
            "<string>"
          ]
        },
        "applies_to_product": "all",
        "coupon_type": "discount",
        "coupon_code": [
          "<string>"
        ],
        "application_rules": {
          "max_applicable_items": 123,
          "application_priority": "cheapest_first"
        },
        "can_be_used_with_promotion": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Access token

Headers

ce_customer_group_id
string | null

Commercengine customer group id.

Response

200
application/json

OK

The response is of type object.