TAG LINE
TAG LINE
SMALL TITLE

Credit / Note

(API Version v6)


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": 11
Type: Number
This is the unique numeric identifier for the CreditNote
accountId
"accountId": 19
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": 12
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": 13
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": 5
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 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 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": 14,
            "accountName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "createdByUserId": 18,
            "createdByUserName": "Sample Text Data",
            "templateId": 1,
            "templateName": "Sample Text Data",
            "sent": "2021-04-26T15:25:27.587Z",
            "name": "Sample Text Data",
            "date": "2021-04-26T15:25:27.587Z",
            "invoiceDeliveryTypeId": 22,
            "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": 0,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 6,
                "createdByUserName": "Sample Text Data",
                "templateId": 7,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 15,
                "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": 27,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 21,
                "createdByUserName": "Sample Text Data",
                "templateId": 27,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 3,
                "invoiceDeliveryTypeName": "Sample Text Data",
                "description": "Sample Text Data",
                "details": {
                    "invoiceItems": [
                        {
                            "identity": 99,
                            "accountId": 63,
                            "accountName": "Sample Text Data",
                            "packageId": 13,
                            "packageName": "Sample Text Data",
                            "serviceId": 31,
                            "serviceName": "Sample Text Data",
                            "amount": 98.51,
                            "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": 9,
                            "invoiceName": "Sample Text Data",
                            "invoiceItemTypeId": 6,
                            "invoiceItemTypeName": "Sample Text Data",
                            "baseAmount": 76.24,
                            "invoiceAmount": 18.3,
                            "invoiceCurrencyExchangeDetailId": 70,
                            "originalInvoiceItemId": 67,
                            "isManual": true,
                            "createdByUserId": 32,
                            "createdByUserName": "Sample Text Data",
                            "udrUsageIdentifier": "Sample Text Data",
                            "quantity": 85,
                            "price": 67.39,
                            "generalLedgerId": 37,
                            "generalLedgerName": "Sample Text Data",
                            "serviceTaxCategoryId": 49,
                            "serviceTaxCategoryName": "Sample Text Data",
                            "preDiscountAmount": 94.13,
                            "isTaxInclusive": true,
                            "baseInvoiceItemTypeId": 82,
                            "baseInvoiceItemTypeName": "Sample Text Data",
                            "unitAmount": 1.43,
                            "details": {
                                "taxes": [
                                    {
                                        "identity": 27,
                                        "invoiceItemId": 0,
                                        "amount": 39.22,
                                        "taxRateId": 74,
                                        "taxRateName": "Sample Text Data",
                                        "taxCodeId": 38,
                                        "taxCodeName": "Sample Text Data",
                                        "accountTaxCategoryId": 78,
                                        "accountTaxCategoryName": "Sample Text Data",
                                        "baseAmount": 63.01,
                                        "invoiceAmount": 13.62,
                                        "amountReportable": 89.69,
                                        "baseAmountReportable": 50.38,
                                        "invoiceAmountReportable": 72.21,
                                        "serviceTaxCategoryId": 43,
                                        "serviceTaxCategoryName": "Sample Text Data"
                                    }
                                ],
                                "discounts": [
                                    {
                                        "identity": 95,
                                        "invoiceItemId": 59,
                                        "amount": 2.59,
                                        "accountPackageServiceStatusDiscountId": 47,
                                        "baseAmount": 1.1,
                                        "invoiceAmount": 77.79,
                                        "generalLedgerId": 33,
                                        "generalLedgerName": "Sample Text Data",
                                        "discountAmountId": 36
                                    }
                                ],
                                "creditDisbursements": [
                                    {
                                        "identity": 91,
                                        "invoiceId": 35,
                                        "invoiceName": "Sample Text Data",
                                        "amount": 54.45,
                                        "invoiceItemId": 53,
                                        "baseAmount": 27.64,
                                        "invoiceAmount": 69.22,
                                        "automaticDisburse": true
                                    }
                                ],
                                "creditItem": {
                                    "identity": 77,
                                    "invoiceItemId": 45,
                                    "showOnInvoice": true,
                                    "showOnCreditNote": true,
                                    "creditNoteId": 53,
                                    "creditNoteName": "Sample Text Data",
                                    "disbursed": true,
                                    "automaticDisburse": true
                                },
                                "reversals": [
                                    {
                                        "identity": 89,
                                        "accountId": 88,
                                        "accountName": "Sample Text Data",
                                        "packageId": 1,
                                        "packageName": "Sample Text Data",
                                        "serviceId": 94,
                                        "serviceName": "Sample Text Data",
                                        "amount": 81.79,
                                        "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": 94,
                                        "invoiceName": "Sample Text Data",
                                        "invoiceItemTypeId": 32,
                                        "invoiceItemTypeName": "Sample Text Data",
                                        "baseAmount": 58.38,
                                        "invoiceAmount": 82.15,
                                        "invoiceCurrencyExchangeDetailId": 7,
                                        "originalInvoiceItemId": 0,
                                        "isManual": true,
                                        "createdByUserId": 45,
                                        "createdByUserName": "Sample Text Data",
                                        "udrUsageIdentifier": "Sample Text Data",
                                        "quantity": 84,
                                        "price": 43.73,
                                        "generalLedgerId": 97,
                                        "generalLedgerName": "Sample Text Data",
                                        "serviceTaxCategoryId": 3,
                                        "serviceTaxCategoryName": "Sample Text Data",
                                        "preDiscountAmount": 44.96,
                                        "isTaxInclusive": true,
                                        "baseInvoiceItemTypeId": 63,
                                        "baseInvoiceItemTypeName": "Sample Text Data",
                                        "unitAmount": 73.32
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}
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": 24,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 19,
        "createdByUserName": "Sample Text Data",
        "templateId": 2,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 15,
        "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": 22,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 15,
        "createdByUserName": "Sample Text Data",
        "templateId": 18,
        "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",
        "details": {
            "invoiceItems": [
                {
                    "identity": 99,
                    "accountId": 63,
                    "accountName": "Sample Text Data",
                    "packageId": 13,
                    "packageName": "Sample Text Data",
                    "serviceId": 31,
                    "serviceName": "Sample Text Data",
                    "amount": 98.51,
                    "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": 9,
                    "invoiceName": "Sample Text Data",
                    "invoiceItemTypeId": 6,
                    "invoiceItemTypeName": "Sample Text Data",
                    "baseAmount": 76.24,
                    "invoiceAmount": 18.3,
                    "invoiceCurrencyExchangeDetailId": 70,
                    "originalInvoiceItemId": 67,
                    "isManual": true,
                    "createdByUserId": 32,
                    "createdByUserName": "Sample Text Data",
                    "udrUsageIdentifier": "Sample Text Data",
                    "quantity": 85,
                    "price": 67.39,
                    "generalLedgerId": 37,
                    "generalLedgerName": "Sample Text Data",
                    "serviceTaxCategoryId": 49,
                    "serviceTaxCategoryName": "Sample Text Data",
                    "preDiscountAmount": 94.13,
                    "isTaxInclusive": true,
                    "baseInvoiceItemTypeId": 82,
                    "baseInvoiceItemTypeName": "Sample Text Data",
                    "unitAmount": 1.43,
                    "details": {
                        "taxes": [
                            {
                                "identity": 27,
                                "invoiceItemId": 0,
                                "amount": 39.22,
                                "taxRateId": 74,
                                "taxRateName": "Sample Text Data",
                                "taxCodeId": 38,
                                "taxCodeName": "Sample Text Data",
                                "accountTaxCategoryId": 78,
                                "accountTaxCategoryName": "Sample Text Data",
                                "baseAmount": 63.01,
                                "invoiceAmount": 13.62,
                                "amountReportable": 89.69,
                                "baseAmountReportable": 50.38,
                                "invoiceAmountReportable": 72.21,
                                "serviceTaxCategoryId": 43,
                                "serviceTaxCategoryName": "Sample Text Data"
                            }
                        ],
                        "discounts": [
                            {
                                "identity": 95,
                                "invoiceItemId": 59,
                                "amount": 2.59,
                                "accountPackageServiceStatusDiscountId": 47,
                                "baseAmount": 1.1,
                                "invoiceAmount": 77.79,
                                "generalLedgerId": 33,
                                "generalLedgerName": "Sample Text Data",
                                "discountAmountId": 36
                            }
                        ],
                        "creditDisbursements": [
                            {
                                "identity": 91,
                                "invoiceId": 35,
                                "invoiceName": "Sample Text Data",
                                "amount": 54.45,
                                "invoiceItemId": 53,
                                "baseAmount": 27.64,
                                "invoiceAmount": 69.22,
                                "automaticDisburse": true
                            }
                        ],
                        "creditItem": {
                            "identity": 77,
                            "invoiceItemId": 45,
                            "showOnInvoice": true,
                            "showOnCreditNote": true,
                            "creditNoteId": 53,
                            "creditNoteName": "Sample Text Data",
                            "disbursed": true,
                            "automaticDisburse": true
                        },
                        "reversals": [
                            {
                                "identity": 89,
                                "accountId": 88,
                                "accountName": "Sample Text Data",
                                "packageId": 1,
                                "packageName": "Sample Text Data",
                                "serviceId": 94,
                                "serviceName": "Sample Text Data",
                                "amount": 81.79,
                                "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": 94,
                                "invoiceName": "Sample Text Data",
                                "invoiceItemTypeId": 32,
                                "invoiceItemTypeName": "Sample Text Data",
                                "baseAmount": 58.38,
                                "invoiceAmount": 82.15,
                                "invoiceCurrencyExchangeDetailId": 7,
                                "originalInvoiceItemId": 0,
                                "isManual": true,
                                "createdByUserId": 45,
                                "createdByUserName": "Sample Text Data",
                                "udrUsageIdentifier": "Sample Text Data",
                                "quantity": 84,
                                "price": 43.73,
                                "generalLedgerId": 97,
                                "generalLedgerName": "Sample Text Data",
                                "serviceTaxCategoryId": 3,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "preDiscountAmount": 44.96,
                                "isTaxInclusive": true,
                                "baseInvoiceItemTypeId": 63,
                                "baseInvoiceItemTypeName": "Sample Text Data",
                                "unitAmount": 73.32
                            }
                        ]
                    }
                }
            ]
        }
    }
}
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": 23,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 4,
        "createdByUserName": "Sample Text Data",
        "templateId": 26,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 2,
        "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": 15,
    "createdByUserId": 13,
    "templateId": 1,
    "sent": "2021-04-26T15:25:27.587Z",
    "name": "Sample Text Data",
    "date": "2021-04-26T15:25:27.587Z",
    "invoiceDeliveryTypeId": 3,
    "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": 5,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 27,
                "createdByUserName": "Sample Text Data",
                "templateId": 27,
                "templateName": "Sample Text Data",
                "sent": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "date": "2021-04-26T15:25:27.587Z",
                "invoiceDeliveryTypeId": 0,
                "invoiceDeliveryTypeName": "Sample Text Data",
                "description": "Sample Text Data"
            }
        ]
    }
}