---
title: "Get Salesforce order lines by ad account id."
method: GET
path: "/ad_accounts/{ad_account_id}/ssio/order_lines"
tags: ["billing"]
---

# Get Salesforce order lines by ad account id.

`GET /ad_accounts/{ad_account_id}/ssio/order_lines`

## Request

- Base URL: `https://api.pinterest.com/v5`
- URL: `https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/ssio/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/ssio/order_lines/get.ts> (a function with typed inputs; its response is checked against the schema)

Get Salesforce order lines for account id `ad_account_id`.
  - The token's `user_account` must either be the owner of the specified ad account, or have one of the necessary roles granted via [Business Access](https://help.pinterest.com/en/business/article/share-and-manage-access-to-your-ad-accounts): Admin, Finance, Campaign.

## Path parameters

- `ad_account_id` string, required

## Query parameters

- `pin_order_id` string
- `bookmark` string
- `page_size` integer

## Response `200`

The request has succeeded.

- object
  - `bookmark` string, nullable
  - `items` SSIOOrderLine[], required
    - `accepted_terms_id` string, nullable: The SFDC id for the terms
    - `accepted_terms_time` string, nullable: The UTC timestamp (to the nearest second) when terms were accepted.
    - `ads_manager_order_line_id` string, nullable: Ads manager order line id
    - `agency_link` string, nullable: Agency link
    - `bill_to_company_name` string, nullable: Bill-to company name
    - `billing_contact_email` string, nullable: Billing contact email
    - `billing_contact_firstname` string, nullable: Billing contact first name
    - `billing_contact_lastname` string, nullable: Billing contact last name
    - `budget_amount` number, nullable: If budget order line, the budget amount.
    - `currency_info` 'UNK' | 'USD' | 'GBP' | 'CAD' | 'EUR' | 'AUD' | 'NZD' | 'SEK' | 'ILS' | 'CHF' | 'HKD' | 'JPY' | 'SGD' | 'KRW' | 'NOK' | 'DKK' | 'PLN' | 'RON' | 'HUF' | 'CZK' | 'BRL' | 'MXN' | 'ARS' | 'CLP' | 'COP' | 'INR' | 'TRY': Currency Codes from ISO 4217
    - `end_date` string, date, nullable: End date of the order line.
    - `estimated_monthly_spend` number, nullable: If ongoing (perpetual) order line, the estimated monthly spend.
    - `last_modified_date_time` string, nullable: Last modified date.
    - `media_contact_email` string, nullable: Billing media email
    - `media_contact_firstname` string, nullable: Billing media contact first name
    - `media_contact_lastname` string, nullable: Billing media contact last name
    - `order_name` string, nullable: The order name
    - `pin_order_id` string, nullable: The pin order id associated with the order line in SFDC
    - `pmp_name` string, nullable: The Pinterest marketing partner name
    - `po_number` string, nullable: The PO number
    - `salesforce_order_line_id` string, nullable: Order line id in SFDC
    - `start_date` string, date, nullable: Start date of the order line.

## 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`: 1 breaking, 7 info
  - 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 `401`
  - added the non-success response with the status `403`
  - …4 more
- **2024-08-14** (v5) `89c27ed39cfd`: 2 warning
  - added the new `INR` enum value to the `allOf[subschema #2]/items/items/currency_info` response property for the response status `200`
  - added the new `TRY` enum value to the `allOf[subschema #2]/items/items/currency_info` response property for the response status `200`
- **2024-04-23** (v5) `f9321315766f`: 1 breaking
  - the `allOf[subschema #2]/` response's property type changed from no type to `object` for status `200`
- **2024-02-08** (v5) `7529b464d5cb`: 2 info
  - api tag `billing` added
  - api tag `ad_accounts` removed
- **2023-08-17** (v5) `0ff12596bafd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pinterest/apis/pinterest-rest-api/changes/ad_accounts/:ad_account_id/ssio/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)
