TAG LINE
TAG LINE
SMALL TITLE

Bill Group

(API Version v8)


A Bill Group is assigned to an Account to group Accounts together that follow the same billing rules. These details contain configuration such as bill day, invoice delivery method etc.


What can you do with BillGroup?

  • DELETE BillGroup/{id}
    Delete an instance of the BillGroup object.

  • GET BillGroup/
    Retrieve all of the BillGroup objects.

  • GET BillGroup/Paged
    Retrieve all of the BillGroup objects in a paged fashion.

  • GET BillGroup/Paged/Detail
    Retrieve all of the BillGroup objects in a paged fashion with all object details.

  • GET BillGroup/{id}
    Retrieve an instance of the BillGroup object by its ID.

  • GET BillGroup/{id}/Detail
    Retrieve deep detail of the BillGroup object by its ID.

  • PATCH BillGroup/{id}
    Update or Add the BillGroup object and optionally make changes to any child objects.

  • POST BillGroup/
    Create a new instance of the BillGroup object.

  • PUT BillGroup/{id}
    Update an existing instance of the BillGroup object.


Properties

Property Details
identity
READ-ONLY
"identity": 19
Type: Number
This is the unique numeric identifier for the BillGroup
name
"name": "First of the Month"
Type: String
User defined name given to the Bill Group.
ownerId
READ-ONLY
"ownerId": 1
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.
billDay
"billDay": 15
Type: Number
The day of the month in which this group should be billed for recurring and one-time charges.
invoiceDateProcessTypeId
"invoiceDateProcessTypeId": 26
Type: Number
Unique identifier for the associated InvoiceDateProcessType object.
invoiceDateProcessTypeName
"invoiceDateProcessTypeName": "Sample Name"
Type: String
The name of the object associated with the invoiceDateProcessTypeId property.
invoiceDueDateTypeId
"invoiceDueDateTypeId": 10
Type: Number
Unique identifier for the associated InvoiceDueDateType object.
invoiceDueDateTypeName
"invoiceDueDateTypeName": "Sample Name"
Type: String
The name of the object associated with the invoiceDueDateTypeId property.
usageBillDay
"usageBillDay": 25
Type: Number
The day of the month in which usage associated to this group should be billed.
invoiceDeliveryId
"invoiceDeliveryId": 24
Type: Number
Unique identifier for the associated InvoiceDelivery object.
invoiceDeliveryName
"invoiceDeliveryName": "Sample Name"
Type: String
The name of the object associated with the invoiceDeliveryId 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. Below you will find the child objects that can be updated as part of PATCH operations for the BillGroup object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

DELETEBillGroup/{id}
Delete an instance of the BillGroup 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 BillGroup object.
Delete an instance of the BillGroup object.
DELETE BillGroup/{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": "billGroup"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETBillGroup/
Retrieve all of the BillGroup objects.
Retrieve all of the BillGroup objects.
GET BillGroup/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "name": "First of the Month",
            "ownerId": 17,
            "ownerName": "Sample Text Data",
            "billDay": 20,
            "invoiceDateProcessTypeId": 13,
            "invoiceDateProcessTypeName": "Sample Text Data",
            "invoiceDueDateTypeId": 15,
            "invoiceDueDateTypeName": "Sample Text Data",
            "usageBillDay": 4,
            "invoiceDeliveryId": 10,
            "invoiceDeliveryName": "Sample Text Data"
        }
    ]
}
GETBillGroup/Paged
Retrieve all of the BillGroup 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 BillGroup objects in a paged fashion.
GET BillGroup/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,
                "name": "First of the Month",
                "ownerId": 15,
                "ownerName": "Sample Text Data",
                "billDay": 27,
                "invoiceDateProcessTypeId": 1,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 20,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 24,
                "invoiceDeliveryId": 17,
                "invoiceDeliveryName": "Sample Text Data"
            }
        ]
    }
}
GETBillGroup/Paged/Detail
Retrieve all of the BillGroup 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 BillGroup objects in a paged fashion with all object details.
GET BillGroup/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,
                "name": "First of the Month",
                "ownerId": 20,
                "ownerName": "Sample Text Data",
                "billDay": 22,
                "invoiceDateProcessTypeId": 13,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 16,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 26,
                "invoiceDeliveryId": 18,
                "invoiceDeliveryName": "Sample Text Data",
                "details": {
                    "billRuns": [
                        {
                            "identity": 48,
                            "billPeriodEnd": "2021-04-26T15:25:27.587Z",
                            "billPeriodStart": "2021-04-26T15:25:27.587Z",
                            "runBilling": true,
                            "name": "Sample Text Data",
                            "runDelivery": true,
                            "runRenderInvoice": true,
                            "runPaymentTerm": true,
                            "runBillUsage": true,
                            "enabled": true,
                            "runPaymentRetryTerms": true,
                            "collectionTypeId": 9,
                            "collectionTypeName": "Sample Text Data",
                            "runInvoicing": true,
                            "currencyExchangeId": 89,
                            "currencyExchangeName": "Sample Text Data",
                            "runContract": true,
                            "posting": "2021-04-26T15:25:27.587Z",
                            "billRunStatusTypeId": 59,
                            "billRunStatusTypeName": "Sample Text Data",
                            "runPayment": true,
                            "runInvoicingContract": true
                        }
                    ],
                    "billGroupAccountExclusions": [
                        {
                            "identity": 36,
                            "billGroupId": 78,
                            "billGroupName": "Sample Text Data",
                            "accountId": 95,
                            "accountName": "Sample Text Data"
                        }
                    ]
                }
            }
        ]
    }
}
GETBillGroup/{id}
Retrieve an instance of the BillGroup object by its ID.
{id}Unique identifier for the BillGroup object.
Retrieve an instance of the BillGroup object by its ID.
GET BillGroup/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "name": "First of the Month",
        "ownerId": 5,
        "ownerName": "Sample Text Data",
        "billDay": 1,
        "invoiceDateProcessTypeId": 22,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 16,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 3,
        "invoiceDeliveryId": 0,
        "invoiceDeliveryName": "Sample Text Data"
    }
}
GETBillGroup/{id}/Detail
Retrieve deep detail of the BillGroup 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 BillGroup object.
Retrieve deep detail of the BillGroup object by its ID.
GET BillGroup/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "name": "First of the Month",
        "ownerId": 27,
        "ownerName": "Sample Text Data",
        "billDay": 18,
        "invoiceDateProcessTypeId": 14,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 4,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 11,
        "invoiceDeliveryId": 13,
        "invoiceDeliveryName": "Sample Text Data",
        "details": {
            "billRuns": [
                {
                    "identity": 48,
                    "billPeriodEnd": "2021-04-26T15:25:27.587Z",
                    "billPeriodStart": "2021-04-26T15:25:27.587Z",
                    "runBilling": true,
                    "name": "Sample Text Data",
                    "runDelivery": true,
                    "runRenderInvoice": true,
                    "runPaymentTerm": true,
                    "runBillUsage": true,
                    "enabled": true,
                    "runPaymentRetryTerms": true,
                    "collectionTypeId": 9,
                    "collectionTypeName": "Sample Text Data",
                    "runInvoicing": true,
                    "currencyExchangeId": 89,
                    "currencyExchangeName": "Sample Text Data",
                    "runContract": true,
                    "posting": "2021-04-26T15:25:27.587Z",
                    "billRunStatusTypeId": 59,
                    "billRunStatusTypeName": "Sample Text Data",
                    "runPayment": true,
                    "runInvoicingContract": true
                }
            ],
            "billGroupAccountExclusions": [
                {
                    "identity": 36,
                    "billGroupId": 78,
                    "billGroupName": "Sample Text Data",
                    "accountId": 95,
                    "accountName": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHBillGroup/{id}
Update or Add the BillGroup 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 BillGroup object.
Update or Add the BillGroup object and optionally make changes to any child objects.
PATCH BillGroup/{id}

{
    "details": {},
    "billGroups": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "name": "First of the Month",
                "billDay": 0,
                "invoiceDateProcessTypeId": 2,
                "invoiceDueDateTypeId": 15,
                "usageBillDay": 19,
                "invoiceDeliveryId": 17
            }
        ]
    }
}
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": "billGroup",
                "instance": {
                    "identity": 1,
                    "name": "First of the Month",
                    "ownerId": 24,
                    "ownerName": "Sample Text Data",
                    "billDay": 9,
                    "invoiceDateProcessTypeId": 9,
                    "invoiceDateProcessTypeName": "Sample Text Data",
                    "invoiceDueDateTypeId": 10,
                    "invoiceDueDateTypeName": "Sample Text Data",
                    "usageBillDay": 17,
                    "invoiceDeliveryId": 5,
                    "invoiceDeliveryName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTBillGroup/
Create a new instance of the BillGroup object.
Create a new instance of the BillGroup object.
POST BillGroup/

{
    "name": "First of the Month",
    "billDay": 7,
    "invoiceDateProcessTypeId": 12,
    "invoiceDueDateTypeId": 19,
    "usageBillDay": 10,
    "invoiceDeliveryId": 9
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "First of the Month",
                "ownerId": 21,
                "ownerName": "Sample Text Data",
                "billDay": 10,
                "invoiceDateProcessTypeId": 23,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 10,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 25,
                "invoiceDeliveryId": 26,
                "invoiceDeliveryName": "Sample Text Data"
            }
        ]
    }
}
PUTBillGroup/{id}
Update an existing instance of the BillGroup object.
Update an existing instance of the BillGroup object.
PUT BillGroup/{id}

{
    "identity": 1,
    "name": "First of the Month",
    "billDay": 8,
    "invoiceDateProcessTypeId": 5,
    "invoiceDueDateTypeId": 16,
    "usageBillDay": 21,
    "invoiceDeliveryId": 21
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "name": "First of the Month",
                "ownerId": 7,
                "ownerName": "Sample Text Data",
                "billDay": 1,
                "invoiceDateProcessTypeId": 7,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 16,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 16,
                "invoiceDeliveryId": 1,
                "invoiceDeliveryName": "Sample Text Data"
            }
        ]
    }
}