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·

required
application/json

Create a unified_payments CSV export of payment records.

  • Export template to use. Currently unified_payments is supported.

  • Filters for the unified_payments export. All supplied filter groups apply together; multiple values within a group match any listed value.

    Properties: 7
  • 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.

  • Column keys to include when columns_mode is custom. Required and nonempty in that mode.

  • Column keys to exclude from the selected column set.

  • 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.

  • Recipient address when email delivery is selected.

  • Optional key for safely retrying this create request. You can also send it in the Idempotency-Key header.

  • Optional locale for the export.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/reporting/exports
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"
}