TAG LINE
TAG LINE
SMALL TITLE
A Bill Run is used to execute billing on a set of Bill Groups. There are multiple different options that can be selected on what should be included as actions of the Bill Run.
identity READ-ONLY | "identity": 20 Type: Number This is the unique numeric identifier for the BillRun |
billPeriodEnd | "billPeriodEnd": "2021-04-26T15:25:27.587Z" Type: Date The end date to look for billable transactions. Date and time values are specified in the ISO 8601 format. |
billPeriodStart | "billPeriodStart": "2021-04-26T15:25:27.587Z" Type: Date The start date to look for billable transactions. Date and time values are specified in the ISO 8601 format. |
ownerId READ-ONLY | "ownerId": 15 Type: Number Unique identifier for the associated Owner object. |
ownerName READ-ONLY | "ownerName": "Sample Name" Type: String The name of the object associated with the ownerId property. |
runBilling | "runBilling": true Type: Boolean Whether or not to calculate recurring and one-time charges as part of this Bill Run. |
name | "name": "First of the Month Invoice Delivery" Type: String User defined name given to the Bill Run. |
runDelivery | "runDelivery": true Type: Boolean Whether or not to deliver invoices as part of this Bill Run. |
runRenderInvoice | "runRenderInvoice": true Type: Boolean Whether or not to generate a rendered PDF version of invoices as part of this Bill Run. |
runPaymentTerm | "runPaymentTerm": true Type: Boolean Whether or not to execute Dunning Rules as part of this Bill Run. |
runBillUsage | "runBillUsage": true Type: Boolean Whether or not calculate usage charges as part of this Bill Run. |
enabled READ-ONLY | "enabled": true Type: Boolean Whether or not Bill Run is enabled within the system to run. |
runPaymentRetryTerms | "runPaymentRetryTerms": true Type: Boolean Whether or not to execute payment retries as part of this Bill Run. |
collectionTypeId | "collectionTypeId": 17 Type: Number Unique identifier for the associated CollectionType object. |
collectionTypeName | "collectionTypeName": "Sample Name" Type: String The name of the object associated with the collectionTypeId property. |
runInvoicing | "runInvoicing": true Type: Boolean Whether or not to generate invoice data and assign an invoice number as part of this Bill Run. |
currencyExchangeId | "currencyExchangeId": 3 Type: Number Unique identifier for the associated CurrencyExchange object. |
currencyExchangeName | "currencyExchangeName": "Sample Name" Type: String The name of the object associated with the currencyExchangeId property. |
runContract | "runContract": true Type: Boolean Whether or not to run Contract Enforcement rules as part of this Bill Run. |
posting | "posting": "2021-04-26T15:25:27.587Z" Type: Date Specify the accounting posting date associated with this Bill Run. Date and time values are specified in the ISO 8601 format. |
billRunStatusTypeId | "billRunStatusTypeId": 15 Type: Number Unique identifier for the associated BillRunStatusType object. |
billRunStatusTypeName | "billRunStatusTypeName": "Sample Name" Type: String The name of the object associated with the billRunStatusTypeId property. |
runPayment | "runPayment": true Type: Boolean Whether or not to run Collections as part of this Bill Run. |
billRunTypeId | "billRunTypeId": 6 Type: Number Unique identifier for the associated BillRunType object. |
billRunTypeName | "billRunTypeName": "Sample Name" Type: String The name of the object associated with the billRunTypeId property. |
runInvoicingContract | "runInvoicingContract": true Type: Boolean Whether or not to run Invoice Top-up as part of this Bill Run. |
The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.
PATCH operations can be used as a standard API call. Below you will find the child objects that can be updated as part of PATCH operations for the BillRun object.
Standard PATCH objects:
DataFlow PATCH objects:
DELETE | BillRun/{id} |
Delete an instance of the BillRun object. Upon successful delete, this API will return a record of all of the related objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the BillRun object. |
Delete an instance of the BillRun object. DELETE BillRun/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "delete", "results": { "totalCount": 4, "items": [ { "identity": 1, "action": "deleted", "dtoTypeKey": "billRun" }, { "lhsId": 2, "rhsId": 2, "action": "detached", "dtoTypeKey": "sampleObjectConnector" }, { "foreignKeyIdentity": 2, "action": "deleted", "dtoTypeKey": "sampleObject" } ] } } |
GET | BillRun/ |
Retrieve all of the BillRun objects. | |
Retrieve all of the BillRun objects. GET BillRun/ HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "totalCount": 1, "items": [ { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 1, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 19, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 9, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 26, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 2, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } ] } |
GET | BillRun/Paged |
Retrieve all of the BillRun objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints. | |
Retrieve all of the BillRun objects in a paged fashion. GET BillRun/Paged HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 10, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 6, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 17, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 19, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 2, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } ] } } |
GET | BillRun/Paged/Detail |
Retrieve all of the BillRun objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
Retrieve all of the BillRun objects in a paged fashion with all object details. GET BillRun/Paged/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 20, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 20, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 25, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 13, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 25, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true, "details": { "groups": [ { "identity": 42, "name": "Sample Text Data", "billDay": 25, "invoiceDateProcessTypeId": 30, "invoiceDateProcessTypeName": "Sample Text Data", "invoiceDueDateTypeId": 19, "invoiceDueDateTypeName": "Sample Text Data", "usageBillDay": 71, "invoiceDeliveryId": 27, "invoiceDeliveryName": "Sample Text Data" } ], "schedules": [ { "identity": 81, "created": "2021-04-26T15:25:27.587Z", "start": "2021-04-26T15:25:27.587Z", "complete": "2021-04-26T15:25:27.587Z", "billRunId": 75, "billRunName": "Sample Text Data", "billRunScheduleStatusTypeId": 62, "billRunScheduleStatusTypeName": "Sample Text Data", "accountId": 1, "accountName": "Sample Text Data", "periodStart": "2021-04-26T15:25:27.587Z", "periodEnd": "2021-04-26T15:25:27.587Z", "createdByUserId": 73, "createdByUserName": "Sample Text Data", "orderId": 58, "parentBillRunId": 50, "parentBillRunName": "Sample Text Data", "scheduleId": 55, "scheduleName": "Sample Text Data", "billRunSettings": "Sample Text Data" } ], "recentSchedules": [ { "identity": 75, "created": "2021-04-26T15:25:27.587Z", "start": "2021-04-26T15:25:27.587Z", "complete": "2021-04-26T15:25:27.587Z", "billRunId": 94, "billRunName": "Sample Text Data", "billRunScheduleStatusTypeId": 31, "billRunScheduleStatusTypeName": "Sample Text Data", "accountId": 23, "accountName": "Sample Text Data", "periodStart": "2021-04-26T15:25:27.587Z", "periodEnd": "2021-04-26T15:25:27.587Z", "createdByUserId": 75, "createdByUserName": "Sample Text Data", "orderId": 94, "parentBillRunId": 22, "parentBillRunName": "Sample Text Data", "scheduleId": 1, "scheduleName": "Sample Text Data", "billRunSettings": "Sample Text Data" } ] } } ] } } |
GET | BillRun/{id} |
Retrieve an instance of the BillRun object by its ID. | |
{id} | Unique identifier for the BillRun object. |
Retrieve an instance of the BillRun object by its ID. GET BillRun/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 27, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 19, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 1, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 19, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 8, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } } |
GET | BillRun/{id}/Detail |
Retrieve deep detail of the BillRun object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the BillRun object. |
Retrieve deep detail of the BillRun object by its ID. GET BillRun/{id}/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 16, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 7, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 2, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 20, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 0, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true, "details": { "groups": [ { "identity": 42, "name": "Sample Text Data", "billDay": 25, "invoiceDateProcessTypeId": 30, "invoiceDateProcessTypeName": "Sample Text Data", "invoiceDueDateTypeId": 19, "invoiceDueDateTypeName": "Sample Text Data", "usageBillDay": 71, "invoiceDeliveryId": 27, "invoiceDeliveryName": "Sample Text Data" } ], "schedules": [ { "identity": 81, "created": "2021-04-26T15:25:27.587Z", "start": "2021-04-26T15:25:27.587Z", "complete": "2021-04-26T15:25:27.587Z", "billRunId": 75, "billRunName": "Sample Text Data", "billRunScheduleStatusTypeId": 62, "billRunScheduleStatusTypeName": "Sample Text Data", "accountId": 1, "accountName": "Sample Text Data", "periodStart": "2021-04-26T15:25:27.587Z", "periodEnd": "2021-04-26T15:25:27.587Z", "createdByUserId": 73, "createdByUserName": "Sample Text Data", "orderId": 58, "parentBillRunId": 50, "parentBillRunName": "Sample Text Data", "scheduleId": 55, "scheduleName": "Sample Text Data", "billRunSettings": "Sample Text Data" } ], "recentSchedules": [ { "identity": 75, "created": "2021-04-26T15:25:27.587Z", "start": "2021-04-26T15:25:27.587Z", "complete": "2021-04-26T15:25:27.587Z", "billRunId": 94, "billRunName": "Sample Text Data", "billRunScheduleStatusTypeId": 31, "billRunScheduleStatusTypeName": "Sample Text Data", "accountId": 23, "accountName": "Sample Text Data", "periodStart": "2021-04-26T15:25:27.587Z", "periodEnd": "2021-04-26T15:25:27.587Z", "createdByUserId": 75, "createdByUserName": "Sample Text Data", "orderId": 94, "parentBillRunId": 22, "parentBillRunName": "Sample Text Data", "scheduleId": 1, "scheduleName": "Sample Text Data", "billRunSettings": "Sample Text Data" } ] } } } |
PATCH | BillRun/{id} |
Update or Add the BillRun object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array. | |
{id} | Unique identifier for the BillRun object. |
Update or Add the BillRun object and optionally make changes to any child objects. PATCH BillRun/{id} { "details": {}, "billRuns": { "items": [ { "patchType": "create", "patchClientId": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "runPaymentRetryTerms": true, "collectionTypeId": 22, "runInvoicing": true, "currencyExchangeId": 1, "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 20, "runPayment": true, "billRunTypeId": 8, "runInvoicingContract": true } ] } } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "patch", "results": { "totalCount": 1, "items": [ { "identity": 1, "action": "created", "dtoTypeKey": "billRun", "instance": { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 6, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 17, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 2, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 11, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 9, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } } ] } } |
POST | BillRun/ |
Create a new instance of the BillRun object. | |
Create a new instance of the BillRun object. POST BillRun/ { "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "runPaymentRetryTerms": true, "collectionTypeId": 3, "runInvoicing": true, "currencyExchangeId": 27, "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 23, "runPayment": true, "billRunTypeId": 27, "runInvoicingContract": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "create", "results": { "totalCount": 1, "items": [ { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 17, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 12, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 26, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 22, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 3, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } ] } } |
PUT | BillRun/{id} |
Update an existing instance of the BillRun object. | |
Update an existing instance of the BillRun object. PUT BillRun/{id} { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "runPaymentRetryTerms": true, "collectionTypeId": 4, "runInvoicing": true, "currencyExchangeId": 20, "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 7, "runPayment": true, "billRunTypeId": 18, "runInvoicingContract": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "update", "results": { "totalCount": 1, "items": [ { "identity": 1, "billPeriodEnd": "2021-04-26T15:25:27.587Z", "billPeriodStart": "2021-04-26T15:25:27.587Z", "ownerId": 14, "ownerName": "Sample Text Data", "runBilling": true, "name": "First of the Month Invoice Delivery", "runDelivery": true, "runRenderInvoice": true, "runPaymentTerm": true, "runBillUsage": true, "enabled": true, "runPaymentRetryTerms": true, "collectionTypeId": 25, "collectionTypeName": "Sample Text Data", "runInvoicing": true, "currencyExchangeId": 17, "currencyExchangeName": "Sample Text Data", "runContract": true, "posting": "2021-04-26T15:25:27.587Z", "billRunStatusTypeId": 7, "billRunStatusTypeName": "Sample Text Data", "runPayment": true, "billRunTypeId": 3, "billRunTypeName": "Sample Text Data", "runInvoicingContract": true } ] } } |