Product Docs Help

createInvoiceFromOrderHash

Create a new invoice from an existing order hash.

The order hash is a unique identifier for an order. It is generated by the initCheckout and is used to identify the order in the system. The order hash is used to create an invoice.

An example can be found here create invoice from order hash example

Request

Data

Property

Required

Type

Description

hash

true

string

The order hash.

method

false

string

The method to use.

Function

Property

Required

Type

Description

function

true

string

The function name to be used, for this page it’s createInvoiceFromOrderhash

{ "credentials": { "hash": "adf499d1605f213363f52d9ad0ecf7c4809d0f2cb0384f2e959e6cbb0dc84e5a4443a259d76bf6893e37e8212b5f3c9852377be1cd0d7fb472adc0b2f2618796", "id": "12345", "version": "2.5.0", "client": "Pluginname:Qvickly:1.0", "language": "sv", "test": false }, "data": { "hash" : "20240510123456789abcdef123456789abcdef123456789abcdef123456789abcdef", "method" : "2048", "time" : 1714743718003 } , "function": "createInvoiceFromOrderHash" }

Response

Property

Type

Description

status

string

The status of the invoice.

number

string

The invoice number.

url

string

The url to the invoice.

orderid

string

The order id.

{ "credentials" : { "hash" : "336b3197b8b6c22e5cbc6a280a8a4de6940bf9223d97cfff5394be65c8364abad2572906e6191e4a6bdc9d716e87821f9225fb5556417b788674cb13c9ff2699", "logid" : 1234567 }, "data" : { "status" : "Created", "number" : "12345", "url" : "https://my.qvickly.io/pwq/12345/20240510123456789abcdef123456789abcdef123456789abcdef", "orderid" : "123456-789" } }
Last modified: 13 September 2024