Coupons

Coupon usage

Returns coupons from your store together with usage and discount totals
for the selected period.

GET /api/v1/store/coupons

Coupon usage

curl --request GET \
  --url 'https://{baseUrl}/api/v1/store/coupons' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": [
    {
      "coupon_id": 123,
      "code": "SUMMER10",
      "status": "publish",
      "coupon_created_at": "2025-05-01T11:00:00Z",
      "coupon_updated_at": "2026-03-01T07:30:00Z",
      "date_expires": null,
      "amount": 10,
      "discount_type": "percent",
      "usage_count": 42,
      "total_discounted": 416,
      "sales_generated": 3186.5,
      "sales_generated_cost": 992.2,
      "sales_generated_gross_profit": 2194.3,
      "last_used_at": "2026-03-25T18:42:00Z",
      "resource_link": "https://app.metorik.com/coupons/123"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 10,
    "has_more_pages": true
  }
}

No response description.

Authorizations

  • Authorization string required header

    Generate a store API key from the store's Metorik API settings in Metorik, and choose the scopes needed for the endpoints you want to call.

Query Parameters

  • end_date string required

    End date in the store timezone using YYYY-MM-DD format. Example: 2026-02-28

  • has_usage boolean

    Filter coupons by whether they were used in the selected period. Example: true

  • order_by string enum

    Sort field. Example: coupon_created_at

  • order_dir string enum

    Sort direction. Example: desc

  • order_filters string

    Optional JSON-encoded array of order-level filters applied before calculating coupon usage and sales. See Order Filters Reference. Example: [{"field":"billing_address_country","operator":"eq","value":"US"}]

  • page integer

    Page number for pagination. Example: 1

  • per_page integer

    Number of coupons per page. Min 1, max 100. Example: 10

  • search string

    Search term to filter coupons. Example: SUMMER

  • start_date string required

    Start date in the store timezone using YYYY-MM-DD format. Example: 2026-02-01

Headers

  • Accept string required

    Response format header. Example: application/json

Response

application/json
  • data[] object array
    + Show Child Attributes
    • coupon_id integer
    • code string
    • status string
    • coupon_created_at string
    • coupon_updated_at string
    • date_expires string nullable
    • amount integer
    • discount_type string
    • usage_count integer
    • total_discounted integer
    • sales_generated number
    • sales_generated_cost number
    • sales_generated_gross_profit number
    • last_used_at string
    • resource_link string
  • pagination object
    + Show Child Attributes
    • current_page integer
    • per_page integer
    • has_more_pages boolean