Description
Create a credit note or giveĀ a discountĀ for a given invoice.
Parameters
| Name | Data Type | Required / Optional | Description | 
|---|---|---|---|
| auth-userid | Integer | Required | Authentication Parameter | 
| api-key | String | Required | Authentication Parameter | 
| invoice-id | Integer | Required | Invoice id to be discounted | 
| amount | Float | Required | The amount for which the credit note is issued | 
| transaction-key | String | Required | A unique Transaction key | 
| role | String | Required | reseller/customer | 
HTTP Method
POST
Example Test URL Request
https://test.httpapi.com/api/billing/credit-note.json?auth-userid=0&api-key=0&invoice-id=0&amount=0.0&transaction-key=transaction-key-text&role=customer 
Response
Returns 'true' when successful.
In case of any errors, a status key with value as ERROR along with an error message will be returned.
