---
title: 'Criteo Resellers Program API Guide V2.0'
description: 'About the API Before getting started, here a few things you need to know about the API Currency All amounts expressed in the Criteo REST API are expressed in…'
language: en
guide: 4bdvb4Ug7t
updated: 2024-04-01T11:10:15Z
canonical: https://help.criteo.com/kb/guide/en/criteo-resellers-program-api-guide-v2-0-4bdvb4Ug7t/Steps/898233
alternates:
  de: https://help.criteo.com/kb/guide/de/criteo-resellers-program-api-guide-v2-0-4bdvb4Ug7t.md
  es: https://help.criteo.com/kb/guide/es/guia-de-la-api-del-programa-de-revendedores-de-criteo-v2-0-4bdvb4Ug7t.md
  fr: https://help.criteo.com/kb/guide/fr/guide-de-lapi-du-programme-revendeurs-criteo-v2-0-4bdvb4Ug7t.md
  it: https://help.criteo.com/kb/guide/it/guida-alle-api-del-programma-rivenditori-criteo-v2-0-4bdvb4Ug7t.md
  ja: https://help.criteo.com/kb/guide/ja/criteo-api-v2-0-4bdvb4Ug7t.md
  ko: https://help.criteo.com/kb/guide/ko/criteo-api-v2-0-4bdvb4Ug7t.md
  pt: https://help.criteo.com/kb/guide/pt/guia-de-api-do-programa-de-revendedores-criteo-v2-0-4bdvb4Ug7t.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/en/criteo-resellers-program-api-guide-v2-0-4bdvb4Ug7t/Steps/898233

# Criteo Resellers Program API Guide V2.0

<a id="step-898233"></a>

## Criteo Resellers Program API Guide V2.0

**About the API**

Before getting started, here a few things you need to know about the API

  
**Currency**

All amounts expressed in the Criteo REST API are expressed in your local currency, including:

-   Performance numbers (e.g. COS, Spend etc.)
    
-   Budgets and bids
    

> **Tip:** You can check your local currency in our Management Center interface. Under “Setup,” select “Users” and select the desired user.

  

**Time Zone**

All dates in the Criteo REST API are shown in Coordinated Universal Time (UTC).

  

**Data Freshness**

Remaining budget and statistics are not real time. That's why Remaining budget can have up to 30 minutes delay and Statistics and can have up to a few hours of delay. Hence a seller can be inactive while their spent amount is still increasing. The sellers’ ads are not displayed anymore, but the spent budget is increasing as data is catching up.

  

**API usage recommendations**

When updating large batches of budgets or bids, you should implement these changes in separated, batched API calls as opposed to many individual calls as this may lead to throttling.

One call should be marked for bids, and another call for budgets. Both calls will contain the correct bids per campaigns and budgets for the given or multiple campaigns.

**EXAMPLE:** You need to set bids and budgets for 10 different sellers. We recommend you send 1 API call for seller-campaign endpoint and 1 call for budgets endpoint, with both containing respective sellers desired bids and budgets.

Next: [Getting Started](#step-908684)

<a id="step-908684"></a>

## Getting Started

**Creating an API user**

To use our REST API, you will need to create a new API User in Management Center. You can access this platform at: [https://marketing.criteo.com/](https://marketing.criteo.com/)

When logged in:

-   Click on Setup > Users
-   Click on _CREATE API USER_
-   You will then need to enter a contact **Email address** and select one of the following roles: _View only_, _Business Manager_, _Financial Manager_. To use our API, please pick the _Business Manager_ role. The _View only_ and _Financial Manager_ roles don’t have enough privileges to input and pull data through our API.
-   When done, click _Add user_. You will receive a confirmation message, your _Client ID_ and _Client Secret_. Store them carefully as you will need them to post requests to our API.

**Authentication**

Criteo uses JWT to provide token based authentication system to our REST API. In order to issue calls to our API, you will need to pass a token on to any of these calls.

To get your token, you will need to issue a POST call to the /oauth2/token endpoint, with client\_id and client\_secret as parameters (see "API Users" section). 

> **Tip:** Each token is valid for 5 minutes. Should your token expire, you will receive a 401 HTTP response status code.

Next: [Managing Sellers](#step-908687)

<a id="step-908687"></a>

## Managing Sellers

The seller represent the legal person selling products on your platform. The Reseller API enables you to manage the advertisement of your Sellers.

Adding Sellers

Sellers are not added with the API. Instead, they are automatically added from the Catalog you provided us. In your catalog, you should provide the "sellerName" field on the products of the Sellers. Products that doesn't have this fields provided will not be advertised.

> **Warning:** _sellerName_ is case-sensitive. If your seller has different case, it will be considered as a different Seller

> **Tip:** You can use your internal ID of the seller as _SellerName_

  

**Removing Sellers**

A Seller can be removed by removing it's products from the Feed. If you want to stop a advertising a Seller immediately, you can suspend the budgets of it's Seller-Campaigns (see "suspend a budget" section)

**Getting Sellers**  

In order to see the list of sellers that were extracted you can make make following call :

GET /v2/crp/sellers HTTP/1.1

HTTP/1.1 200 OK
\[{
   "id" : "1",
   "sellerName": "AHepburn",
},{
   "id" : "2",
   "sellerName": "HBogart"
},{
   "id" : "3",
   "sellerName": "NewTech"
}\]

A seller is defined by the

-   sellerName : this correspond to the sellerId that was specified in the product catalog you provided.
-   sellerId : this SellerId identifies your seller. It is attributed by our Seller ingestion system.

Next: [Managing Campaigns](#step-908683)

<a id="step-908683"></a>

## Managing Campaigns

A CRP-Campaign is a course of action to advertise the products of your sellers.

  

**Adding Campaigns**

Campaigns are not added with the API. Instead, they are created, started and stopped by your Technical Solution engineer.

Next: [Managing Seller-Campaigns](#step-908685)

<a id="step-908685"></a>

## Managing Seller-Campaigns

A Seller-Campaign contains all the information relative to the advertisement of the products of a Seller in a Campaign. In particular it contains information about bid and status :

-   _bid_ : bid specified for this Seller in this Campaign
-   _suspendedSince_ : date and time since we stopped delivering adds for this Seller in this Campaign
-   _suspensionReasons_ : list of reasons why the campaign is suspended (possible values are: NoMoreBudget, ManuallyStopped, NoBudgetDefined, NoCpcDefined, RemovedFromCatalog)

Every Seller-Campaign is identified by :

-   _sellerId_ : _SellerId_ of the seller associated to this Seller-Campaign
-   _campaignId_ : _CampaignId_ of the CRP-campaign associated to this Seller-Campaign

  

**Adding Seller-Campaigns**

Seller-Campaigns get automatically created for every Campaign and every Seller in your feed.

-   new Seller-Campaigns are created inactive by default (suspendedSince flag is set to the moment of creation)

Getting Seller-Campaigns

To see what Seller-Campaigns are available you can make following query :

GET /v2/crp/seller-campaigns HTTP/1.1

HTTP/1.1 200 OK
\[{
    "id": "1.10001",
    "suspendedSince": "2018-07-30T18:00:13.333",
    "suspensionReasons": \["NoMoreBudget"\],
    "sellerId": "1",
    "campaignId": 10001,
    "bid": null
},{
    "id": "2.10001",
    "suspendedSince": "2018-09-03T09:00:23.8",
    "suspensionReasons": \["ManuallyStopped"\],
    "sellerId": "2",
    "campaignId": 10001,
    "bid": null
},{
    "id": "3.10001",
    "suspendedSince": "2018-09-03T09:00:23.8",
    "suspensionReasons": \["NoCpcDefined"\], 
    "sellerId": "3",
    "campaignId": 10001,
    "bid": null
}\]

  

**Starting Seller-Campaigns**

In order to start delivering ads for a Seller in a Campaign, the Seller-Campaign needs to :

-   be part of a running Campaign
-   have a bid (see "Setting the Bid for a given Seller-Campaign" section)
-   have an active budget (see "Managing Budgets" section)

When a Seller-Campaign becomes inactive, the _suspendedSince_ flag is null.

**  
Stopping Seller-Campaigns**  

In order to stop delivering ads for a Seller in a Campaign, you can do one of the following actions :

-   set the bid of the Seller-Campaign to null (see "Setting the Bid for a given Seller-Campaign" section)
-   suspend the current budget (see "Suspend a Budget" section)
-   remove products of this Seller from the feed (if you have several CRP-Campaigns, this will also stop the Seller in the other CRP-Campaigns)

When a Seller-Campaign becomes inactive, the _suspendedSince_ flag is set to the current date.

  

**Setting the Bids of Seller-Campaigns**

In order to have a Sellers active in the campaign, you have to specify the bids that will be used for these Sellers in the given Campaign :

PATCH /v2/crp/seller-campaigns HTTP/1.1
Content-Type: application/json

\[{
    "id": "1.10001",
    "bid": 0.3
},{
    "id": "2.10001",
    "bid": 0.6
},{
    "id": "3.10001",
    "bid": 0.5
}\]

Next: [Managing Budgets](#step-908686)

<a id="step-908686"></a>

## Managing Budgets

Budget are used to specify budget constraints for 1 or more Seller-Campaigns of the same Seller. You have different types of budgets :

-   Uncapped : Define an unlimited amount
-   Capped : Define a limited amount
-   Daily : Define a limited daily amount

A Budget can specify a _StartDate_ and an _EndDate_ :

-   _startDate_: date at which you want your budget to be taken into consideration
-   _endDate_: date until which the budget is taken into consideration

A Budget status can be either :

-   Active : this budget can be consumed in one or more Seller-Campaigns for delivering ads. A budget is active when all the following conditions are met :
    -   the budget has not been suspended (see "Suspending budgets" section)
    -   the current date is between startDate and endDate
    -   the spent amount of the budget is smaller than the specified amount
-   Inactive : when a budget is not _Active_ it is _Inactive_. It cannot be consumed in any Seller-Campaign for delivering ads.

> **Tip:** Notice that there is at most one active daily budget and one active non-daily budget

**  
Creating Budgets for Seller-Campaigns**

In order to create Budgets for Seller-Campaigns you need to make the following call :

POST /v2/crp/budgets HTTP/1.1
Content-Type: application/json
\[{
    "sellerId": "1",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 10.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "2",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 20.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "3",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 30.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
}\]

-   _SellerId_ : the _sellerId_ of the Seller for which you want to create a budget.
-   _campaignIds_ : Array of campaignIds of the campaigns for which you want the budgets.
-   _budgetType_ : type of budget. You have 3 possible values for this :
    -   "Uncapped"
    -   "Capped"
    -   "Daily"
-   _amount_ : amount of money you want to specify for this budget
-   _startDate_ : date at which you want your budget to be taken into consideration
-   _endDate_: date until which the budget is taken into consideration

  

**Creating Capped Budgets**

When creating budgets, you have the choice between 3 different types of budgets. One of these is the capped budget, it enables you to define the maximum amount of money you would like to spend on a given time period.  
  

**Creating Uncapped Budgets**

If you don't want to define a maximum amount of money you would like to spend on a given time period, you can create Uncapped budgets.

POST /v2/crp/budgets HTTP/1.1
Content-Type: application/json
\[{
    "sellerId": "1",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "2",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "3",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
}\]

If you want to control how fast the money is spent, you can combine the Uncapped budget with a Daily budget

**  
Creating Daily Budgets**  

Additionally to the Capped and Uncapped budgets, you can define Daily budgets. This means that, on a given time period you can define how fast you want to spend your budget.

The Daily budget defines the maximum amount of money you would like to spend every day on a given time period. The system will optimize to achieve your daily spending accordingly. **However, because the unpredictability of clicks, you are guaranteed that you will not exceed your daily amount on a 7-day average only. On a specific day, spending can exceed the specified amount by 100%.**

> **Warning:** Once you created a Daily Budget for your seller, you will not be able to migrate him back to API-V1 anymore

Notice that Daily Budgets only works if you have also specified a Total budget. This Total budget is specified either by a Capped or Uncapped budget. If you have not specified a Total budget, your Seller-Campaigns will not deliver adds (even if you specified a Daily-Budget). For example you can create a daily Budget of $5 for the Sellers 1,2, and 3 and back them with an unlimited total budget (Uncapped Budget) :

POST /v2/crp/budgets HTTP/1.1
Content-Type: application/json
\[{
    "sellerId": "1",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "2",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "3",
    "campaignIds": \["10001"\],
    "budgetType": "Uncapped",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "sellerId": "1",
    "campaignIds": \["10001"\],
    "budgetType": "Daily",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "amount": 5
},{
    "sellerId": "2",
    "campaignIds": \["10001"\],
    "budgetType": "Daily",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "amount": 5
},{
    "sellerId": "3",
    "campaignIds": \["10001"\],
    "budgetType": "Daily",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "amount": 5
}\]

  

**Getting Budgets**

You can list of your budgets with following calls :

GET /v2/crp/budgets HTTP/1.1

HTTP/1.1 200 OK
Content-Type: application/json
\[{
    "id" : "101",
    "sellerId": "1",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 30.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "spend" : 0,
    "status" : "Scheduled",
    "suspended" : false
},{
    "id" : "102",
    "sellerId": "2",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 30.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "spend" : 0,
    "status" : "Scheduled",
    "suspended" : false
},{
    "id" : "103",
    "sellerId": "3",
    "campaignIds": \["10001"\],
    "budgetType": "Capped",
    "amount": 30.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31",
    "spend" : 0,
    "status" : "Scheduled",
    "suspended" : false
}\]

-   _sellerId_ : the internal ID that our system has attributed to your seller.
    
-   _spend:_ amount of money already spent on this budget
-   _suspended_ : the suspension status of your budget. If your budget is suspended, the system will stop using this budget for delivery clicks in the associated Seller-Campaigns.
-   status :

-   Scheduled : the budget will be used in the future starting at the startDate
-   Current : the budget is currently being used to deliver ads
-   Archived : the budget is not used anymore because it's endDate has been reached

  

**Updating Budgets**

Once you have created budgets, you can modify them for :

-   Increasing their budget amount
-   Decreasing their budget amount
-   Changing their dates
-   Changing the Campaigns that uses these budget
-   Suspending budgets

> **Tip:** Notice that you can do all this changes with one single PATCH request or separately

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
    "id" : "101",  //id of the budget
	"campaignIds": \["10001"\],
    "amount": 10.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "id" : "102",  //id of the budget
	"campaignIds": \["10001"\],
    "amount": 20.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "id" : "103",  //id of the budget
	"campaignIds": \["10001"\],
    "amount": 30.00,
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
}\]

  

**Increase Budget amounts**

When updating budgets you can increase the budget amounts. The increased amount will be taken into account immediately.

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
    "id": "101",
	"amount": 20.00,
},{
    "id": "102",
	"amount": 30.00,
},{
    "id": "103",
	"amount": 40.00,
}\]

  

**Decrease Capped Budget amounts**

When decreasing a capped budget amount we will take into account this new budget immediately. However the spend amount can continue decreasing a little bit after your change. This is because some clicks that occurred just before your change were not yet taken into account in the spend at the moment of the change. This means that the spend amount can exceed this new decreased amount (even if the set amount was above the spend at the moment of the decrease). For example, if your current budget has an amount of 100$ with a spend of 49$ and you decrease your budget to 50$ , the new spend might still reach 52$ (to take into account the few clicks that occured before the change)

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
    "id": "101",
	"amount": 5.00,
},{
    "id": "102",
	"amount": 15.00,
},{
    "id": "103",
	"amount": 25.00,
}\]

  

  

**Decrease Daily Budget amounts**

When decreasing a daily budget amount we will try to achieve this new decreased daily amount as soon as possible. However, it can take up to seven days so that your 7-day average reflects the new daily amount (although, most of the time, it will take much less time)

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
    "id": "101",
	"amount": 5.00,
},{
    "id": "102",
	"amount": 5.00,
},{
    "id": "103",
	"amount": 5.00,
}\]

Changing the dates of Budgets

You can change the _startDate_ and _endDate_ of a Budget if :

1.  the current and new values of _startDate_ and _endDate_ are in the future
2.  the _endDate_ is not be before the _startDate_  
     

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
	"id" : "101",
    "startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "id" : "102",
	"startDate": "2019-05-01",
    "endDate": "2019-05-31"
},{
    "id" : "103",
	"startDate": "2019-05-01",
    "endDate": "2019-05-31"
}\]

  

**Sharing Budgets between campaigns**

In case you have several CRP-Campaigns, you can make that a Seller budget can be used within several CRP-Campaign. For this, you just need to provide several campaignIds at the creation of the Budget. After the creation of the budget, you can update the budget and replace the current list of campaigns (containing only 1 campaigns) with a new list of campaigns (containing multiple campaigns) :

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
	"id" : "101",
	"campaignIds": \["10001","10002"\]
},{
    "id" : "102",
	"campaignIds": \["10001","10002"\]
},{
    "id" : "103",
	"campaignIds": \["10001","10002"\]
}\]

  

> **Warning:** Once you start using shared budgets, you will not be able to migrate back to API-V1 anymore

**Suspending Budgets**

In case you want to stop using a budget, you can suspend it. After a budget is suspended, we will stop delivering ads for the Seller-Campaigns using this budget.

PATCH /v2/crp/budgets HTTP/1.1
Content-Type: application/json

\[{
	"id" : "101",
	"suspended": true
},{
    "id" : "102",
	"suspended": true
},{
    "id" : "103",
	"suspended": true
}\]

This path ends here.
