Parameters for Lookup Request in the Orders API.
Build this struct with new!/1 and pass it to the corresponding function on
Inttegro.Orders. Required keys are enforced immediately; optional values left as
nil are omitted from the request sent to Inttegro.
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
Functions
Builds a Inttegro.Orders.LookupRequest and raises KeyError when a required field is missing.
Types
@type t() :: %Inttegro.Orders.LookupRequest{order_id: String.t()}
A validated lookup request request.
Functions
Builds a Inttegro.Orders.LookupRequest and raises KeyError when a required field is missing.