Recalculates pricing, margins, and totals for all charges in the ledger without changing status.
The ID of the ledger to recalculate.
Represents a ledger in the billing system.
The unique identifier of the ledger.
BLE-1234-1234-1234-1234The unique identifier of the journal entry.
BJO-1234-1234Name of the journal.
29 Nov 2024 #1The due date for the journal entry.
2025-05-15T23:59:59+00:00Represents the various statuses a ledger can have in the billing system.
Represents the markup value applied to the pricing.
15.5Represents the margin value calculated for the pricing.
20Represents the total purchase price.
1000Represents the total sale price in buyer currency.
1200Specifies the currency for the pricing.
Indicates the total number of items involved in the processing.
100Indicates the number of items that are ready for further processing.
80Indicates the number of items that encountered errors during processing.
5Indicates the number of items that were split into multiple parts during processing.
10Indicates the number of items that were skipped during processing.
5Indicates the number of items that were manually ignored.
2Represents the error code associated with the billing entity.
ERR-001Represents the error message providing details about the issue.
Invalid billing data provided.Represents the unique identifier for the error, if applicable.
12345Represents the detailed message associated with the error, if applicable.
Failed to process the billing entity due to missing data.Represents the status of a backup operation.
Date and time of the backup action, if available.
OK
Represents a ledger in the billing system.
The unique identifier of the ledger.
BLE-1234-1234-1234-1234The unique identifier of the journal entry.
BJO-1234-1234Name of the journal.
29 Nov 2024 #1The due date for the journal entry.
2025-05-15T23:59:59+00:00Represents the various statuses a ledger can have in the billing system.
Represents the markup value applied to the pricing.
15.5Represents the margin value calculated for the pricing.
20Represents the total purchase price.
1000Represents the total sale price in buyer currency.
1200Specifies the currency for the pricing.
Indicates the total number of items involved in the processing.
100Indicates the number of items that are ready for further processing.
80Indicates the number of items that encountered errors during processing.
5Indicates the number of items that were split into multiple parts during processing.
10Indicates the number of items that were skipped during processing.
5Indicates the number of items that were manually ignored.
2Represents the error code associated with the billing entity.
ERR-001Represents the error message providing details about the issue.
Invalid billing data provided.Represents the unique identifier for the error, if applicable.
12345Represents the detailed message associated with the error, if applicable.
Failed to process the billing entity due to missing data.Represents the status of a backup operation.
Date and time of the backup action, if available.
Forbidden
Not Found
POST /public/v1/billing/ledgers/{id}/recalculate HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: application/json
Accept: */*
Content-Length: 1995
{
"audit": {
"created": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"updated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"rating": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"error": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"review": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"generating": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"generated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"queued": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"completed": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"revision": 1,
"id": "BLE-1234-1234-1234-1234",
"journal": {
"revision": 1,
"id": "BJO-1234-1234",
"name": "29 Nov 2024 #1",
"dueDate": "2025-05-15T23:59:59+00:00"
},
"status": "Generated",
"authorization": {
"id": "text",
"name": "text",
"revision": 1,
"currency": "text"
},
"owner": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalId": "text"
},
"seller": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalId": "text"
},
"product": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalIds": {
"operations": "text",
"defaultErpItem": "text"
},
"status": "text"
},
"assignee": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
},
"price": {
"markup": 15.5,
"margin": 20,
"totalPP": 1000,
"totalBSP": 1200,
"currency": "text"
},
"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."
},
"backup": {
"status": "Pending",
"date": "2026-01-01T00:00:00.000Z"
}
}{
"audit": {
"created": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"updated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"rating": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"error": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"review": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"generating": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"generated": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"queued": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
},
"completed": {
"at": "2026-01-01T00:00:00.000Z",
"by": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
}
}
},
"$meta": {
"omitted": [
"text"
]
},
"revision": 1,
"id": "BLE-1234-1234-1234-1234",
"journal": {
"revision": 1,
"id": "BJO-1234-1234",
"name": "29 Nov 2024 #1",
"dueDate": "2025-05-15T23:59:59+00:00"
},
"status": "Generated",
"authorization": {
"id": "text",
"name": "text",
"revision": 1,
"currency": "text"
},
"owner": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalId": "text"
},
"seller": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalId": "text"
},
"product": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1,
"externalIds": {
"operations": "text",
"defaultErpItem": "text"
},
"status": "text"
},
"assignee": {
"id": "text",
"name": "text",
"icon": "text",
"revision": 1
},
"price": {
"markup": 15.5,
"margin": 20,
"totalPP": 1000,
"totalBSP": 1200,
"currency": "text"
},
"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."
},
"backup": {
"status": "Pending",
"date": "2026-01-01T00:00:00.000Z"
}
}