Create an Export
Creates a CSV export of payment records. Use export_name: unified_payments and provide filters.timezone. To export a period, set filters.created.gte (inclusive) and filters.created.lt (exclusive) to RFC 3339 timestamps. The period can span up to 366 days.
Store the returned id, then call GET /v1/reporting/exports/{id} until the export finishes. When success and uploaded are both true, request its temporary download link. The refund and payout examples select payment records with those attributes, not separate refund or payout objects.
Body·
Create a unified_payments CSV export of payment records.
- enumexport
_name const:unified_paymentsrequiredExport template to use. Currently
unified_paymentsis supported. - Type:filtersrequiredProperties: 7
Filters for the
unified_paymentsexport. All supplied filter groups apply together; multiple values within a group match any listed value. - Type: stringenumcolumns
_mode Which columns to include. Defaults to
default.values- default
Use the export template's default columns.
- all
Include all available columns.
- custom
Include only the named
included_columns.
- default
- Type: array of stringincluded
_columns Column keys to include when
columns_modeiscustom. Required and nonempty in that mode. - Type: array of stringrejected
_columns Column keys to exclude from the selected column set.
- Type: stringenumdelivery
_mode How to deliver the export. Defaults to
download.values- download
Make the completed file available through a temporary download link.
- email
Send the export by email; requires
delivery_email. - both
Make a download link available and send the export by email.
- download
- Type: stringFormat: emaildelivery
_email Recipient address when email delivery is selected.
- Type: stringidempotency
_key Optional key for safely retrying this create request. You can also send it in the
Idempotency-Keyheader. - Type: stringlocale
Optional locale for the export.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.paypercut.io/v1/reporting/exports \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"export_name": "unified_payments",
"filters": {
"timezone": "Europe/Sofia",
"created": {
"gte": "2026-10-01T00:00:00+03:00",
"lt": "2026-11-01T00:00:00+02:00"
}
}
}'
{
"id": "exp_example123",
"export_name": "unified_payments",
"in_progress": true,
"percent_complete": 0,
"uploaded": false,
"created_at": "2026-11-04T10:00:00Z",
"updated_at": "2026-11-04T10:00:00Z"
}
