Executing an Order Without Payment
Loading...
When you want to execute pending order actions without immediate online payment using the API. This article explains the required invoice parameters, invoice cancellation option, API request format, and response details.
Executes the pending actions against the specified Invoice Ids. You can also specify whether the Invoices need to be cancelled or kept pending.
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Your Live Account Reseller Id |
| api-key | String | Required | An alphanumeric code that can be used to authenticate your API calls |
| invoice-ids | Array Of Integer | Required | Invoice Ids whose associated pending actions are to be executed |
| cancel-invoice | Boolean | Required |
Indicates whether the Invoice needs to be cancelled or kept pending. Values can either be:
|
POST
https://test.httpapi.com/api/billing/execute-order-without-payment.xml?auth-userid=0&api-key=key&invoice-ids=0&invoice-ids=1&cancel-invoice=true
Returns a hash map of executed actions containing the below details:
Invoice Id (invoiceid)
Order Id associated with the Invoice (51821176)
Customer Id associated with the Invoice (customerid)
Action Id of the Action associated with the Invoice (eaqid)
Action Type of the Action associated with the Invoice (actiontype)
Description of the Action associated with the Invoice (actiontypedesc)
Domain Name (description)
Status of the Action associated with the Invoice (actionstatus)
Description of the Action Status (actionstatusdesc)
Selling Currency Symbol of the Parent Reseller (sellingcurrencysymbol)
Transaction Amount in the Selling Currency (sellingamount)
Unutilised Transaction Amount in the Selling Currency (unutilisedsellingamount)
In case of any errors, a status key with value as ERROR alongwith an error message will be returned.