TAG LINE
TAG LINE
SMALL TITLE

Bill Run / History

(API Version v6)


A list of previously run, or currently running, Bill Run details.


What can you do with BillRunHistory?


Properties

Property Details
identity
READ-ONLY
"identity": 19
Type: Number
This is the unique numeric identifier for the BillRunHistory
ownerId
READ-ONLY
"ownerId": 26
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.
billRunId
"billRunId": 13
Type: Number
Unique identifier for the associated BillRun object.
billRunName
"billRunName": "Sample Name"
Type: String
The name of the object associated with the billRunId property.
name
"name": "Hello World"
Type: String
complete
READ-ONLY
"complete": true
Type: Boolean
Whether or not this Bill Run has completed.
billRunScheduleId
"billRunScheduleId": 3
Type: Number
Unique identifier for the associated BillRunSchedule object.
billRunScheduleName
"billRunScheduleName": "Sample Name"
Type: String
The name of the object associated with the billRunScheduleId property.
currencyExchangeId
"currencyExchangeId": 21
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.
parentBillRunHistoryId
"parentBillRunHistoryId": 25
Type: Number
Unique identifier for the associated BillRunHistory object.
parentBillRunHistoryName
"parentBillRunHistoryName": "Sample Name"
Type: String
The name of the object associated with the parentBillRunHistoryId property.


End Points

GETBillRun/History/
Retrieve all of the BillRunHistory objects.
Retrieve all of the BillRunHistory objects.
GET BillRun/History/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "ownerId": 25,
            "ownerName": "Sample Text Data",
            "billRunId": 27,
            "billRunName": "Sample Text Data",
            "name": "Sample Text Data",
            "complete": true,
            "billRunScheduleId": 21,
            "billRunScheduleName": "Sample Text Data",
            "currencyExchangeId": 23,
            "currencyExchangeName": "Sample Text Data",
            "parentBillRunHistoryId": 17,
            "parentBillRunHistoryName": "Sample Text Data"
        }
    ]
}
GETBillRun/History/Paged
Retrieve all of the BillRunHistory 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 BillRunHistory objects in a paged fashion.
GET BillRun/History/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,
                "ownerId": 18,
                "ownerName": "Sample Text Data",
                "billRunId": 16,
                "billRunName": "Sample Text Data",
                "name": "Sample Text Data",
                "complete": true,
                "billRunScheduleId": 1,
                "billRunScheduleName": "Sample Text Data",
                "currencyExchangeId": 7,
                "currencyExchangeName": "Sample Text Data",
                "parentBillRunHistoryId": 11,
                "parentBillRunHistoryName": "Sample Text Data"
            }
        ]
    }
}
GETBillRun/History/{id}
Retrieve an instance of the BillRunHistory object by its ID.
{id}Unique identifier for the BillRunHistory object.
Retrieve an instance of the BillRunHistory object by its ID.
GET BillRun/History/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 11,
        "ownerName": "Sample Text Data",
        "billRunId": 11,
        "billRunName": "Sample Text Data",
        "name": "Sample Text Data",
        "complete": true,
        "billRunScheduleId": 16,
        "billRunScheduleName": "Sample Text Data",
        "currencyExchangeId": 8,
        "currencyExchangeName": "Sample Text Data",
        "parentBillRunHistoryId": 9,
        "parentBillRunHistoryName": "Sample Text Data"
    }
}
GETBillRun/History/{id}/Detail
Retrieve deep detail of the BillRunHistory 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 BillRunHistory object.
Retrieve deep detail of the BillRunHistory object by its ID.
GET BillRun/History/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "ownerId": 13,
        "ownerName": "Sample Text Data",
        "billRunId": 19,
        "billRunName": "Sample Text Data",
        "name": "Sample Text Data",
        "complete": true,
        "billRunScheduleId": 27,
        "billRunScheduleName": "Sample Text Data",
        "currencyExchangeId": 13,
        "currencyExchangeName": "Sample Text Data",
        "parentBillRunHistoryId": 14,
        "parentBillRunHistoryName": "Sample Text Data",
        "details": {
            "billRunHistorySteps": [
                {
                    "identity": 4,
                    "billRunHistoryId": 56,
                    "billRunHistoryName": "Sample Text Data",
                    "billRunStepTypeId": 12,
                    "billRunStepTypeName": "Sample Text Data",
                    "retry": true,
                    "start": "2021-04-26T15:25:27.587Z",
                    "end": "2021-04-26T15:25:27.587Z",
                    "total": 83,
                    "queued": 14,
                    "processed": 64,
                    "errorCount": 40,
                    "updated": "2021-04-26T15:25:27.587Z",
                    "accountsTotal": 30,
                    "accountsQueued": 67,
                    "accountsProcessed": 18,
                    "details": {
                        "billRunHistoryErrors": [
                            {
                                "identity": 43,
                                "billRunHistoryStepId": 40,
                                "accountPackageName": "Sample Text Data",
                                "accountServiceName": "Sample Text Data",
                                "accountId": 66,
                                "accountName": "Sample Text Data",
                                "billingErrorTypeId": 3,
                                "billingErrorTypeName": "Sample Text Data",
                                "errorMessage": "Sample Text Data"
                            }
                        ]
                    }
                }
            ],
            "billRunSchedule": {
                "identity": 79,
                "created": "2021-04-26T15:25:27.587Z",
                "start": "2021-04-26T15:25:27.587Z",
                "complete": "2021-04-26T15:25:27.587Z",
                "billRunId": 90,
                "billRunName": "Sample Text Data",
                "billRunScheduleStatusTypeId": 0,
                "billRunScheduleStatusTypeName": "Sample Text Data",
                "accountId": 7,
                "accountName": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 82,
                "createdByUserName": "Sample Text Data",
                "orderId": 40,
                "parentBillRunId": 86,
                "parentBillRunName": "Sample Text Data",
                "scheduleId": 69,
                "scheduleName": "Sample Text Data",
                "billRunSettings": "Sample Text Data"
            }
        }
    }
}