---
title: "Get order lines."
method: GET
path: "/ad_accounts/{ad_account_id}/order_lines"
tags: ["order_lines"]
---

# Get order lines.

`GET /ad_accounts/{ad_account_id}/order_lines`

## Request

- Base URL: `https://api.pinterest.com/v5`
- URL: `https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/order_lines`
- Auth: OAuth 2
  - Authorization code: `https://www.pinterest.com/oauth/`
  - Token URL: `https://api.pinterest.com/v5/oauth/token` scopes: `ads:read`
- TypeScript: <https://skmtc.dev/pinterest/apis/pinterest-rest-api/docs/ad_accounts/:ad_account_id/order_lines/get.ts> (a function with typed inputs; its response is checked against the schema)

List existing order lines associated with an ad account.

## Path parameters

- `ad_account_id` string, required

## Query parameters

- `bookmark` string
- `page_size` integer
- `order` 'ASCENDING' | 'DESCENDING'

## Response `200`

The request has succeeded.

- object
  - `bookmark` string, nullable
  - `items` OrderLine[], required
    - `ad_account_id` string, required: Ad account ID.
    - `budget` number, nullable: Order line budget in micro currency.
    - `campaign_ids` string[], required: Associated List of campaign IDs.
    - `end_time` number, nullable: End time. Unix timestamp.
    - `id` string, required: Order line ID.
    - `name` string, nullable: Order line name.
    - `paid_budget` number, nullable: Order line paid budget in micro currency.
    - `paid_type` 'PAID' | 'BONUS' | 'MAKE_GOOD' | 'TEST' | 'null', nullable: Order Line Paid Type
    - `purchase_order_id` string, nullable: Purchase order ID.
    - `start_time` number: Start time. Unix timestamp.
    - `status` 'ACTIVE' | 'PAUSED' | 'DELETED', required: Order Line Status
    - `type` string, required: Always "orderline".

## Other responses

- `400`: The request could not be understood by the server due to unexpected data.
- `401`: Authentication is required and has either failed or not been provided.
- `403`: The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404`: The requested resource could not be found on this server.
- `429`: The user has sent too many requests in a given amount of time and is being rate limited.
- `default`: An unexpected error response.

## Changes

- **2026-06-04** (v5) `b698c180678a`: 2 breaking, 8 info
  - for the `query` request parameter `order`, default value `ASCENDING` was added
  - the response's body type changed from no type to `object` for status `200`
  - removed `#/components/schemas/Paginated, subschema #2` from the response body `allOf` list for the response status `200`
  - added the non-success response with the status `400`
  - …6 more
- **2024-04-23** (v5) `f9321315766f`: 1 breaking
  - the `allOf[subschema #2]/` response's property type changed from no type to `object` for status `200`
- **2023-07-14** (v5) `52586a274771`: 3 breaking, 1 warning
  - the response property `allOf[subschema #2]/items/items/allOf[subschema #1: OrderLines]/paid_type` became nullable for the status `200`
  - the response property `allOf[subschema #2]/items/items/allOf[subschema #1: OrderLines]/paid_type/allOf[subschema #1: OrderLinePaidType]/` became nullable for the status `200`
  - the response property `allOf[subschema #2]/items/items/allOf[subschema #1: OrderLines]/purchase_order_id` became nullable for the status `200`
  - added the new `undefined` enum value to the `allOf[subschema #2]/items/items/allOf[subschema #1: OrderLines]/paid_type/allOf[subschema #1: OrderLinePaidType]/` response property for the response status `200`
- **2023-02-14** (v5) `be19b77aa78a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pinterest/apis/pinterest-rest-api/changes/ad_accounts/:ad_account_id/order_lines/get.md)

---

[API](https://skmtc.dev/pinterest/apis/pinterest-rest-api.md) - [All operations](https://skmtc.dev/pinterest/apis/pinterest-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pinterest/apis/pinterest-rest-api/revisions/b698c180678a?raw)
