Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required.
Spense Partner APIs (v1)
Download OpenAPI description
Languages
Servers
Production API
https://api.spensepay.com/partner/
- Production APIhttps://api.spensepay.com/partner/settlements/generate_csv
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.spensepay.com/partner/settlements/generate_csv \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Organization-Id: string' \
-d '{
"from_date": "2023-01-01",
"to_date": "2023-01-31",
"format": "transactions",
"test_mode": false,
"payout_type": "PSP"
}'Response
text/csv
Date of transaction,Payment provider,Settlement reference,Settlement paid at,Reference,Currency,Gross amount,Fees,Net amount,Payment type,Payment method
2025-07-09 00:00:00+00:00,Worldline Bambora,12345678-20250710,2025-07-10 00:00:00+00:00,100000,NOK,1200.99,,,Debit,Visa
2025-07-09 00:00:00+00:00,Worldline Bambora,12345678-20250710,2025-07-10 00:00:00+00:00,100001,NOK,9000.00,,,Credit,Mastercard