Loading...

Knowledge Base

Add a Debit Note in a Customer Account Using the API

When you want to add a debit note in a customer account using the API. This article explains the required parameters, transaction details, reminder settings, accounting options, and API request details for debit note creation.

Adding a Debit Note in a Customer Account

Description

Adds a Debit Note against Customer's Account.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
customer-idIntegerRequiredCustomer Id of Customer against whom Debit Note is to be added
selling-amountFloatRequiredAmount of Debit Note in the Selling Currency of the Parent Reseller
descriptionStringRequiredDescription for the Debit Note
debit-note-dateIntegerRequiredDate in epoch time format on which Debit Note is to be added
transaction-keyStringRequiredUnique Transaction key
update-total-receiptBooleanRequiredPossible values are true or false. Pass true if you want to update total receipt of Customer.
accounting-amountFloatOptionalAmount of Debit Note in the Accounting Currency of the Parent Reseller. Required if Selling and Accounting Currencies of the Parent Reseller are different.
conversion-rateFloatOptionalConversion rate between selling and accounting amounts. Required if Selling and Accounting Currencies of the Parent Reseller are different.
payment-reminder-daysIntegerOptionalNo of days in which Customer needs to be reminded about Debit Note
greedyBooleanOptionalPossible values are true or false. Pass true if you want the Debit Note to be Greedy.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/billing/add-customer-debit-note.json?auth-userid=0&api-key=key&customer-id=0&selling-amount=0.0&description=description-text&debit-note-date=0000000000&transaction-key=transaction-key-text&update-total-receipt=true

Response

Returns a Transaction Id  if the Debit Note is added successfully in the specified Customer's Account.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.