API: Automate Billing Schedule Process from Sales Order & Invoice
(Added in version 1.43.4.0 and onwards) We have created a new API where customer can make billing schedule for an recurring item from sales order/invoice. This API perform the same functions as Sales Order and Sales Invoice – Create Billing Schedule and Append to Existing Schedule as shown below:
GET Metadata for Sales Document
GET https://api.businesscentral.dynamics.com/v2.0/cfc58d3d-1bfb-492f-99ca-3690416427b4/SBS/api/binarystream/arcb/v2.0/$metadata
When to Use
As a best practice, use these endpoints for creating an ARCB billing schedule for an recurring item from sales order or invoice. We have both options either to create a new billing schedule or to append in existing billing schedules.
Only the POST method is available for this API.
| API Setup information | |
| SBS ARCB Create Schedule From Sales Document API V2 | |
| Object ID: | 23066026 |
| Collection: | bssiCreateSchFrmSalesDocsV2 |
Request:
-
POST / bssiCreateSchFrmSalesDocsV2
| Request Examples |
| API example: |
|
POSThttps://api.businesscentral.dynamics.com/v2.0/cfc58d3d-1bfb-492f-99ca-3690416427b4/SBS/api/binarystream/arcb/v2.0/Companies(0e5c77ae-e00b-ef11-9f8c-6045bdacc2b5)/ bssiCreateSchFrmSalesDocsV2 |
Json Body:
To Append in Existing Schedule
{
"documentType": "Order",
"salesDocumentNo": "S-ORD102263 ",
"billingSchNumber":"CONT000081"
}
To create new billing schedule
{
"documentType": "Order",
"salesDocumentNo": "S-ORD102263 ",
"billingSchGroup": "DEFAULT"
}