Skip to content

List line items

GET
/line-items
curl --request GET \
--url https://portal.staging.arago-tech.com/line-items \
--header 'Authorization: <Authorization>'

Returns a list of line items

campaign_ids
Array<string>
<= 10 items unique items

Campaign IDs

List of campaign unique identifiers to filter line items by

query
string

Query

Search query to filter line items by name or other searchable fields

statuses
Array<string>
Allowed values: STATUS_UNSPECIFIED STATUS_PAUSED STATUS_PLAYING

Statuses

List of statuses to filter line items by

start_date_range.from
string format: date-time

From Date

Filter items with date on or after this timestamp

start_date_range.to
string format: date-time

To Date

Filter items with date strictly before this timestamp. Must be after ‘from’ when both are provided.

end_date_range.from
string format: date-time

From Date

Filter items with date on or after this timestamp

end_date_range.to
string format: date-time

To Date

Filter items with date strictly before this timestamp. Must be after ‘from’ when both are provided.

sort.field
string

Field

The field to sort by. This should be a valid field name in the context of the request.

sort.desc
boolean

Desc

The sort order. If true, the results will be sorted in descending order. If false, the results will be sorted in ascending order.

pagination.offset
integer format: int64

Offset

The offset of the first item

pagination.limit
integer format: int64

Limit

The maximum number of items to return (must be >= 10 and <= 1000)

tags
Array<string>
<= 10 items unique items

Tags

List of tags to filter line items by

created_at_date_range.from
string format: date-time

From Date

Filter items with date on or after this timestamp

created_at_date_range.to
string format: date-time

To Date

Filter items with date strictly before this timestamp. Must be after ‘from’ when both are provided.

A successful response.

Media typeapplication/json
ListLineItemsResponse

Response containing a list of line items

object
line_items
Line Items

List of line items

Array<object>
LineItem

Line item information

object
id
Line Item ID

The unique identifier of the line item in hexadecimal format

string
campaign_id
Campaign ID

The campaign unique identifier

string
name
Name

The name of the line item

string
start_date
Start Date

The UTC start date of the line item

string format: date-time
end_date
End Date

The UTC end date of the line item

string format: date-time
status
Status

The status of the line item

string
default: STATUS_UNSPECIFIED
Allowed values: STATUS_UNSPECIFIED STATUS_PAUSED STATUS_PLAYING
creative_ids
Creative IDs

The unique identifiers of the creatives of the line item

Array<string>
targeting_id
Targeting ID

The unique identifier of the targeting of the line item

string
dynamic_content_optimization_id
Dynamic Content Optimization ID

The unique identifier of the dynamic content optimization of the line item

string
pricing_policy_id
Pricing Policy ID

The unique identifier of the pricing policy of the line item

string
banker_id
Banker ID

The unique identifier of the banker of the line item

string
created_at
Created At

The UTC creation date of the line item

string format: date-time
updated_at
Updated At

The UTC last updated date of the line item

string format: date-time
tags
Tags

The tags associated with the line item

Array<string>
tracking_id
Tracking ID

The unique identifier of the tracking of the line item

string
budget
Budget

The spending cap of the line item

object
amount
Amount

Total budget in the given currency, as entered

number format: double
currency
Currency

Currency ID based on ISO 4217 numeric codes

string
default: CURRENCY_UNSPECIFIED
Allowed values: CURRENCY_UNSPECIFIED ALL DZD ARS AUD BSD BHD BDT AMD BBD BMD BTN BOB BWP BZD SBD BND MMK BIF KHR CAD CVE KYD LKR CLP CNY COP KMF CRC HRK CUP CZK DKK DOP SVC ETB ERN FKP FJD DJF GMD GIP GTQ GNF GYD HTG HNL HKD HUF ISK INR IDR IRR IQD ILS JMD JPY KZT JOD KES KPW KRW KWD KGS LAK LBP LSL LVL LRD LYD LTL MOP MWK MYR MVR MRO MUR MXN MNT MDL MAD OMR NAD NPR ANG AWG VUV NZD NIO NGN NOK PKR PAB PGK PYG PEN PHP QAR RUB RWF SHP STD SAR SCR SLL SGD VND SOS ZAR SSP SZL SEK CHF SYP THB TOP TTD AED TND UGX MKD EGP GBP TZS USD UYU UZS WST YER ZMK TWD SLE VES CUC ZWL BYN TMT GHS VEF SDG UYI RSD MZN AZN RON CHE CHW TRY XAF XCD XOF XPF XBA XBB XBC XBD XAU XDR XAG XPT XPD XUA ZMW SRD MGA COU AFN TJS AOA BYR BGN CDF BAM EUR MXV UAH GEL BOV PLN BRL CLF XSU USN JEP IMP GGP BTC
amount_in_usd
Amount in USD

The budget converted to USD at the rate in force when its amount or currency last changed, net of the platform fee

number format: double
full_text_search
Full Text Search

Flag indicating if full text search has been performed

boolean
Example
{
"line_items": [
{
"id": "63e2d42a27ad5f2b345ca123",
"name": "Line Item 1"
},
{
"id": "63e2d42a27ad5f2b345ca124",
"name": "Line Item 2"
}
]
}

Bad request

Media typeapplication/json
object
Example
{
"error": {
"code": "BAD_REQUEST",
"details": [
{
"code": "MAX_ITEMS",
"field": "line_items",
"message": "value must contain no more than 3000 item(s)",
"params": {
"max": "3000"
}
}
],
"message": "Bad request"
}
}

Unauthorized

Media typeapplication/json
object
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
}
}

Internal server error

Media typeapplication/json
object
Example
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}

An unexpected error response.

Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
any
Examplegenerated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}