API reference › Schemas

ShipmentInvoices

Fields

  • shipmentIdstring (uuid)required
  • recipientstringrequired

    one of: delivery_customer · account

    delivery_customer — IDS invoices this delivery to your buyer (GET /platform invoiceRecipient); account — to your account.

  • statestringrequired

    one of: issued · pending · none

    issued — see invoices; pending — prepared or to be prepared; none — no invoice through IDS for this shipment (reason).

  • reasonstringrequirednullable

    state 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 objectrequired
  • idstring (uuid)required
  • numberstringrequired

    As printed: IDR2026001 (one IDR series numbers invoices and stornos).

  • kindstringrequired

    one 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).

  • issueDatestringrequired

    YYYY-MM-DD (Romania).

  • datestringrequirednullable

    YYYY-MM-DD: the service day, or — dateKind payment — the day the price was received (an invoice prepared at your payment, before the delivery).

  • dateKindstringrequired

    one of: service · payment

  • buyerobjectrequirednullable

    Who the document is issued to, as printed (your delivery customer when IDS invoices your buyers).

  • kindstringrequired

    one of: person · company

  • namestringrequired
  • totalsobjectrequired

    RON, signed (a storno is negative).

  • netobjectrequired

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • amountnumberrequirednullable
  • amountMinorintegerrequirednullable

    The amount beside it in minor units (cents).

  • currencystringrequirednullable
  • vatobjectrequired

    Same shape as invoices[].totals.net above.

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • totalobjectrequired

    Same shape as invoices[].totals.net above.

    Money: amount in whole cents of currency, amountMinor the same amount as an integer of minor units.

  • correctsobjectrequirednullable

    The invoice a storno or a supplementary invoice refers to.

  • idstring (uuid)required
  • numberstringrequired
  • reversedByobjectrequirednullable

    What 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)required
  • numberstringrequired
  • pdfUrlstringrequired

    GET it with the same key: the document as PDF (Romanian and English).