orders

List all orders

Changed on

This endpoint is used to list all existing orders. This is a premium feature.

get/orders

Request

Query parameters

pageinteger
Example:1

Page number. Defaults to 1. A value that is not a positive integer, such as 0, returns the first page.

per_pageinteger
Example:20

Number of records per page. Defaults to 100. The maximum is 200, unless another maximum is configured for your organization. A value above the maximum returns a 422 error with value_is_out_of_range on per_page. A value that is not a positive integer, such as 0, returns the default number of records.

status[]string[]

Filter orders by status. Possible values are created, executed and failed.

order_type[]string[]

Filter orders by the order type of the quote they come from. Possible values are subscription_creation, subscription_amendment and one_off.

execution_mode[]string[]

Filter orders by execution mode. Possible values are execute_in_lago and order_only.

customer_id[]string[]

Filter orders by the Lago identifiers of their customers.

[
  "1a901a90-1a90-1a90-1a90-1a901a901a90"
]
number[]string[]

Filter orders by their number, as assigned by Lago.

[
  "OR-2026-0001",
  "OR-2026-0002"
]
order_form_number[]string[]

Filter orders by the number of the order form they come from.

[
  "OF-2026-0001"
]
quote_number[]string[]

Filter orders by the number of the quote they come from.

[
  "QT-2026-0001"
]
owner_id[]string[]

Filter orders by the Lago identifiers of the users owning the quote they come from.

[
  "1a901a90-1a90-1a90-1a90-1a901a901a90"
]
search_termstring
Example:OR-2026

Search orders by number.

executed_at_fromstring date-time
Example:2026-01-01T00:00:00Z

Filter orders executed from a specific date and time, in UTC (ISO 8601). Orders that have not been executed are excluded.

executed_at_tostring date-time
Example:2026-12-31T23:59:59Z

Filter orders executed up to a specific date and time, in UTC (ISO 8601). Orders that have not been executed are excluded.

Response

Orders

Example response

{
  "orders": [
    {
      "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "number": "OR-2026-0001",
      "status": "created",
      "order_type": "subscription_creation",
      "execution_mode": "execute_in_lago",
      "currency": "USD",
      "executed_at": "2026-07-01T00:00:00Z",
      "execution_record": {
        "executed_at": "2026-07-01T00:00:00Z",
        "execution_mode": "execute_in_lago",
        "invoice_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
        "subscription_ids": [
          "1a901a90-1a90-1a90-1a90-1a901a901a90"
        ],
        "terminated_subscription_ids": [
          "1a901a90-1a90-1a90-1a90-1a901a901a90"
        ],
        "applied_coupon_ids": [
          "1a901a90-1a90-1a90-1a90-1a901a901a90"
        ],
        "wallet_ids": [
          "1a901a90-1a90-1a90-1a90-1a901a901a90"
        ],
        "errors": [
          "plan_not_found"
        ]
      },
      "lago_organization_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "lago_order_form_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "created_at": "2026-04-29T08:59:51Z",
      "updated_at": "2026-04-29T08:59:51Z",
      "billing_snapshot": {
        "addOns": [
          {
            "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
            "localId": "b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b",
            "type": "add_on",
            "payload": {
              "code": "setup_fee",
              "units": 1,
              "unitAmountCents": 10000,
              "totalAmountCents": 10000,
              "fromDatetime": "2026-01-01T00:00:00Z",
              "toDatetime": "2026-12-31T23:59:59Z"
            },
            "overrides": {
              "description": "Onboarding package, discounted for the first year",
              "units": 2,
              "unitAmountCents": 8000,
              "totalAmountCents": 16000,
              "invoiceDisplayName": "Onboarding",
              "fromDatetime": "2026-01-01T00:00:00Z",
              "toDatetime": "2026-12-31T23:59:59Z"
            }
          }
        ],
        "plans": [
          {
            "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
            "localId": "b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b",
            "type": "plan",
            "payload": {
              "code": "premium_plan",
              "subscriptionExternalId": "sub_1234567890",
              "subscriptionName": "Premium plan - Acme Corp",
              "billingTime": "calendar",
              "startDate": "2026-01-01T00:00:00Z",
              "endDate": "2027-01-01T00:00:00Z",
              "paymentMethodId": "1a901a90-1a90-1a90-1a90-1a901a901a90",
              "charges": [
                {
                  "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
                  "billableMetric": {
                    "code": "api_calls"
                  },
                  "chargeModel": "standard"
                }
              ],
              "fixedCharges": [
                {
                  "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
                  "addOn": {
                    "code": "seats"
                  },
                  "chargeModel": "standard"
                }
              ]
            },
            "overrides": {
              "amountCents": 50000,
              "amountCurrency": "USD",
              "invoiceDisplayName": "Premium",
              "name": "Premium plan - Acme Corp",
              "description": "Negotiated premium plan",
              "trialPeriod": 30,
              "minimumCommitment": {
                "amountCents": 100000,
                "invoiceDisplayName": "Annual commitment"
              },
              "usageThresholds": [
                {
                  "amountCents": 100000,
                  "thresholdDisplayName": "First 1,000 EUR of usage"
                }
              ],
              "charges": [
                {
                  "billableMetricCode": "api_calls",
                  "chargeModel": "standard",
                  "properties": {
                    "amount": "0.02"
                  },
                  "minAmountCents": 10000,
                  "invoiceDisplayName": "API calls"
                }
              ],
              "fixedCharges": [
                {
                  "addOnCode": "seats",
                  "units": "10",
                  "properties": {
                    "amount": "5"
                  },
                  "invoiceDisplayName": "Seats"
                }
              ]
            }
          }
        ],
        "coupons": [
          {
            "id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
            "localId": "b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b",
            "type": "coupon",
            "payload": {
              "code": "welcome_offer",
              "type": "fixed_amount",
              "amountCents": 10000,
              "currency": "USD",
              "percentageRate": 10.5,
              "frequency": "once",
              "frequencyDuration": 3
            },
            "overrides": {
              "amountCents": 15000,
              "amountCurrency": "USD",
              "percentageRate": 15,
              "frequency": "recurring",
              "frequencyDuration": 6
            }
          }
        ],
        "walletCredits": [
          {
            "localId": "b5c1e2a4-4e1e-4a7f-9f0e-9c1a0c7e1f2b",
            "type": "wallet_credit",
            "payload": {
              "paidCredits": "100.0",
              "grantedCredits": "20.0",
              "rateAmount": "1.0",
              "currency": "USD",
              "expirationAt": "2027-01-01T00:00:00Z",
              "appliesTo": {
                "feeTypes": [
                  "charge"
                ],
                "billableMetricCodes": [
                  "api_calls"
                ]
              },
              "recurringTransactionRules": [
                {
                  "trigger": "interval",
                  "interval": "monthly",
                  "thresholdCredits": "10.0",
                  "method": "fixed",
                  "targetOngoingBalance": "100.0",
                  "paidCredits": "100.0",
                  "grantedCredits": "20.0",
                  "startedAt": "2026-01-01T00:00:00Z",
                  "expirationAt": "2027-01-01T00:00:00Z",
                  "transactionName": "Monthly top-up"
                }
              ]
            }
          }
        ]
      }
    }
  ],
  "meta": {
    "current_page": 2,
    "next_page": 3,
    "prev_page": 1,
    "total_pages": 4,
    "total_count": 70
  }
}

Changes