ShipmentInvoices
Used by
Fields
shipmentIdstring (uuid)requiredrecipientstringrequiredone of: delivery_customer · account
delivery_customer — IDS invoices this delivery to your buyer (GET /platform invoiceRecipient); account — to your account.
statestringrequiredone of: issued · pending · none
issued — see invoices; pending — prepared or to be prepared; none — no invoice through IDS for this shipment (reason).
reasonstringrequirednullablestate none: sandbox (test shipments are never invoiced), not_paid, payment_refunded (cancelled and refunded in full before the invoice), not_delivered, test_client, admin_shipment, platform_collected, payment_transferred, not_issued_here (IDS issues it outside this API).
invoices[]array of objectrequiredidstring (uuid)requirednumberstringrequiredAs printed: IDR2026001 (one IDR series numbers invoices and stornos).
kindstringrequiredone of: invoice · adjustment · storno · partial_storno
invoice — the delivery invoice; adjustment — a supplementary invoice; storno / partial_storno — a reversal (negative amounts) of all or part of an invoice (a cancellation before the carrier took the parcel, a refund).
issueDatestringrequiredYYYY-MM-DD (Romania).
datestringrequirednullableYYYY-MM-DD: the service day, or — dateKind payment — the day the price was received (an invoice prepared at your payment, before the delivery).
dateKindstringrequiredone of: service · payment
buyerobjectrequirednullableWho the document is issued to, as printed (your delivery customer when IDS invoices your buyers).
kindstringrequiredone of: person · company
namestringrequiredtotalsobjectrequiredRON, signed (a storno is negative).
netobjectrequiredMoney: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
amountnumberrequirednullableamountMinorintegerrequirednullableThe amount beside it in minor units (cents).
currencystringrequirednullablevatobjectrequiredSame shape as
invoices[].totals.netabove.Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
totalobjectrequiredSame shape as
invoices[].totals.netabove.Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.
correctsobjectrequirednullableThe invoice a storno or a supplementary invoice refers to.
idstring (uuid)requirednumberstringrequiredreversedByobjectrequirednullableWhat reversed all of this invoice: its full reversal, or the refund reversal that brought it to zero (a platform order cancelled after its invoice); null while any of it stands.
idstring (uuid)requirednumberstringrequiredpdfUrlstringrequiredGET it with the same key: the document as PDF (Romanian and English).