Examples for the batch endpoint
Below you will find request and response examples for each Http response status as well as suggested actions.
202
Request
Example Request
Example Response
400
Request
Example Request
Example Response
Given the error’s detail, fix your request and then re submit.
400
Request
Example Request
Example Response
Given the error’s detail, fix your request and then re submit.
401
RequestAssuming the user post this payload along with an invalid bearer token
Example Request
Example Response
Request a new token from the authentication endpoint and then retry.
403
RequestAssuming the current authenticated user doesn’t have the permission to manage merchant (aka partner) 123
Example Request
Example Response
Check the credentials you used to authenticate, check the merchantId you used, fix and the retry.
404
Doesn’t apply to this particular route.
413
Request
Example Request
No body.
Action
Reduce size of text field if any is over the field capacity or reduce the size of the batch, and then retry.
429
Request
Example Request
Example Response
Wait for the time provided before retrying using an exponential backoff algorithm.
Consider checking the number of products you’re trying to send. The default limit is set to 3000 products / s per merchant.
500
Request
Example Request
Example Response
Retry using a exponential backoff algorithm.
503
Request
Example Request
Example Response
Retry using a exponential backoff algorithm.
Examples for the report endpoint
200
Request
Example Request
Example Response
The batch has been accepted, its treatment hasn’t started yet.
200
Request
Example Request
Example Response
The batch has been fully validated without any error.
200
Request
- Assuming a batch of one product has been submitted succesfully
- Assuming a transformation happens on the imageUrl such as text is prepended to the originalImage Url leading to some possible overflow.
Example Request
Example Response
Because Criteo apply some transformation to adapt the incoming format to Criteo product definition, it may happen that Criteo fails to transform a product.
Such issues can be fixed by either changing the product definition or the transformation procedure.
400
Request
Example Request
Example Response
Fix then retry.
403
Request
Example Request
Example Response
Check the credentials you used to access this operation is authorized to access this partner’s operation.
404
Request
Example Request
Example Response
This operation hasn’t been found. This could happen in case of a severe unavailability.
Criteo recommends to resubmit the entire batch.
413
RequestAny corrupted token such as the payload is really too heavy.
Response
No body.
Action
Fix.
429
RequestAssuming you’re sending too many requests and hit your limit.
Criteo throttles your requests.
Example Request
Example Response
Wait for the time provided before retrying using an exponential backoff algorithm.
As the average time to get a report of 1000 products should be less than 3 seconds, Criteo recommends to start polling after 3 seconds and then retry using the exponential backoff algorithm.
500
Request
Example Request
Example Response
Retry using a exponential backoff algorithm.
503
Request
Example Request
Example Response
Retry using a exponential backoff algorithm.