Retrieve a Discount Redemption

GET

/v1/discount-redemptions/:id

Retrieves the discount redemption with the given ID.


curl "https://api.lemonsqueezy.com/v1/discount-redemptions/1" \
  -H 'Accept: application/vnd.api+json' \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Authorization: Bearer {api_key}'

Returns

Returns a Discount Redemption object.

{
  "jsonapi": {
    "version": "1.0"
  },
  "links": {
    "self": "https://api.lemonsqueezy.com/v1/discount-redemptions/1"
  },
  "data": {
    "type": "discount-redemptions",
    "id": "1",
    "attributes": {
      "discount_id": 1,
      "order_id": 1,
      "discount_name": "10%",
      "discount_code": "10PERC",
      "discount_amount": 10,
      "discount_amount_type": "percent",
      "amount": 999,
      "created_at": "2023-02-07T10:30:01.000000Z",
      "updated_at": "2023-02-07T10:30:01.000000Z"
    },
    "relationships": {
      "discount": {
        "links": {
          "related": "https://api.lemonsqueezy.com/v1/discount-redemptions/1/discount",
          "self": "https://api.lemonsqueezy.com/v1/discount-redemptions/1/relationships/discount"
        }
      },
      "order": {
        "links": {
          "related": "https://api.lemonsqueezy.com/v1/discount-redemptions/1/order",
          "self": "https://api.lemonsqueezy.com/v1/discount-redemptions/1/relationships/order"
        }
      }
    },
    "links": {
      "self": "https://api.lemonsqueezy.com/v1/discount-redemptions/1"
    }
  }
}

Was this page helpful?