coupon-redemptions

Stable. Describes behaviour that is built and covered by tests in this repository.

API reference

GET /v1/coupon-redemptions #

Uses of coupons, newest first

One row per use: the coupon and the code, the customer, what it was used on (the subscription, or the invoice of the purchase) and what it took off. A void or a full refund marks the row reversed.

Parameters

NameInTypeDescription
couponquerystring
promotion_codequerystring
customer_external_idquerystring
page_sizequeryinteger
page_tokenquerystring

Responses

StatusMeaningBody
200OKListCouponRedemptionsResponse
400Error envelopeError
Example response
{
  "redemptions": [
    {
      "id": "0192f0b4-6f6e-7c3a-9a3e-6a1f2b3c4d5e",
      "coupon_code": "string",
      "promotion_code": "string",
      "customer_external_id": "string",
      "target": "COUPON_TARGET_SUBSCRIPTION",
      "target_id": "0192f0b4-6f6e-7c3a-9a3e-6a1f2b3c4d5e",
      "invoice_id": "0192f0b4-6f6e-7c3a-9a3e-6a1f2b3c4d5e",
      "discount_minor": "string",
      "bonus_credits": "string",
      "currency": "string",
      "create_time": "2026-11-03T10:15:00Z",
      "reverse_time": "2026-11-03T10:15:00Z"
    }
  ],
  "next_page_token": "string",
  "total": 1
}
curl
curl -X GET https://YOUR-API-ADDRESS/v1/coupon-redemptions \
  -H "Authorization: Bearer $PAYRUDDER_API_KEY"

Models

CouponRedemption

FieldTypeDescription
id requiredstring · uuid
coupon_code requiredstring
promotion_code requiredstringEmpty when an operator applied the coupon or it came from a grant
customer_external_id requiredstring
target requiredCOUPON_TARGET_SUBSCRIPTION | COUPON_TARGET_CREDIT_PURCHASE | COUPON_TARGET_PAYMENT
target_id requiredstring · uuidThe subscription, or the invoice
invoice_id requiredstring · uuid
discount_minor requiredstring · int64What it took off; a subscription's grows with each fee
bonus_credits requiredstring · int64
currency requiredstring
create_time requiredstring · date-time
reverse_time requiredstring · date-timeSet when a void or a full refund reversed it, nullable: true

Error

FieldTypeDescription
error requiredobject

ListCouponRedemptionsResponse

FieldTypeDescription
redemptions requiredarray of CouponRedemption
next_page_token requiredstring
total requiredinteger