TAG LINE
TAG LINE
SMALL TITLE

Credit / Note

(API Version v10)


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": 6
Type: Number
This is the unique numeric identifier for the CreditNote
accountId
"accountId": 14
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": 3
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": 4
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": 22,
            "accountName": "Sample Text Data",
            "created": "2021-04-26T15:25:27.587Z",
            "createdByUserId": 1,
            "createdByUserName": "Sample Text Data",
            "templateId": 17,
            "templateName": "Sample Text Data",
            "sent": "2021-04-26T15:25:27.587Z",
            "name": "Sample Text Data",
            "date": "2021-04-26T15:25:27.587Z",
            "invoiceDeliveryTypeId": 8,
            "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": 18,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "createdByUserId": 25,
                "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": 27,
                "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": 13,
                "createdByUserName": "Sample Text Data",
                "templateId": 8,
                "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": 32,
                            "accountId": 68,
                            "accountName": "Sample Text Data",
                            "packageId": 57,
                            "packageName": "Sample Text Data",
                            "serviceId": 24,
                            "serviceName": "Sample Text Data",
                            "amount": 19.3,
                            "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": 73,
                            "invoiceItemTypeName": "Sample Text Data",
                            "baseAmount": 26.01,
                            "invoiceAmount": 36.33,
                            "invoiceCurrencyExchangeDetailId": 80,
                            "originalInvoiceItemId": 90,
                            "isManual": true,
                            "createdByUserId": 39,
                            "createdByUserName": "Sample Text Data",
                            "udrUsageIdentifier": "Sample Text Data",
                            "quantity": 88,
                            "price": 75.44,
                            "generalLedgerId": 61,
                            "generalLedgerName": "Sample Text Data",
                            "serviceTaxCategoryId": 45,
                            "serviceTaxCategoryName": "Sample Text Data",
                            "preDiscountAmount": 48.11,
                            "isTaxInclusive": true,
                            "invoicerAccountId": 52,
                            "invoicerAccountName": "Sample Text Data",
                            "created": "2021-04-26T15:25:27.587Z",
                            "updated": "2021-04-26T15:25:27.587Z",
                            "baseInvoiceItemTypeId": 88,
                            "baseInvoiceItemTypeName": "Sample Text Data",
                            "unitAmount": 43.83,
                            "details": {
                                "taxes": [
                                    {
                                        "identity": 20,
                                        "invoiceItemId": 86,
                                        "amount": 46.69,
                                        "taxRateId": 52,
                                        "taxRateName": "Sample Text Data",
                                        "taxCodeId": 77,
                                        "taxCodeName": "Sample Text Data",
                                        "accountTaxCategoryId": 50,
                                        "accountTaxCategoryName": "Sample Text Data",
                                        "baseAmount": 81.13,
                                        "invoiceAmount": 63.07,
                                        "amountReportable": 67.8,
                                        "baseAmountReportable": 1.9300000000000002,
                                        "invoiceAmountReportable": 95.83,
                                        "serviceTaxCategoryId": 10,
                                        "serviceTaxCategoryName": "Sample Text Data",
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z"
                                    }
                                ],
                                "discounts": [
                                    {
                                        "identity": 36,
                                        "invoiceItemId": 72,
                                        "amount": 63.71,
                                        "accountPackageServiceStatusDiscountId": 52,
                                        "baseAmount": 87.25,
                                        "invoiceAmount": 85.32,
                                        "generalLedgerId": 37,
                                        "generalLedgerName": "Sample Text Data",
                                        "discountAmountId": 16,
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z",
                                        "isFreeTrialExpiring": true
                                    }
                                ],
                                "creditDisbursements": [
                                    {
                                        "identity": 1,
                                        "invoiceId": 86,
                                        "invoiceName": "Sample Text Data",
                                        "amount": 6.75,
                                        "invoiceItemId": 65,
                                        "baseAmount": 83.86,
                                        "invoiceAmount": 65.49,
                                        "automaticDisburse": true
                                    }
                                ],
                                "creditItem": {
                                    "identity": 41,
                                    "invoiceItemId": 43,
                                    "showOnInvoice": true,
                                    "showOnCreditNote": true,
                                    "creditNoteId": 48,
                                    "creditNoteName": "Sample Text Data",
                                    "disbursed": true,
                                    "automaticDisburse": true
                                },
                                "reversals": [
                                    {
                                        "identity": 78,
                                        "accountId": 82,
                                        "accountName": "Sample Text Data",
                                        "packageId": 30,
                                        "packageName": "Sample Text Data",
                                        "serviceId": 64,
                                        "serviceName": "Sample Text Data",
                                        "amount": 17.28,
                                        "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": 34,
                                        "invoiceName": "Sample Text Data",
                                        "invoiceItemTypeId": 34,
                                        "invoiceItemTypeName": "Sample Text Data",
                                        "baseAmount": 68.22,
                                        "invoiceAmount": 80.43,
                                        "invoiceCurrencyExchangeDetailId": 45,
                                        "originalInvoiceItemId": 60,
                                        "isManual": true,
                                        "createdByUserId": 85,
                                        "createdByUserName": "Sample Text Data",
                                        "udrUsageIdentifier": "Sample Text Data",
                                        "quantity": 22,
                                        "price": 59.12,
                                        "generalLedgerId": 7,
                                        "generalLedgerName": "Sample Text Data",
                                        "serviceTaxCategoryId": 54,
                                        "serviceTaxCategoryName": "Sample Text Data",
                                        "preDiscountAmount": 88.97,
                                        "isTaxInclusive": true,
                                        "invoicerAccountId": 71,
                                        "invoicerAccountName": "Sample Text Data",
                                        "created": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z",
                                        "baseInvoiceItemTypeId": 68,
                                        "baseInvoiceItemTypeName": "Sample Text Data",
                                        "unitAmount": 21.38
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}
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": 12,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 24,
        "createdByUserName": "Sample Text Data",
        "templateId": 5,
        "templateName": "Sample Text Data",
        "sent": "2021-04-26T15:25:27.587Z",
        "name": "Sample Text Data",
        "date": "2021-04-26T15:25:27.587Z",
        "invoiceDeliveryTypeId": 16,
        "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": 5,
        "accountName": "Sample Text Data",
        "created": "2021-04-26T15:25:27.587Z",
        "createdByUserId": 26,
        "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": 17,
        "invoiceDeliveryTypeName": "Sample Text Data",
        "description": "Sample Text Data",
        "details": {
            "invoiceItems": [
                {
                    "identity": 32,
                    "accountId": 68,
                    "accountName": "Sample Text Data",
                    "packageId": 57,
                    "packageName": "Sample Text Data",
                    "serviceId": 24,
                    "serviceName": "Sample Text Data",
                    "amount": 19.3,
                    "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": 73,
                    "invoiceItemTypeName": "Sample Text Data",
                    "baseAmount": 26.01,
                    "invoiceAmount": 36.33,
                    "invoiceCurrencyExchangeDetailId": 80,
                    "originalInvoiceItemId": 90,
                    "isManual": true,
                    "createdByUserId": 39,
                    "createdByUserName": "Sample Text Data",
                    "udrUsageIdentifier": "Sample Text Data",
                    "quantity": 88,
                    "price": 75.44,
                    "generalLedgerId": 61,
                    "generalLedgerName": "Sample Text Data",
                    "serviceTaxCategoryId": 45,
                    "serviceTaxCategoryName": "Sample Text Data",
                    "preDiscountAmount": 48.11,
                    "isTaxInclusive": true,
                    "invoicerAccountId": 52,
                    "invoicerAccountName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z",
                    "baseInvoiceItemTypeId": 88,
                    "baseInvoiceItemTypeName": "Sample Text Data",
                    "unitAmount": 43.83,
                    "details": {
                        "taxes": [
                            {
                                "identity": 20,
                                "invoiceItemId": 86,
                                "amount": 46.69,
                                "taxRateId": 52,
                                "taxRateName": "Sample Text Data",
                                "taxCodeId": 77,
                                "taxCodeName": "Sample Text Data",
                                "accountTaxCategoryId": 50,
                                "accountTaxCategoryName": "Sample Text Data",
                                "baseAmount": 81.13,
                                "invoiceAmount": 63.07,
                                "amountReportable": 67.8,
                                "baseAmountReportable": 1.9300000000000002,
                                "invoiceAmountReportable": 95.83,
                                "serviceTaxCategoryId": 10,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z"
                            }
                        ],
                        "discounts": [
                            {
                                "identity": 36,
                                "invoiceItemId": 72,
                                "amount": 63.71,
                                "accountPackageServiceStatusDiscountId": 52,
                                "baseAmount": 87.25,
                                "invoiceAmount": 85.32,
                                "generalLedgerId": 37,
                                "generalLedgerName": "Sample Text Data",
                                "discountAmountId": 16,
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z",
                                "isFreeTrialExpiring": true
                            }
                        ],
                        "creditDisbursements": [
                            {
                                "identity": 1,
                                "invoiceId": 86,
                                "invoiceName": "Sample Text Data",
                                "amount": 6.75,
                                "invoiceItemId": 65,
                                "baseAmount": 83.86,
                                "invoiceAmount": 65.49,
                                "automaticDisburse": true
                            }
                        ],
                        "creditItem": {
                            "identity": 41,
                            "invoiceItemId": 43,
                            "showOnInvoice": true,
                            "showOnCreditNote": true,
                            "creditNoteId": 48,
                            "creditNoteName": "Sample Text Data",
                            "disbursed": true,
                            "automaticDisburse": true
                        },
                        "reversals": [
                            {
                                "identity": 78,
                                "accountId": 82,
                                "accountName": "Sample Text Data",
                                "packageId": 30,
                                "packageName": "Sample Text Data",
                                "serviceId": 64,
                                "serviceName": "Sample Text Data",
                                "amount": 17.28,
                                "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": 34,
                                "invoiceName": "Sample Text Data",
                                "invoiceItemTypeId": 34,
                                "invoiceItemTypeName": "Sample Text Data",
                                "baseAmount": 68.22,
                                "invoiceAmount": 80.43,
                                "invoiceCurrencyExchangeDetailId": 45,
                                "originalInvoiceItemId": 60,
                                "isManual": true,
                                "createdByUserId": 85,
                                "createdByUserName": "Sample Text Data",
                                "udrUsageIdentifier": "Sample Text Data",
                                "quantity": 22,
                                "price": 59.12,
                                "generalLedgerId": 7,
                                "generalLedgerName": "Sample Text Data",
                                "serviceTaxCategoryId": 54,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "preDiscountAmount": 88.97,
                                "isTaxInclusive": true,
                                "invoicerAccountId": 71,
                                "invoicerAccountName": "Sample Text Data",
                                "created": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z",
                                "baseInvoiceItemTypeId": 68,
                                "baseInvoiceItemTypeName": "Sample Text Data",
                                "unitAmount": 21.38
                            }
                        ]
                    }
                }
            ]
        }
    }
}
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": 24,
        "createdByUserName": "Sample Text Data",
        "templateId": 6,
        "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": 25,
    "createdByUserId": 20,
    "templateId": 9,
    "sent": "2021-04-26T15:25:27.587Z",
    "name": "Sample Text Data",
    "date": "2021-04-26T15:25:27.587Z",
    "invoiceDeliveryTypeId": 24,
    "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": 6,
                "createdByUserName": "Sample Text Data",
                "templateId": 6,
                "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"
            }
        ]
    }
}