Skip to main content
PATCH
/
2025-10
/
marketing-solutions
/
marketplace-performance-outcomes
/
budgets
/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets
curl --request PATCH \
  --url https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "amount": "<string>",
    "budgetId": 123,
    "campaignIds": [
      123
    ],
    "endDate": "<string>",
    "isSuspended": true,
    "startDate": "2023-11-07T05:31:56Z"
  }
]
'
import requests

url = "https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets"

payload = [
{
"amount": "<string>",
"budgetId": 123,
"campaignIds": [123],
"endDate": "<string>",
"isSuspended": True,
"startDate": "2023-11-07T05:31:56Z"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
amount: '<string>',
budgetId: 123,
campaignIds: [123],
endDate: '<string>',
isSuspended: true,
startDate: '2023-11-07T05:31:56Z'
}
])
};

fetch('https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
[
'amount' => '<string>',
'budgetId' => 123,
'campaignIds' => [
123
],
'endDate' => '<string>',
'isSuspended' => true,
'startDate' => '2023-11-07T05:31:56Z'
]
]),
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;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets"

payload := strings.NewReader("[\n {\n \"amount\": \"<string>\",\n \"budgetId\": 123,\n \"campaignIds\": [\n 123\n ],\n \"endDate\": \"<string>\",\n \"isSuspended\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\"\n }\n]")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"amount\": \"<string>\",\n \"budgetId\": 123,\n \"campaignIds\": [\n 123\n ],\n \"endDate\": \"<string>\",\n \"isSuspended\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\"\n }\n]")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.criteo.com/2025-10/marketing-solutions/marketplace-performance-outcomes/budgets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"amount\": \"<string>\",\n \"budgetId\": 123,\n \"campaignIds\": [\n 123\n ],\n \"endDate\": \"<string>\",\n \"isSuspended\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\"\n }\n]"

response = http.request(request)
puts response.read_body
[
  {
    "id": "16501666",
    "sellerId": "10656107",
    "campaignIds": [
      436017
    ],
    "budgetType": "Capped",
    "amount": 462.47,
    "endDate": "2026-04-30",
    "spend": 117.59,
    "status": "Current",
    "isSuspended": false
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
amount
string
budgetId
integer<int64>
campaignIds
integer<int32>[]
endDate
string
isSuspended
boolean
startDate
string<date-time>

Response

200 - application/json

Success

amount
number<double> | null

Budget amount in the advertiser's currency

budgetType
string

Type of budget: 'Daily' (daily cap), 'Capped' (lifetime with fixed amount), or 'Uncapped' (lifetime with no limit)

campaignIds
integer<int32>[]

List of campaign IDs this budget applies to

endDate
string

End date of the budget period (format: YYYY-MM-DD), or empty string if open-ended

id
string

Unique budget identifier

isSuspended
boolean

Whether the budget has been manually suspended by the partner

sellerId
string

Identifier of the seller this budget belongs to

spend
number<double> | null

Amount spent against this budget so far, or null if not available

startDate
string<date>

Start date of the budget period (format: YYYY-MM-DD)

status
enum<string>

Status of a seller budget

Available options:
Archived,
Current,
Scheduled