TAG LINE
SMALL TITLE

Bill Run

(API Version v4)


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.


What can you do with BillRun?


Properties

Property Details
identity
READ-ONLY
"identity": 1
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": 3
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": 11
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": 23
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.


Patch Types

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 or nested within the envelope of a DataFlow. 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:


End Points

DELETEapi/v4/BillRun/{id}
Delete an instance of the BillRun object. Upon successful delete, this API will return a record of all of the reelated 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 api/v4/BillRun/{id}
View Sample Response
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"
            }
        ]
    }
}
GETapi/v4/BillRun/
Retrieve all of the BillRun objects.
Retrieve all of the BillRun objects.
GET api/v4/BillRun/
View Sample Response
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": 11,
            "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": 23,
            "collectionTypeName": "Sample Text Data",
            "runInvoicing": true,
            "currencyExchangeId": 19,
            "currencyExchangeName": "Sample Text Data",
            "runContract": true,
            "posting": "2021-04-26T15:25:27.587Z",
            "billRunStatusTypeId": 2,
            "billRunStatusTypeName": "Sample Text Data",
            "runPayment": true,
            "billRunTypeId": 0,
            "billRunTypeName": "Sample Text Data"
        }
    ]
}
GETapi/v4/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 api/v4/BillRun/Paged
View Sample Response
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": 16,
                "collectionTypeName": "Sample Text Data",
                "runInvoicing": true,
                "currencyExchangeId": 22,
                "currencyExchangeName": "Sample Text Data",
                "runContract": true,
                "posting": "2021-04-26T15:25:27.587Z",
                "billRunStatusTypeId": 18,
                "billRunStatusTypeName": "Sample Text Data",
                "runPayment": true,
                "billRunTypeId": 12,
                "billRunTypeName": "Sample Text Data"
            }
        ]
    }
}
GETapi/v4/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 api/v4/BillRun/Paged/Detail
View Sample Response
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": 26,
                "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": 0,
                "currencyExchangeName": "Sample Text Data",
                "runContract": true,
                "posting": "2021-04-26T15:25:27.587Z",
                "billRunStatusTypeId": 25,
                "billRunStatusTypeName": "Sample Text Data",
                "runPayment": true,
                "billRunTypeId": 10,
                "billRunTypeName": "Sample Text Data",
                "details": {
                    "sampleSingleObject": {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    },
                    "sampleMultipleObjects": {
                        "totalCount": 1,
                        "items": [
                            {
                                "identity": 2,
                                "property1": "Sample Text",
                                "property2": "2021-04-26T15:25:29.117Z",
                                "property3": 2
                            }
                        ]
                    }
                }
            }
        ]
    }
}
GETapi/v4/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 api/v4/BillRun/{id}
View Sample Response
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": 25,
        "collectionTypeName": "Sample Text Data",
        "runInvoicing": true,
        "currencyExchangeId": 21,
        "currencyExchangeName": "Sample Text Data",
        "runContract": true,
        "posting": "2021-04-26T15:25:27.587Z",
        "billRunStatusTypeId": 0,
        "billRunStatusTypeName": "Sample Text Data",
        "runPayment": true,
        "billRunTypeId": 10,
        "billRunTypeName": "Sample Text Data"
    }
}
GETapi/v4/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 api/v4/BillRun/{id}/Detail
View Sample Response
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": 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": 22,
        "collectionTypeName": "Sample Text Data",
        "runInvoicing": true,
        "currencyExchangeId": 14,
        "currencyExchangeName": "Sample Text Data",
        "runContract": true,
        "posting": "2021-04-26T15:25:27.587Z",
        "billRunStatusTypeId": 0,
        "billRunStatusTypeName": "Sample Text Data",
        "runPayment": true,
        "billRunTypeId": 6,
        "billRunTypeName": "Sample Text Data",
        "details": {
            "sampleSingleObject": {
                "identity": 2,
                "property1": "Sample Text",
                "property2": "2021-04-26T15:25:29.117Z",
                "property3": 2
            },
            "sampleMultipleObjects": {
                "totalCount": 1,
                "items": [
                    {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    }
                ]
            }
        }
    }
}
PATCHapi/v4/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 api/v4/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": 24,
                "runInvoicing": true,
                "currencyExchangeId": 22,
                "runContract": true,
                "posting": "2021-04-26T15:25:27.587Z",
                "billRunStatusTypeId": 24,
                "runPayment": true,
                "billRunTypeId": 6
            }
        ]
    }
}
View Sample Response
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": 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": 14,
                    "collectionTypeName": "Sample Text Data",
                    "runInvoicing": true,
                    "currencyExchangeId": 11,
                    "currencyExchangeName": "Sample Text Data",
                    "runContract": true,
                    "posting": "2021-04-26T15:25:27.587Z",
                    "billRunStatusTypeId": 27,
                    "billRunStatusTypeName": "Sample Text Data",
                    "runPayment": true,
                    "billRunTypeId": 13,
                    "billRunTypeName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTapi/v4/BillRun/
Create a new instance of the BillRun object.
Create a new instance of the BillRun object.
POST api/v4/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": 22,
    "runInvoicing": true,
    "currencyExchangeId": 16,
    "runContract": true,
    "posting": "2021-04-26T15:25:27.587Z",
    "billRunStatusTypeId": 8,
    "runPayment": true,
    "billRunTypeId": 10
}
View Sample Response
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": 0,
                "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": 9,
                "collectionTypeName": "Sample Text Data",
                "runInvoicing": true,
                "currencyExchangeId": 20,
                "currencyExchangeName": "Sample Text Data",
                "runContract": true,
                "posting": "2021-04-26T15:25:27.587Z",
                "billRunStatusTypeId": 13,
                "billRunStatusTypeName": "Sample Text Data",
                "runPayment": true,
                "billRunTypeId": 1,
                "billRunTypeName": "Sample Text Data"
            }
        ]
    }
}
POSTapi/v4/BillRun/Search
Retreive a list of BillRun objects based on search criteria. Search end points allow for retrieving results based on search criteria. Search criteria is sent as the payload of the POST.
Retreive a list of BillRun objects based on search criteria.
POST api/v4/BillRun/Search

{
    "query": {
        "top": 20,
        "search": [
            {
                "name": "MyFieldName",
                "operator": "startsWith",
                "value": "a"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "itemCount": 1,
    "items": [
        {
            "identity": 1,
            "billPeriodEnd": "2021-04-26T15:25:27.587Z",
            "billPeriodStart": "2021-04-26T15:25:27.587Z",
            "ownerId": 25,
            "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": 24,
            "collectionTypeName": "Sample Text Data",
            "runInvoicing": true,
            "currencyExchangeId": 8,
            "currencyExchangeName": "Sample Text Data",
            "runContract": true,
            "posting": "2021-04-26T15:25:27.587Z",
            "billRunStatusTypeId": 7,
            "billRunStatusTypeName": "Sample Text Data",
            "runPayment": true,
            "billRunTypeId": 20,
            "billRunTypeName": "Sample Text Data"
        }
    ]
}
PUTapi/v4/BillRun/{id}
Update an existing instance of the BillRun object.
Update an existing instance of the BillRun object.
PUT api/v4/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": 5,
    "runInvoicing": true,
    "currencyExchangeId": 14,
    "runContract": true,
    "posting": "2021-04-26T15:25:27.587Z",
    "billRunStatusTypeId": 8,
    "runPayment": true,
    "billRunTypeId": 22
}
View Sample Response
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": 25,
                "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": 15,
                "currencyExchangeName": "Sample Text Data",
                "runContract": true,
                "posting": "2021-04-26T15:25:27.587Z",
                "billRunStatusTypeId": 7,
                "billRunStatusTypeName": "Sample Text Data",
                "runPayment": true,
                "billRunTypeId": 25,
                "billRunTypeName": "Sample Text Data"
            }
        ]
    }
}