Skip to content

Get line item by ID

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

Returns the line item by its unique identifier

id
required
string

The unique identifier of the line item

A successful response.

Media typeapplication/json
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
Example
{
"id": "63e2d42a27ad5f2b345ca123",
"campaign_id": "63e2d42a27ad5f2b345ca123",
"name": "Line Item Name",
"start_date": "2023-01-01T00:00:00Z",
"end_date": "2023-01-31T23:59:59Z",
"status": "STATUS_UNSPECIFIED",
"creative_ids": [
"63e2d42a27ad5f2b345ca123",
"63e2d42a27ad5f2b345ca124"
],
"targeting_id": "63e2d42a27ad5f2b345ca123",
"dynamic_content_optimization_id": "63e2d42a27ad5f2b345ca123",
"pricing_policy_id": "63e2d42a27ad5f2b345ca123",
"banker_id": "63e2d42a27ad5f2b345ca123",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z",
"tags": [
"tag1",
"tag2"
],
"tracking_id": "63e2d42a27ad5f2b345ca123",
"budget": {
"amount": 1000,
"currency": "CURRENCY_UNSPECIFIED",
"amount_in_usd": 1086.96
}
}

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"
}
]
}