Retrieve Credit Note by ID : /credit-notes/{credit-note_id}
Purpose
This endpoint retrieve credit note information associated with a specific account or order, identified by its unique ID. Credit note in the system are generated when excess payment is made through any payment processor for an order, and the extra payment is recorded as a credit note for future adjustments or refunds.
Use Case
The endpoint is used to retrieve detailed information about credit note for financial reconciliation, reporting, or refund processing. If a customer has overpaid on an order, these extra funds appear as credit notes, and this API can be used by finance teams or administrators to view the status, amount, balance, and related transactions of these credits.
Path Parameters
Parameter | Type | Description |
---|---|---|
credit-note_id | String | The unique identifier used to fetch related credit notes. |
Query Parameters
This endpoint does not have any query parameters.
Request Body
No request body is required for this endpoint.
Response
The API returns credit note details such as status, credit note ID, date, amount, associated invoice and payment IDs, remaining balance, refund eligibility, custom attributes, and audit metadata.
{
"credit_note": {
"status": "STATUS",
"id": "CREDIT_NOTE_ID",
"date": "TIMESTAMP",
"amount": "NUMBER",
"invoice_id": "INVOICE_ID",
"remaining_balance": "NUMBER",
"refundable": "BOOLEAN",
"payment_id": "PAYMENT_ID",
"custom_attributes": [
{
"name": "ATTRIBUTE_NAME",
"value": "EMPTY"
}
],
"custom_objects": [],
"version": "VERSION",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"updated_by": "EMPTY",
"updated_on": "EMPTY",
"uuid": "UUID",
"account_id": "ACCOUNT_ID"
}
}
Attribute | Type | Description |
---|---|---|
status | String | Current status of the credit note (e.g., ACTIVE). |
id | String | The unique credit note identifier. |
date | String | Date of credit note creation (ISO 8601 format). |
amount | String | Total amount of the credit note. |
invoice_id | String | The ID of the invoice linked to the credit note. |
remaining_balance | String | The unused portion of the credit note amount. |
refundable | String | Indicates if the credit note is eligible for refund. |
payment_id | String | ID of the payment related to this credit note. |
custom_attributes | Array | List of custom attribute name-value pairs. |
custom_objects | Array | Custom object data related to the credit note. |
version | String | Version number of the credit note record. |
created_by | String | Name or identifier of the user who created the credit note. |
created_on | String | Timestamp of when the credit note was created (ISO 8601). |
updated_by | String | Name or identifier of the user who last updated the credit note. |
updated_on | String | Timestamp of the last update (ISO 8601). |
uuid | String | Universally unique identifier of the credit note. |
account_id | String | The account associated with the credit note. |
Retrieve Credit Note Applications : /credit-note-applications
Purpose
The endpoint retrieves a list of credit note application details, showing how credit notes have been applied to payments or refunds. Each record provides the date of application, the amount applied, the related credit note and payment IDs, any remaining balance, and creation metadata. This allows tracking of how credit notes are utilized over time for financial reconciliation.
Use Case
This endpoint is used to monitor the usage of credit notes in transactions. For example, when a customer makes a new order and chooses to pay using an existing credit note, the application of that credit note is recorded here. This helps finance teams understand how credit balances are reduced and track any remaining amounts available.
Path Parameters
No request body is required for this endpoint.
Query Parameters
Parameter | Type | Description |
---|---|---|
limit | Integer | Maximum number of records to return per page. |
offset | Integer | Number of records to skip before starting to return results. |
Request Body
No request body is required for this endpoint.
Response
The endpoint returns a list of credit note application records, each containing details about the applied amount, associated credit note and payment, remaining balance, and metadata such as creation date and user. The response also includes pagination data for navigating large datasets.
{
"credit_note_applications": [
{
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
},
{
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
}
],
"pagination": {
"records": "NUMBER",
"limit": "NUMBER",
"offset": "NUMBER",
"previous_page": "URL",
"next_page": "URL"
}
}
Attribute | Type | Description |
---|---|---|
credit_note_applications | Array | List of credit note application records. |
date | String (ISO 8601) | Date when the credit note was applied. |
amount | String | Amount of credit applied. |
credit_note_id | String | Unique ID of the credit note. |
payment_id | String | Payment ID to which the credit note was applied. |
refund_id | String | Refund ID if the credit was applied to a refund. |
remaining_balance | String | Remaining balance on the credit note after application. |
created_by | String | User who created the application record. |
created_on | String (ISO 8601) | Date and time when the record was created. |
uuid | String (UUID) | Unique identifier for the credit note application record. |
version | String | Record version number. |
pagination | Object | Contains pagination information. |
records | Integer | Total number of records available. |
.limit | Integer | Number of records per page. |
offset | Integer | Number of records skipped. |
previous_page | String (URL) | URL for the previous page of results. |
next_page | String (URL) | URL for the next page of results. |
Retrieve Credit Note Application by UUID : /credit-note-applications/{credit-note-application_uuid}
Purpose
The endpoint retrieves detailed information for a specific credit note application, including applied amount, remaining balance, and associated payment or refund details.
Use Case
This endpoint is used to fetch complete details of a specific credit note application for auditing, reporting, or financial reconciliation purposes. For example, finance teams can use this information to verify how much of a credit note has been applied to a payment, what remains unused, and who created the application record.
Path Parameters
Parameter | Type | Description |
---|---|---|
credit-note-application_uuid | String | Unique identifier of the credit note application to retrieve. |
Query Parameters
This endpoint does not have any query parameters.
Request Body
No request body is required for this endpoint.
Response
The function returns detailed information about a specific credit note application. The response includes the application date, amount applied, credit note ID, associated payment or refund IDs, remaining balance, creator details, creation date, unique identifier, and version number.
{
"credit_note_application": {
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
}
}
Attribute | Type | Description |
---|---|---|
date | String | Date the credit note was applied (ISO 8601 format). |
amount | String | Amount of the credit note applied in this record. |
credit_note_id | String | Unique identifier of the credit note. |
payment_id | String | Associated payment ID if applied to a payment. |
refund_id | String | Associated refund ID if applied to a refund. Empty if not applicable. |
remaining_balance | String | Remaining unused balance of the credit note. |
created_by | String | Name of the user who created the credit note application. |
created_on | String | Date and time when the record was created (ISO 8601 format). |
uuid | String | Unique identifier of the credit note application record. |
version | String | Version number of the record. |
Retrieve a Invoice Credit Note Application List : /invoices/{invoice_id}/credit-note-applications
Purpose
This endpoint retrieves a list of credit note applications applied to a specific invoice. It provides detailed records of applied credit notes, including amount, payment linkage, remaining balance, and audit information, along with pagination details for navigation.
Use Case
This API is used to track how credit notes have been applied against a given invoice. It helps finance teams, billing systems, or auditors verify invoice settlements, monitor applied credit amounts, and maintain an accurate balance of outstanding invoices.
Path Parameters
Parameter | Type | Description |
---|---|---|
invoice_id | String | Unique identifier of the invoice for which credit note applications are being retrieved. |
Query Parameters
Parameter | Type | Description |
---|---|---|
limit | Integer | Maximum number of records to return per page. |
offset | Integer | Number of records to skip before starting to return results. |
Request Body
No request body is required for this endpoint.
Response
The API endpoint response contains the invoice object, which includes an array of applied credit notes and pagination information. Each credit note application record provides details such as applied amount, credit note ID, linked payment ID, refund reference (if any), remaining balance, and audit fields like created_by, created_on, and version.
{
"invoice": {
"credit_note_applications": [
{
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
},
{
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
},
{
"date": "TIMESTAMP",
"amount": "NUMBER",
"credit_note_id": "CREDIT_NOTE_ID",
"payment_id": "PAYMENT_ID",
"refund_id": "EMPTY",
"remaining_balance": "NUMBER",
"created_by": "CREATED_BY",
"created_on": "TIMESTAMP",
"uuid": "UUID",
"version": "VERSION"
}
],
"pagination": {
"records": "NUMBER",
"limit": "NUMBER",
"offset": "NUMBER",
"previous_page": "EMPTY",
"next_page": "NULL"
}
}
}
Attribute | Type | Description |
---|---|---|
date | String | Date when the credit note was applied. |
amount | String | Amount of the credit note applied. |
credit_note_id | String | Identifier of the credit note used. |
payment_id | String | Identifier of the payment linked with the credit note application. |
refund_id | String | Identifier of the refund if applicable. |
remaining_balance | String | Remaining balance of the invoice after applying the credit note. |
created_by | String | Name of the user who created the credit note application. |
created_on | String | Timestamp when the credit note application was created. |
uuid | String | Unique identifier of the credit note application record. |
version | String | Version of the credit note application record. |
records | Integer | Total number of credit note applications. |
limit | Integer | Maximum number of records returned per page. |
offset | Integer | Number of records skipped before starting to return results. |
previous_page | String | Link to the previous page of results, if available. |
next_page | String | Link to the next page of results, if available. |