Statements
Recalculates a statement.
Recalculates totals and pricing for the statement without changing its status.
post/public/v1/billing/statements/{id}/recalculate
Request
- Base URL: https://api.platform.softwareone.com
- URL: https://api.platform.softwareone.com/public/v1/billing/statements/{id}/recalculate
- Auth: none declared
Path parameters
idstring required
The ID of the statement.
Request body
Example request
{
"id": "SOM-1234-1234-1234-1234-1234",
"externalIds": {
"operations": "OPS-12345",
"vendor": "VND-67890",
"erpId": "ERP-12345",
"client": "CLI-12345"
},
"ledger": {
"id": "BLE-1234-1234-1234-1234"
},
"customLedger": {
"name": "Quarterly Revenue Ledger"
},
"price": {
"markup": 15.5,
"margin": 20,
"totalPP": 1000,
"totalBP": 1100,
"totalBSP": 1200,
"currency": {
"purchase": "USD",
"sale": "EUR",
"rate": 1
},
"totalSP": 1200
},
"processing": {
"total": 100,
"ready": 80,
"error": 5,
"split": 10,
"skipped": 5,
"ignored": 2
},
"error": {
"errorCode": "ERR-001",
"errorMessage": "Invalid billing data provided.",
"id": "12345",
"message": "Failed to process the billing entity due to missing data."
},
"invoice": {
"id": "INV-123-456-789"
},
"parent": {
"id": "SOM-1234-1234-1234-1234-1234"
},
"statistics": {
"statements": 3,
"products": 3,
"agreements": 3,
"licensees": 2
}
}Response
OK
Example response
{
"id": "SOM-1234-1234-1234-1234-1234",
"externalIds": {
"operations": "OPS-12345",
"vendor": "VND-67890",
"erpId": "ERP-12345",
"client": "CLI-12345"
},
"ledger": {
"id": "BLE-1234-1234-1234-1234"
},
"customLedger": {
"name": "Quarterly Revenue Ledger"
},
"price": {
"markup": 15.5,
"margin": 20,
"totalPP": 1000,
"totalBP": 1100,
"totalBSP": 1200,
"currency": {
"purchase": "USD",
"sale": "EUR",
"rate": 1
},
"totalSP": 1200
},
"processing": {
"total": 100,
"ready": 80,
"error": 5,
"split": 10,
"skipped": 5,
"ignored": 2
},
"error": {
"errorCode": "ERR-001",
"errorMessage": "Invalid billing data provided.",
"id": "12345",
"message": "Failed to process the billing entity due to missing data."
},
"invoice": {
"id": "INV-123-456-789"
},
"parent": {
"id": "SOM-1234-1234-1234-1234-1234"
},
"statistics": {
"statements": 3,
"products": 3,
"agreements": 3,
"licensees": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.