Give a customer a coupon that their next eligible checkout uses without a code
One grant per (customer, source, source_ref); repeating it grants nothing more.
Loading the operation...
Add credits to a customer POST
For a promotion, a goodwill gesture or a sale made outside Payrudder. With an `idempotency_key` (or the `Idempotency-Key` header) a repeat of the call adds nothing and returns `replayed: true`; the same key with other values is `billing.credits.key_reused`.
What the customer accepted, newest first GET
The customer's acceptance log, a page at a time (`page_size`, default 100, at most 200; the next page is `next_page_token`, empty on the last). The filters narrow it and combine: `kind`, `source` (api, hosted), `version_id` (one version of a text) and the time the customer accepted, `from` (inclusive) to `to` (exclusive), as RFC 3339 times.