Get line item by ID
const url = 'https://portal.staging.arago-tech.com/line-items/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://portal.staging.arago-tech.com/line-items/example \ --header 'Authorization: <Authorization>'Returns the line item by its unique identifier
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The unique identifier of the line item
Responses
Section titled “ Responses ”A successful response.
Line item information
object
The unique identifier of the line item in hexadecimal format
The campaign unique identifier
The name of the line item
The UTC start date of the line item
The UTC end date of the line item
The status of the line item
The unique identifiers of the creatives of the line item
The unique identifier of the targeting of the line item
The unique identifier of the dynamic content optimization of the line item
The unique identifier of the pricing policy of the line item
The unique identifier of the banker of the line item
The UTC creation date of the line item
The UTC last updated date of the line item
The tags associated with the line item
The unique identifier of the tracking of the line item
The spending cap of the line item
object
Total budget in the given currency, as entered
Currency ID based on ISO 4217 numeric codes
The budget converted to USD at the rate in force when its amount or currency last changed, net of the platform fee
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
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
object
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Unauthorized" }}Internal server error
object
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "Internal server error" }}default
Section titled “default”An unexpected error response.
object
object
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}