Skip to main content

Payouts

Use the payouts endpoint to review the amounts that are expected to be routed to your pharmacy for paid physical-prescription orders, and the amounts that were actually routed after completed orders. The endpoint only returns payouts where the requested pharmacy is the payment receiver. With a single-pharmacy API key, this is your current pharmacy. With a group-wide API key, this is the pharmacy selected by pharmacy_uid.
Actual payment routing happens only when the pharmacy order is completed. projected payouts are indicative previews for paid physical-prescription orders based on the current order values and routing configuration, and can change before completion. routed payout values are populated only after the completed order has a persisted split-payment route.

List Payouts

Requires the orders_read permission.
string
Required for group-wide API keys. Single-pharmacy API keys are automatically scoped to their pharmacy.
string
Filter by payout status. Accepted values are projected and routed.
Search term. Matches pharmacy_order_uid, pharmacy_order_name, routed payout provider_route_id, and routing_description.
integer
Unix timestamp for the start of the date range. For routed rows, this filters by routing_created_at. For projected rows, this filters by pharmacy_order_created_at.
integer
Unix timestamp for the end of the date range. For routed rows, this filters by routing_created_at. For projected rows, this filters by pharmacy_order_created_at.
string
default:"pharmacy_order_created_at"
Field used for sorting. Accepted values are pharmacy_order_created_at, routing_created_at, and amount.
string
default:"desc"
Sort direction. Accepted values are asc and desc.
integer
default:"0"
Page number (0-indexed).
integer
default:"50"
Number of items per page.

Statuses

Example Request

Response

Response Fields

array
Payout rows for the requested page.
string
projected for indicative payouts on paid physical-prescription orders, or routed for persisted routes created after order completion.
integer
Payout amount in cents, for example 1299 for EUR 12.99.
string
ISO 4217 currency code, for example EUR.
string
The payout component, such as item_rest, item_markup, or shipping.
string | null
Human-readable description of the routed or projected component.
string | null
Payment provider route identifier. This is populated for routed payouts when the provider returned an identifier, and null for projected payouts.
string
UID of the related pharmacy order.
string | null
Human-readable pharmacy order name, for example #1001.
integer
Unix timestamp when the pharmacy order was created.
integer | null
Unix timestamp when the split-payment route was created. This is null for projected payouts and populated for routed payouts.
integer
Total number of payout rows matching the filters.
integer
Total number of pages available for the current limit.