/2026-01/retail-media/line-items/{line-item-id}/products/append - Criteo Docs

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST /2026-01/retail-media/line-items/{line-item-id}/products/append

cURL Example

curl --request POST \
  --url https://api.criteo.com/2026-01/retail-media/line-items/{line-item-id}/products/append \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [\
    {\
      "attributes": {\
        "bidOverride": 123,\
        "id": "<string>"\
      },\
      "id": "<string>",\
      "type": "<string>"\
    }\
  ]
}
' 

Python Example

import requests

url = "https://api.criteo.com/2026-01/retail-media/line-items/{line-item-id}/products/append"

payload = { "data": [\
        {\
            "attributes": {\
                "bidOverride": 123,\
                "id": "<string>"\
            },\
            "id": "<string>",\
            "type": "<string>"\
        }\
    ] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

JavaScript Example

const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    data: [\
      {\
        attributes: {bidOverride: 123, id: '<string>'},\
        id: '<string>',\
        type: '<string>'\
      }\
    ]
  })
};

fetch('https://api.criteo.com/2026-01/retail-media/line-items/{line-item-id}/products/append', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

PHP Example

$curl = curl_init();

curl_setopt_array($curl, [\
  CURLOPT_URL => "https://api.criteo.com/2026-01/retail-media/line-items/{line-item-id}/products/append",\
  CURLOPT_RETURNTRANSFER => true,\
  CURLOPT_ENCODING => "",\
  CURLOPT_MAXREDIRS => 10,\
  CURLOPT_TIMEOUT => 30,\
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\
  CURLOPT_CUSTOMREQUEST => "POST",\
  CURLOPT_POSTFIELDS => json_encode([\
    'data' => [\
        [\
                'attributes' => [\
                                'bidOverride' => 123,\
                                'id' => '<string>'\
                ],\
                'id' => '<string>',\
                'type' => '<string>'\
        ]\
    ]\
  ]),\
  CURLOPT_HTTPHEADER => [\
    "Authorization: Bearer <token>",\
    "Content-Type: application/json"\
  ],\
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Response Structure

{
  "errors": [\
    {\
      "code": "<string>",\
      "detail": "<string>",\
      "instance": "<string>",\
      "source": {},\
      "stackTrace": "<string>",\
      "status": 123,\
      "title": "<string>",\
      "traceId": "<string>"\
    }\
  ],\
  "warnings": [\
    {\
      "code": "<string>",\
      "detail": "<string>",\
      "instance": "<string>",\
      "source": {},\
      "stackTrace": "<string>",\
      "status": 123,\
      "title": "<string>",\
      "traceId": "<string>"\
    }\
  ]
}

Authorizations

Authorization: Required \nToken received from the authorization server in the OAuth 2.0 flow.

Path Parameters

Body