Invoice Inquiries

Using the inquireInvoice command, you can fetch a link to an invoice that has been generated previously.

This can be useful if:

  • You prefer to invoke invoice generation asynchronously by setting invoiceCreationMethod to post, and make another API call later to retrieve the result.

  • You need to retrieve a copy of an invoice for reporting purposes or based on a customer request.

The inquireInvoice command doesn't regenerate the invoice; it only returns a link to the invoice — the exact same link that the addCgInvoice command returns when you generate an invoice with the invoiceCreationMethod parameter set to wait.

To perform an invoice inquiry, send a standard Hyp API request. In the int_in parameter, include an XML payload for the inquireInvoice command. The XML payload should look like this:

<ashrait>
    <request>
        <version>2000</version>
        <language>ENG</language>
        <command>inquireInvoice</command>
        <inquireInvoice>
            <invoice>
                <invoiceAtranId>119328971</invoiceAtranId>
            </invoice>
        </inquireInvoice>
    </request>
</ashrait>

The structure of the response is the same as for the addCgInvoice command:

Last updated

Was this helpful?