Body
Description
Adds a discount for a given invoice.
HTTP Method
POST
Example Test URL Request
https://test.httpapi.com/api/billing/customer-processdiscount.json?auth-userid=0&api-key=key&invoice-id=0&discount-without-tax=10.0&transaction-key=transaction-key-text&role=reseller
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 |
discount-without-tax | Float | Required | Discount amount without tax |
transaction-key | String | Required | A unique Transaction key |
role | String | Required | reseller/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. For example:
"status":"ERROR","message":"Duplicate Transaction.This transaction already present in the system.