Loading...

Knowledge Base

Execute Orders Without Payment via API

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.

Executing an Order Without Payment

 

Description

Executes the pending actions against the specified Invoice Ids. You can also specify whether the Invoices need to be cancelled or kept pending.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredAn alphanumeric code that can be used to authenticate your API calls
invoice-idsArray Of IntegerRequiredInvoice Ids whose associated pending actions are to be executed
cancel-invoiceBooleanRequired

Indicates whether the Invoice needs to be cancelled or kept pending. Values can either be:

  • true - will cancel the Invoice and execute the action (to be used in cases where payment has been received through offline methods), or

  • false - will keep the Invoice pending and execute the action (for settlement upon receipt of payment at a later stage).

HTTP Method

POST

Example Test URL Request

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

Response

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.