curl --request POST \
--url https://api.platform.dakota.xyz/billing/generate-invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"year": 2025,
"month": 1,
"clientIds": [
"1NFHrqBHb3cTfLVkFSGmHZqdDPi"
],
"dryRun": true
}
'{
"invoices": [
{
"id": 12345,
"clientId": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
"periodStart": "2025-01-01T00:00:00Z",
"periodEnd": "2025-02-01T00:00:00Z",
"volumeUSD": "1250000.50",
"transactionCount": 150,
"transferFeeCalculated": "2250.00",
"monthlyMinimum": "1500.00",
"baseFeeCharged": "2250.00",
"achCount": 120,
"wireCount": 25,
"sepaCount": 5,
"achFees": "120.00",
"wireFees": "625.00",
"sepaFees": "7.50",
"totalAmount": "3002.50",
"stripeInvoiceId": "in_1234567890",
"createdAt": "2025-01-15T10:30:00Z"
}
],
"totalAmount": "15750.00",
"dryRun": true
}Generate invoices for clients in the specified date range. Supports dry-run mode for previewing without creating.
curl --request POST \
--url https://api.platform.dakota.xyz/billing/generate-invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"year": 2025,
"month": 1,
"clientIds": [
"1NFHrqBHb3cTfLVkFSGmHZqdDPi"
],
"dryRun": true
}
'{
"invoices": [
{
"id": 12345,
"clientId": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
"periodStart": "2025-01-01T00:00:00Z",
"periodEnd": "2025-02-01T00:00:00Z",
"volumeUSD": "1250000.50",
"transactionCount": 150,
"transferFeeCalculated": "2250.00",
"monthlyMinimum": "1500.00",
"baseFeeCharged": "2250.00",
"achCount": 120,
"wireCount": 25,
"sepaCount": 5,
"achFees": "120.00",
"wireFees": "625.00",
"sepaFees": "7.50",
"totalAmount": "3002.50",
"stripeInvoiceId": "in_1234567890",
"createdAt": "2025-01-15T10:30:00Z"
}
],
"totalAmount": "15750.00",
"dryRun": true
}Request to generate invoices for a billing month
Year for the billing period
2020 <= x <= 21002025
Month for the billing period (1-12)
1 <= x <= 121
Optional list of specific client IDs to generate invoices for. If omitted, generates for all active clients.
KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.
27If true, calculate and preview invoices without saving to database or sending to Stripe. Defaults to true for safety.