TAG LINE
TAG LINE
SMALL TITLE

Credit / Note

(API Version v7)


This entity represents a Credit Note on an Account with related details.


What can you do with CreditNote?


Properties

Property Details
identity
READ-ONLY
"identity": 24
Type: Number
This is the unique numeric identifier for the CreditNote
accountId
"accountId": 20
Type: Number
Unique identifier for the associated Account object.
accountName
"accountName": "Sample Name"
Type: String
The name of the object associated with the accountId property.
created
READ-ONLY
"created": "2021-04-26T15:25:27.587Z"
Type: Date
This is a system generated date when the record was created. Date and time values are specified in the ISO 8601 format.
createdByUserId
"createdByUserId": 18
Type: Number
Unique identifier for the associated User object.
createdByUserName
"createdByUserName": "Sample Name"
Type: String
The name of the object associated with the createdByUserId property.
templateId
"templateId": 15
Type: Number
The Credit Note template that was used.

Unique identifier for the associated Template object.
templateName
"templateName": "Sample Name"
Type: String
The name of the object associated with the templateId property.
sent
"sent": "2021-04-26T15:25:27.587Z"
Type: Date
The Date Time stamp for when this Credit Note was sent to the Account Contact.

Date and time values are specified in the ISO 8601 format.
name
"name": "Hello World"
Type: String
A user defined/friendly name for the Credit Note
date
"date": "2021-04-26T15:25:27.587Z"
Type: Date
The date stamp to appear on the Credit Note.

Date and time values are specified in the ISO 8601 format.
invoiceDeliveryTypeId
"invoiceDeliveryTypeId": 7
Type: Number
Unique identifier for the associated InvoiceDeliveryType object.
invoiceDeliveryTypeName
"invoiceDeliveryTypeName": "Sample Name"
Type: String
The name of the object associated with the invoiceDeliveryTypeId property.
description
"description": "Hello World"
Type: String
A user defined/friendly description for the Credit Note


End Points

DELETECredit/Note/{id}
Delete an instance of the CreditNote 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 CreditNote object.
Delete an instance of the CreditNote object.
DELETE Credit/Note/{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": "creditNote"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETCredit/Note/
Retrieve all of the CreditNote objects.
Retrieve all of the CreditNote objects.
GET Credit/Note/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "accountId": 21,
            "accountName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "createdByUserId": 8,
            "createdByUserName": "Sample Text Data",
            "templateId": 20,
            "templateName": "Sample Text Data",
            "sent": "2021-04-26T15:25:27.587Z",
            "name": "Sample Text Data",
            "date": "2021-04-26T15:25:27.587Z",
            "invoiceDeliveryTypeId": 24,
            "invoiceDeliveryTypeName": "Sample Text Data",
            "description": "Sample Text Data"
        }
    ]
}
GETCredit/Note/Paged
Retrieve all of the CreditNote 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 CreditNote objects in a paged fashion.
GET Credit/Note/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,
                "accountId": 4,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 9,
                "createdByUserName": "Sample Text Data",
                "templateId": 22,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 20,
                "invoiceDeliveryTypeName": "Sample Text Data",
                "description": "Sample Text Data"
            }
        ]
    }
}
GETCredit/Note/Paged/Detail
Retrieve all of the CreditNote 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 CreditNote objects in a paged fashion with all object details.
GET Credit/Note/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,
                "accountId": 23,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 27,
                "createdByUserName": "Sample Text Data",
                "templateId": 15,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 23,
                "invoiceDeliveryTypeName": "Sample Text Data",
                "description": "Sample Text Data",
                "details": {
                    "invoiceItems": [
                        {
                            "identity": 52,
                            "accountId": 81,
                            "accountName": "Sample Text Data",
                            "packageId": 19,
                            "packageName": "Sample Text Data",
                            "serviceId": 40,
                            "serviceName": "Sample Text Data",
                            "amount": 31.64,
                            "detail": "Sample Text Data",
                            "periodStart": "2021-04-26T15:25:27.587Z",
                            "periodEnd": "2021-04-26T15:25:27.587Z",
                            "prorated": true,
                            "date": "2021-04-26T15:25:27.587Z",
                            "accountPackageName": "Sample Text Data",
                            "accountServiceName": "Sample Text Data",
                            "posting": "2021-04-26T15:25:27.587Z",
                            "invoiceId": 39,
                            "invoiceName": "Sample Text Data",
                            "invoiceItemTypeId": 74,
                            "invoiceItemTypeName": "Sample Text Data",
                            "baseAmount": 72.14,
                            "invoiceAmount": 48.69,
                            "invoiceCurrencyExchangeDetailId": 56,
                            "originalInvoiceItemId": 17,
                            "isManual": true,
                            "createdByUserId": 61,
                            "createdByUserName": "Sample Text Data",
                            "udrUsageIdentifier": "Sample Text Data",
                            "quantity": 85,
                            "price": 71.73,
                            "generalLedgerId": 86,
                            "generalLedgerName": "Sample Text Data",
                            "serviceTaxCategoryId": 95,
                            "serviceTaxCategoryName": "Sample Text Data",
                            "preDiscountAmount": 68.27,
                            "isTaxInclusive": true,
                            "invoicerAccountId": 31,
                            "invoicerAccountName": "Sample Text Data",
                            "created": "2021-04-26T15:25:27.587Z",
                            "updated": "2021-04-26T15:25:27.587Z",
                            "baseInvoiceItemTypeId": 58,
                            "baseInvoiceItemTypeName": "Sample Text Data",
                            "unitAmount": 22.58,
                            "details": {
                                "taxes": [
                                    {
                                        "identity": 80,
                                        "invoiceItemId": 2,
                                        "amount": 56.29,
                                        "taxRateId": 14,
                                        "taxRateName": "Sample Text Data",
                                        "taxCodeId": 74,
                                        "taxCodeName": "Sample Text Data",
                                        "accountTaxCategoryId": 72,
                                        "accountTaxCategoryName": "Sample Text Data",
                                        "baseAmount": 44.88,
                                        "invoiceAmount": 43.65,
                                        "amountReportable": 39.49,
                                        "baseAmountReportable": 54.32,
                                        "invoiceAmountReportable": 93.7,
                                        "serviceTaxCategoryId": 16,
                                        "serviceTaxCategoryName": "Sample Text Data",
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z"
                                    }
                                ],
                                "discounts": [
                                    {
                                        "identity": 55,
                                        "invoiceItemId": 38,
                                        "amount": 4.44,
                                        "accountPackageServiceStatusDiscountId": 38,
                                        "baseAmount": 73.18,
                                        "invoiceAmount": 31.07,
                                        "generalLedgerId": 69,
                                        "generalLedgerName": "Sample Text Data",
                                        "discountAmountId": 14,
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z",
                                        "isFreeTrialExpiring": true
                                    }
                                ],
                                "creditDisbursements": [
                                    {
                                        "identity": 86,
                                        "invoiceId": 83,
                                        "invoiceName": "Sample Text Data",
                                        "amount": 48.77,
                                        "invoiceItemId": 27,
                                        "baseAmount": 80.64,
                                        "invoiceAmount": 42.6,
                                        "automaticDisburse": true
                                    }
                                ],
                                "creditItem": {
                                    "identity": 37,
                                    "invoiceItemId": 4,
                                    "showOnInvoice": true,
                                    "showOnCreditNote": true,
                                    "creditNoteId": 81,
                                    "creditNoteName": "Sample Text Data",
                                    "disbursed": true,
                                    "automaticDisburse": true
                                },
                                "reversals": [
                                    {
                                        "identity": 93,
                                        "accountId": 54,
                                        "accountName": "Sample Text Data",
                                        "packageId": 78,
                                        "packageName": "Sample Text Data",
                                        "serviceId": 84,
                                        "serviceName": "Sample Text Data",
                                        "amount": 46.25,
                                        "detail": "Sample Text Data",
                                        "periodStart": "2021-04-26T15:25:27.587Z",
                                        "periodEnd": "2021-04-26T15:25:27.587Z",
                                        "prorated": true,
                                        "date": "2021-04-26T15:25:27.587Z",
                                        "accountPackageName": "Sample Text Data",
                                        "accountServiceName": "Sample Text Data",
                                        "posting": "2021-04-26T15:25:27.587Z",
                                        "invoiceId": 75,
                                        "invoiceName": "Sample Text Data",
                                        "invoiceItemTypeId": 94,
                                        "invoiceItemTypeName": "Sample Text Data",
                                        "baseAmount": 65.44,
                                        "invoiceAmount": 49.96,
                                        "invoiceCurrencyExchangeDetailId": 94,
                                        "originalInvoiceItemId": 61,
                                        "isManual": true,
                                        "createdByUserId": 78,
                                        "createdByUserName": "Sample Text Data",
                                        "udrUsageIdentifier": "Sample Text Data",
                                        "quantity": 57,
                                        "price": 10.52,
                                        "generalLedgerId": 21,
                                        "generalLedgerName": "Sample Text Data",
                                        "serviceTaxCategoryId": 10,
                                        "serviceTaxCategoryName": "Sample Text Data",
                                        "preDiscountAmount": 23.14,
                                        "isTaxInclusive": true,
                                        "invoicerAccountId": 61,
                                        "invoicerAccountName": "Sample Text Data",
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z",
                                        "baseInvoiceItemTypeId": 1,
                                        "baseInvoiceItemTypeName": "Sample Text Data",
                                        "unitAmount": 11.62
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}
GETCredit/Note/{id}
Retrieve an instance of the CreditNote object by its ID.
{id}Unique identifier for the CreditNote object.
Retrieve an instance of the CreditNote object by its ID.
GET Credit/Note/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "accountId": 11,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 24,
        "createdByUserName": "Sample Text Data",
        "templateId": 19,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 14,
        "invoiceDeliveryTypeName": "Sample Text Data",
        "description": "Sample Text Data"
    }
}
GETCredit/Note/{id}/Detail
Retrieve deep detail of the CreditNote 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 CreditNote object.
Retrieve deep detail of the CreditNote object by its ID.
GET Credit/Note/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "accountId": 23,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 0,
        "createdByUserName": "Sample Text Data",
        "templateId": 12,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 14,
        "invoiceDeliveryTypeName": "Sample Text Data",
        "description": "Sample Text Data",
        "details": {
            "invoiceItems": [
                {
                    "identity": 52,
                    "accountId": 81,
                    "accountName": "Sample Text Data",
                    "packageId": 19,
                    "packageName": "Sample Text Data",
                    "serviceId": 40,
                    "serviceName": "Sample Text Data",
                    "amount": 31.64,
                    "detail": "Sample Text Data",
                    "periodStart": "2021-04-26T15:25:27.587Z",
                    "periodEnd": "2021-04-26T15:25:27.587Z",
                    "prorated": true,
                    "date": "2021-04-26T15:25:27.587Z",
                    "accountPackageName": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "posting": "2021-04-26T15:25:27.587Z",
                    "invoiceId": 39,
                    "invoiceName": "Sample Text Data",
                    "invoiceItemTypeId": 74,
                    "invoiceItemTypeName": "Sample Text Data",
                    "baseAmount": 72.14,
                    "invoiceAmount": 48.69,
                    "invoiceCurrencyExchangeDetailId": 56,
                    "originalInvoiceItemId": 17,
                    "isManual": true,
                    "createdByUserId": 61,
                    "createdByUserName": "Sample Text Data",
                    "udrUsageIdentifier": "Sample Text Data",
                    "quantity": 85,
                    "price": 71.73,
                    "generalLedgerId": 86,
                    "generalLedgerName": "Sample Text Data",
                    "serviceTaxCategoryId": 95,
                    "serviceTaxCategoryName": "Sample Text Data",
                    "preDiscountAmount": 68.27,
                    "isTaxInclusive": true,
                    "invoicerAccountId": 31,
                    "invoicerAccountName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z",
                    "baseInvoiceItemTypeId": 58,
                    "baseInvoiceItemTypeName": "Sample Text Data",
                    "unitAmount": 22.58,
                    "details": {
                        "taxes": [
                            {
                                "identity": 80,
                                "invoiceItemId": 2,
                                "amount": 56.29,
                                "taxRateId": 14,
                                "taxRateName": "Sample Text Data",
                                "taxCodeId": 74,
                                "taxCodeName": "Sample Text Data",
                                "accountTaxCategoryId": 72,
                                "accountTaxCategoryName": "Sample Text Data",
                                "baseAmount": 44.88,
                                "invoiceAmount": 43.65,
                                "amountReportable": 39.49,
                                "baseAmountReportable": 54.32,
                                "invoiceAmountReportable": 93.7,
                                "serviceTaxCategoryId": 16,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z"
                            }
                        ],
                        "discounts": [
                            {
                                "identity": 55,
                                "invoiceItemId": 38,
                                "amount": 4.44,
                                "accountPackageServiceStatusDiscountId": 38,
                                "baseAmount": 73.18,
                                "invoiceAmount": 31.07,
                                "generalLedgerId": 69,
                                "generalLedgerName": "Sample Text Data",
                                "discountAmountId": 14,
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z",
                                "isFreeTrialExpiring": true
                            }
                        ],
                        "creditDisbursements": [
                            {
                                "identity": 86,
                                "invoiceId": 83,
                                "invoiceName": "Sample Text Data",
                                "amount": 48.77,
                                "invoiceItemId": 27,
                                "baseAmount": 80.64,
                                "invoiceAmount": 42.6,
                                "automaticDisburse": true
                            }
                        ],
                        "creditItem": {
                            "identity": 37,
                            "invoiceItemId": 4,
                            "showOnInvoice": true,
                            "showOnCreditNote": true,
                            "creditNoteId": 81,
                            "creditNoteName": "Sample Text Data",
                            "disbursed": true,
                            "automaticDisburse": true
                        },
                        "reversals": [
                            {
                                "identity": 93,
                                "accountId": 54,
                                "accountName": "Sample Text Data",
                                "packageId": 78,
                                "packageName": "Sample Text Data",
                                "serviceId": 84,
                                "serviceName": "Sample Text Data",
                                "amount": 46.25,
                                "detail": "Sample Text Data",
                                "periodStart": "2021-04-26T15:25:27.587Z",
                                "periodEnd": "2021-04-26T15:25:27.587Z",
                                "prorated": true,
                                "date": "2021-04-26T15:25:27.587Z",
                                "accountPackageName": "Sample Text Data",
                                "accountServiceName": "Sample Text Data",
                                "posting": "2021-04-26T15:25:27.587Z",
                                "invoiceId": 75,
                                "invoiceName": "Sample Text Data",
                                "invoiceItemTypeId": 94,
                                "invoiceItemTypeName": "Sample Text Data",
                                "baseAmount": 65.44,
                                "invoiceAmount": 49.96,
                                "invoiceCurrencyExchangeDetailId": 94,
                                "originalInvoiceItemId": 61,
                                "isManual": true,
                                "createdByUserId": 78,
                                "createdByUserName": "Sample Text Data",
                                "udrUsageIdentifier": "Sample Text Data",
                                "quantity": 57,
                                "price": 10.52,
                                "generalLedgerId": 21,
                                "generalLedgerName": "Sample Text Data",
                                "serviceTaxCategoryId": 10,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "preDiscountAmount": 23.14,
                                "isTaxInclusive": true,
                                "invoicerAccountId": 61,
                                "invoicerAccountName": "Sample Text Data",
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z",
                                "baseInvoiceItemTypeId": 1,
                                "baseInvoiceItemTypeName": "Sample Text Data",
                                "unitAmount": 11.62
                            }
                        ]
                    }
                }
            ]
        }
    }
}
GETCredit/Note/{id}/Download
Retrieve all of the Download objects for the specified CreditNote.
{id}Unique identifier for the CreditNote object.
Retrieve all of the Download objects for the specified CreditNote.
GET Credit/Note/{id}/Download
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "accountId": 17,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 22,
        "createdByUserName": "Sample Text Data",
        "templateId": 3,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 5,
        "invoiceDeliveryTypeName": "Sample Text Data",
        "description": "Sample Text Data"
    }
}
POSTCredit/Note/OnDemandRender
Imediately initiates the rendering of a specified CreditNote.
POSTCredit/Note/Send
Delivers the specified CreditNote to the proper recipient.
POSTCredit/Note/{id}/Send
Create a new instance of a Send object that belongs to the CreditNote.
{id}Unique identifier for the CreditNote object.
Create a new instance of a Send object that belongs to the CreditNote.
POST Credit/Note/{id}/Send

{
    "accountId": 6,
    "createdByUserId": 20,
    "templateId": 25,
    "sent": "2021-04-26T15:25:27.587Z",
    "name": "Sample Text Data",
    "date": "2021-04-26T15:25:27.587Z",
    "invoiceDeliveryTypeId": 1,
    "description": "Sample Text Data"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "accountId": 19,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 19,
                "createdByUserName": "Sample Text Data",
                "templateId": 12,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 12,
                "invoiceDeliveryTypeName": "Sample Text Data",
                "description": "Sample Text Data"
            }
        ]
    }
}