Postman collection
Invoices Read

pixiGetInvoiceShippingInformation

Returns shipping-relevant information for one invoice: payment, ship vendor, totals, shipping address with country data, order details and package weights.

Looks up the invoice with the given InvoiceNr and returns one row of data that a shipping or label tool typically needs.

The row is built as follows:

  • Invoice: number, date, shop, payment code, ship vendor code, total and shipping cost from Invoices.
  • Currency: the currency code (CodeA) of the invoice currency. This join is an inner join, so an invoice without a matching currency record returns no row.
  • Payment and ship vendor: text of the payment method and name of the ship vendor (optional, may be empty).
  • Shipping address: the address referenced by the invoice's shipping address reference (ShipAdrRef), including name parts, street, house number, city, ZIP, mailbox, phone, e-mail and VAT ID.
  • Country: country name, EasyLog country name and ISO2/ISO3 codes of the address country.
  • Order: the related order is determined via the invoice lines: the first invoice line found points to an order line, and the order of that order line is used. From it the call returns address remarks, DHL procedure/product/extras, gift message, ship date, shop note, order number and external order number.
  • Weights: net and gross package weight, rounded to 3 decimals.

If no invoice with this number exists, the result set is empty.

Notes

  • All tables are read with NOLOCK, so uncommitted data may be returned.
  • The order is found with TOP 1 subqueries without ORDER BY. If an invoice contains lines from several orders, only one of them is used and which one is not deterministic.
  • Total_OrderCurr always equals Total and ShipCost_OrderCurr always equals ShipCost; code comments mark these columns for removal, so do not rely on them.
  • PackageNetWeight and PackageGrossWeight are referenced without a table alias; from the code it cannot be seen whether they come from Invoices or OrderHeader.
  • No error rows are returned; an unknown invoice number simply yields no rows.

Tables used

Invoices · Read Currency · Read Payments · Read ShipVendor · Read Addresses · Read Countries · Read OrderHeader · Read OrderLines · Read InvLines · Read
SQL object:
dbo.pipiGetInvoiceShippingInformation
Updated at 2026-10-30