Skip to main content
GET
Get fulfillment cost report
Returns gift-card order totals in data (grouped by program, fulfillment status, and currency) and redemption spend and cost in by_reward_kind (grouped by reward kind, asset, and cost currency).
  • data timing: Orders are selected by creation time while status reflects current state, so a past period’s breakdown can shift as pending orders settle. Amounts are in currency minor units, and provider_fee.amount_minor is 0 for gift cards.
  • by_reward_kind timing and cost: Counts completed redemptions by captured_at, including any reversed later. Amount redemptions appear under reward_kind: null. Cost uses billed cost when reported at completion, face value for gift cards (PROVIDER), or the reward’s current cost times quantity for custom rewards (CUSTOM).
  • Single-reward drill-down: Pass reward_id to scope every figure to one reward and populate figures (when combined with folder_id, figures counts only redemptions in that folder’s programs). interval=day and compare=previous both require reward_id; see Report on one reward. folder_id and program_id are mutually exclusive.
For cost resolution rules and examples, see Fulfillment cost.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Query Parameters

period_start
string<date-time>
required

Start of the reporting period, inclusive, RFC 3339.

period_end
string<date-time>
required

End of the reporting period, inclusive, RFC 3339.

program_id
string<uuid>

Filter to a specific program

folder_id
string<uuid>

Filter to programs in this folder and its nested subfolders. Mutually exclusive with program_id. With reward_id, figures count only redemptions in this folder's programs.

reward_id
string<uuid>

Report on this reward only, and add its figures.

interval
enum<string>

Add a daily UTC series to the reward's figures (reward_id required, max 366 days).

Available options:
day
compare
enum<string>

Include figures for the immediately preceding period of equal length (reward_id required).

Available options:
previous

Response

Fulfillment cost report

Fulfillment costs by program, status, and currency, plus redemption spend and cost by reward kind.

by_reward_kind
object[]

Spend and monetary cost of completed redemptions in the period, grouped by reward kind, asset, and currency.

data
object[]

One row per program, status, and currency with fulfillment activity in the period.

figures
object

Single-reward figures for the period (returned with reward_id).

pagination
object

Pagination metadata for list responses

period_end
string

Period end (inclusive, RFC 3339), echoed from the request

Example:

"2027-12-31T23:59:59Z"

period_start
string

Period start (inclusive, RFC 3339), echoed from the request

Example:

"2027-01-01T00:00:00Z"