The supported shapes for Line Item Input in the Orders API.
This union preserves the concrete, documented input or response variants represented by
its member types. Follow the links in t/0 to construct or inspect a specific shape.
Manages the complete commercial and payment lifecycle of an order.
Orders bind customer information, immutable commercial terms, line items, totals, payment state, and invoice or receipt documents. Create an order, finalize it when its terms are ready, and then collect or record payment. Payment execution can require a later confirmation step; inspect the returned order and its next action instead of treating the first request as final.
Looking up an order
request = Inttegro.Orders.LookupRequest.new!(order_id: "or_...")
case Inttegro.Orders.lookup(client, request) do
{:ok, %Inttegro.Orders.Order{status: :completed} = order} ->
order
{:ok, order} ->
{:pending, order.status}
{:error, %Inttegro.Errors.APIError{} = error} ->
{:retry_or_reject, error}
endSee the Orders and payments guide for creation, idempotency, confirmation, and hosted checkout.
Summary
Types
@type t() :: Inttegro.Orders.ProductLineItemInput.t() | Inttegro.Orders.FeeLineItemInput.t() | Inttegro.Orders.ShippingLineItemInput.t()
One of the documented line item input variants.