TAG LINE
TAG LINE
SMALL TITLE

Bill Group

(API Version v5)


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": 0
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.
advanceInvoiceDays
READ-ONLY
"advanceInvoiceDays": 12
Type: Number
System generated.
ownerId
READ-ONLY
"ownerId": 10
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": 5
Type: Number
The day of the month in which this group should be billed for recurring and one-time charges.
invoiceDateProcessTypeId
"invoiceDateProcessTypeId": 3
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.
invoiceCloseThresholdAmount
"invoiceCloseThresholdAmount": 2.51
Type: Number
The minimum threshold that the invoice must total before generating an invoice.
usageBillingTypeId
"usageBillingTypeId": 19
Type: Number
Unique identifier for the associated UsageBillingType object.
usageBillingTypeName
"usageBillingTypeName": "Sample Name"
Type: String
The name of the object associated with the usageBillingTypeId property.
invoiceDueDateTypeId
"invoiceDueDateTypeId": 22
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": 11
Type: Number
The day of the month in which usage associated to this group should be billed.
invoiceDeliveryId
"invoiceDeliveryId": 0
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 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 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 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 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",
            "advanceInvoiceDays": 6,
            "ownerId": 17,
            "ownerName": "Sample Text Data",
            "billDay": 5,
            "invoiceDateProcessTypeId": 22,
            "invoiceDateProcessTypeName": "Sample Text Data",
            "invoiceCloseThresholdAmount": 2.51,
            "usageBillingTypeId": 27,
            "usageBillingTypeName": "Sample Text Data",
            "invoiceDueDateTypeId": 7,
            "invoiceDueDateTypeName": "Sample Text Data",
            "usageBillDay": 13,
            "invoiceDeliveryId": 9,
            "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",
                "advanceInvoiceDays": 7,
                "ownerId": 8,
                "ownerName": "Sample Text Data",
                "billDay": 22,
                "invoiceDateProcessTypeId": 19,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceCloseThresholdAmount": 2.51,
                "usageBillingTypeId": 4,
                "usageBillingTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 16,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 11,
                "invoiceDeliveryId": 23,
                "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",
                "advanceInvoiceDays": 8,
                "ownerId": 16,
                "ownerName": "Sample Text Data",
                "billDay": 25,
                "invoiceDateProcessTypeId": 10,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceCloseThresholdAmount": 2.51,
                "usageBillingTypeId": 4,
                "usageBillingTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 19,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 5,
                "invoiceDeliveryId": 2,
                "invoiceDeliveryName": "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
                            }
                        ]
                    }
                }
            }
        ]
    }
}
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",
        "advanceInvoiceDays": 18,
        "ownerId": 21,
        "ownerName": "Sample Text Data",
        "billDay": 18,
        "invoiceDateProcessTypeId": 21,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceCloseThresholdAmount": 2.51,
        "usageBillingTypeId": 24,
        "usageBillingTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 27,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 12,
        "invoiceDeliveryId": 18,
        "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",
        "advanceInvoiceDays": 1,
        "ownerId": 17,
        "ownerName": "Sample Text Data",
        "billDay": 16,
        "invoiceDateProcessTypeId": 0,
        "invoiceDateProcessTypeName": "Sample Text Data",
        "invoiceCloseThresholdAmount": 2.51,
        "usageBillingTypeId": 22,
        "usageBillingTypeName": "Sample Text Data",
        "invoiceDueDateTypeId": 27,
        "invoiceDueDateTypeName": "Sample Text Data",
        "usageBillDay": 4,
        "invoiceDeliveryId": 6,
        "invoiceDeliveryName": "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
                    }
                ]
            }
        }
    }
}
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": 25,
                "invoiceCloseThresholdAmount": 2.51,
                "usageBillingTypeId": 5,
                "invoiceDueDateTypeId": 14,
                "usageBillDay": 19,
                "invoiceDeliveryId": 24
            }
        ]
    }
}
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",
                    "advanceInvoiceDays": 3,
                    "ownerId": 17,
                    "ownerName": "Sample Text Data",
                    "billDay": 19,
                    "invoiceDateProcessTypeId": 26,
                    "invoiceDateProcessTypeName": "Sample Text Data",
                    "invoiceCloseThresholdAmount": 2.51,
                    "usageBillingTypeId": 2,
                    "usageBillingTypeName": "Sample Text Data",
                    "invoiceDueDateTypeId": 9,
                    "invoiceDueDateTypeName": "Sample Text Data",
                    "usageBillDay": 7,
                    "invoiceDeliveryId": 12,
                    "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": 17,
    "invoiceDateProcessTypeId": 21,
    "invoiceCloseThresholdAmount": 2.51,
    "usageBillingTypeId": 18,
    "invoiceDueDateTypeId": 19,
    "usageBillDay": 7,
    "invoiceDeliveryId": 8
}
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",
                "advanceInvoiceDays": 15,
                "ownerId": 13,
                "ownerName": "Sample Text Data",
                "billDay": 16,
                "invoiceDateProcessTypeId": 25,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceCloseThresholdAmount": 2.51,
                "usageBillingTypeId": 7,
                "usageBillingTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 7,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 0,
                "invoiceDeliveryId": 13,
                "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": 9,
    "invoiceDateProcessTypeId": 3,
    "invoiceCloseThresholdAmount": 2.51,
    "usageBillingTypeId": 1,
    "invoiceDueDateTypeId": 18,
    "usageBillDay": 7,
    "invoiceDeliveryId": 4
}
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",
                "advanceInvoiceDays": 24,
                "ownerId": 12,
                "ownerName": "Sample Text Data",
                "billDay": 22,
                "invoiceDateProcessTypeId": 22,
                "invoiceDateProcessTypeName": "Sample Text Data",
                "invoiceCloseThresholdAmount": 2.51,
                "usageBillingTypeId": 6,
                "usageBillingTypeName": "Sample Text Data",
                "invoiceDueDateTypeId": 14,
                "invoiceDueDateTypeName": "Sample Text Data",
                "usageBillDay": 14,
                "invoiceDeliveryId": 21,
                "invoiceDeliveryName": "Sample Text Data"
            }
        ]
    }
}