# Get all subscription orders

> Retrieves a list of all subscription orders.

Source: https://help.boltapp.com/api-reference/subscriptions/subscriptions/listsubscriptionorders

`GET /v1/subscriptions/orders`

## OpenAPI definition

This endpoint as it appears in the OpenAPI document, with every schema it references included.

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Subscriptions API",
    "version": "v1",
    "description": "API for managing subscriptions and products."
  },
  "servers": [
    {
      "url": "https://api.boltapp.com",
      "description": "The Production URL (Live Data)."
    },
    {
      "url": "https://api-sandbox.boltapp.com",
      "description": "The Sandbox URL (Test Data)."
    },
    {
      "url": "https://api-staging.boltapp.com",
      "description": "The Staging URL (Staged Data)."
    }
  ],
  "security": [
    {
      "X-API-Key": []
    },
    {
      "X-Publishable-Key": []
    }
  ],
  "paths": {
    "/v1/subscriptions/orders": {
      "get": {
        "operationId": "listSubscriptionOrders",
        "summary": "Get all subscription orders",
        "description": "Retrieves a list of all subscription orders.",
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "subscription_ids",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated list of subscription IDs to filter orders.",
            "required": false
          }
        ],
        "security": [
          {
            "X-API-Key": []
          },
          {
            "X-Publishable-Key": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of subscription orders.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SubscriptionOrder"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key."
          },
          "404": {
            "description": "Orders not found."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SubscriptionOrder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "unique identifier for the subscription order.",
            "examples": [
              "so_Vni2CsDCpT0r"
            ]
          },
          "subscription_id": {
            "type": "string",
            "description": "ID of the subscription associated with the order.",
            "examples": [
              "s_711BJEHgNnGB"
            ]
          },
          "placement_time": {
            "type": "string",
            "format": "date-time"
          },
          "sequence_number": {
            "type": "integer",
            "description": "Sequential number of the order in the subscription"
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionOrderStatus",
            "description": "Status of the subscription order"
          },
          "total_amount": {
            "$ref": "#/components/schemas/AmountView"
          },
          "transaction_reference": {
            "type": "string",
            "description": "Reference ID for the transaction"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SubscriptionOrderStatus": {
        "type": "string",
        "enum": [
          "done",
          "scheduled",
          "canceled",
          "paused",
          "payment_failed"
        ],
        "examples": [
          "done"
        ]
      },
      "AmountView": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "format": "int64",
            "description": "Amount in cents"
          },
          "currency": {
            "type": "string",
            "description": "ISO4217 compatible currency code"
          },
          "currency_symbol": {
            "type": "string",
            "description": "Currency symbol"
          }
        }
      }
    },
    "securitySchemes": {
      "X-API-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "X-Publishable-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Publishable-Key"
      }
    }
  }
}
```
