Syntax
listInvoices( purchase_id )
Returns a list of order invoices.
Access rights
Full access required.
Arguments
purchase_id – the ID of the purchase. The purchase must belong to the Digistore account, to which the API key also belongs.
Return data
A list of orders.
NoteTest payments always have the invoice number 1 – a real invoice number is not given for test payments.
'data' => array (
'purchase_id'
=> 'TJLBP8ZC',
'invoice_list'
=> array (
0 =>
array (
'invoice_url'
=>
'https://www.digistore24.com/invoice/TJLBP8ZC/10194397/AEHNX1HF.pdf',
'invoice_label'
=> 'Rechnung Nr. 12345 - 14.10.2017 - 33,00 €',
'invoice_id'
=> '12345',
'invoice_date'
=> '2017-10-14',
'pay_method'
=> 'paypal',
'pay_method_msg'
=> 'Paypal',
'purchase_id'
=> 'TJLBP8ZC',
'type'
=> 'payment',
'amount'
=> '33.00',
'currency'
=> 'EUR',
),
1
=> array (
'invoice_url'
=>
'https://www.digistore24.com/invoice/TJLBP8ZC/10789359/AEHNX1HF.pdf',
'invoice_label'
=> 'Rechnung Nr. 1 - 07.10.2017 - 33,00 €',
'invoice_id'
=> '1',
'invoice_date'
=> '2017-10-07',
'pay_method'
=> 'test',
'pay_method_msg'
=> 'Test-Zahlung',
'purchase_id'
=> 'TJLBP8ZC',
'type'
=> 'payment',
'amount'
=> '33.00',
'currency'
=> 'EUR',
)
)
);
[data] – contains all the entered data
[address] – contains the data that was taken on as an address (e.g. for e-tickets). Please select an address type (such as first name, email address or city) instead of e.g. the type text.