@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Class OrdersResource

    Index
    • Get a single order by order number

      Parameters

      • orderNumber: string

      Returns Promise<Order>

    • Get an order by its public token (no auth required)

      Parameters

      • token: string

      Returns Promise<Order>

    • Download the order confirmation (Orderbekräftelse) as a PDF blob. This is an order confirmation / underlag, not an invoice — the legal invoice is issued by the tenant's ERP. Requires an authenticated customer who owns the order.

      Parameters

      • orderNumber: string

      Returns Promise<Blob>

    • Download an ERP-issued invoice as a PDF blob.

      This IS the legal invoice, unlike getConfirmationPdf. Available once the invoice is final and its hasDocument flag is true; requires an authenticated customer who owns the order.

      Parameters

      • orderNumber: string
      • documentNumber: string

      Returns Promise<Blob>

    • Get a single return by order number

      Parameters

      • orderNumber: string

      Returns Promise<ReturnOrder>

    • Get a return order by its public token (no auth required)

      Parameters

      • token: string

      Returns Promise<ReturnOrder>