Loading...

Knowledge Base

Add a Miscellaneous Invoice in a Customer Account Using the API

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

Adding a Miscellaneous Invoice in a Customer Account

Description

Adds a miscellaneous Invoice against the specified Customer's Account.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredOrder Id of Order against which Invoice is to be added
customer-idIntegerRequiredCustomer Id of Customer against whom Invoice is to be added
selling-amountFloatRequiredAmount of Invoice in the Selling Currency of the Parent Reseller
descriptionStringRequiredDescription of the Invoice
invoice-dateIntegerRequiredDate in epoch time format on which Invoice is to be added
invoice-due-dateIntegerOptionalDate in epoch time format on which Invoice due date is to be set
invoice-deletion-dateIntegerOptionalDate in epoch time format on which Invoice deletion date is to be set
transaction-keyStringRequiredUnique Transaction key
accounting-amountFloatOptionalAmount of Invoice 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 Invoice
greedyBooleanOptionalPossible values are true or false. Pass true if you want the Invoice to be Greedy.
applyIndianGstBooleanOptionalPossible values are true or false. Pass true if you want the Invoice to include IndianGST

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/billing/add-customer-misc-invoice.json?auth-userid=0&api-key=key&order-id=0&customer-id=0&selling-amount=0.0&description=description-text&invoice-date=0000000000&transaction-key=transaction-key-text

Response

Returns a Transaction Id (Integer) if the Invoice is added successfully against the specified Customer's Account.

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

 
 

Loading...