TAG LINE
TAG LINE
SMALL TITLE

Bill Group

(API Version v10)


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": 15
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": 13
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": 22
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": 16
Type: Number
The day of the month in which usage associated to this group should be billed.
invoiceDeliveryId
"invoiceDeliveryId": 16
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": 2,
            "invoiceDateProcessTypeId": 7,
            "invoiceDateProcessTypeName": "Sample Text Data",
            "invoiceDueDateTypeId": 6,
            "invoiceDueDateTypeName": "Sample Text Data",
            "usageBillDay": 15,
            "invoiceDeliveryId": 13,
            "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": 5,
                "ownerName": "Sample Text Data",
                "billDay": 8,
                "invoiceDateProcessTypeId": 8,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 13,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 11,
                "invoiceDeliveryId": 12,
                "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": 4,
                "ownerName": "Sample Text Data",
                "billDay": 1,
                "invoiceDateProcessTypeId": 9,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 4,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 23,
                "invoiceDeliveryId": 12,
                "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": 22,
        "ownerName": "Sample Text Data",
        "billDay": 11,
        "invoiceDateProcessTypeId": 11,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 10,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 17,
        "invoiceDeliveryId": 16,
        "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": 6,
        "ownerName": "Sample Text Data",
        "billDay": 18,
        "invoiceDateProcessTypeId": 10,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 8,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 12,
        "invoiceDeliveryId": 0,
        "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": 19,
                "invoiceDateProcessTypeId": 23,
                "invoiceDueDateTypeId": 27,
                "usageBillDay": 10,
                "invoiceDeliveryId": 19
            }
        ]
    }
}
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": 13,
                    "ownerName": "Sample Text Data",
                    "billDay": 19,
                    "invoiceDateProcessTypeId": 23,
                    "invoiceDateProcessTypeName": "Sample Text Data",
                    "invoiceDueDateTypeId": 1,
                    "invoiceDueDateTypeName": "Sample Text Data",
                    "usageBillDay": 17,
                    "invoiceDeliveryId": 23,
                    "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": 5,
    "invoiceDueDateTypeId": 21,
    "usageBillDay": 16,
    "invoiceDeliveryId": 18
}
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": 19,
                "ownerName": "Sample Text Data",
                "billDay": 3,
                "invoiceDateProcessTypeId": 17,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 8,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 18,
                "invoiceDeliveryId": 17,
                "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": 27,
    "invoiceDateProcessTypeId": 1,
    "invoiceDueDateTypeId": 15,
    "usageBillDay": 23,
    "invoiceDeliveryId": 3
}
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": 23,
                "ownerName": "Sample Text Data",
                "billDay": 7,
                "invoiceDateProcessTypeId": 16,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 11,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 6,
                "invoiceDeliveryId": 26,
                "invoiceDeliveryName": "Sample Text Data"
            }
        ]
    }
}