Merchant API: revenue targets
About this article
This article explains what revenue targets are and how to create, update, and delete them via the Merchant API.
Table of contents
Introduction
A target is a revenue goal that you set for a channel. You can set two targets per month: one including VAT and one excluding VAT.
Use the Merchant API endpoints to push targets from your merchant system (e.g.: ERP), instead of entering them manually. This is useful if you have many channels, or your targets change every month.
Use revenue targets to:
- Compare goals with results. In insights, the Summary and Order tabs show your actual gross merchandise value (GMV) next to your targets. Hover over a period in the chart to see both figures.
- Spot channels that fall behind. Read missed-target alerts with
GET /v2/notifications, filtered by typeCHANNEL_KPI_TARGET_MISSED.
To set targets via the web interface, follow the steps in ChannelEngine: revenue targets.
Overview
The flowchart below shows how targets move between your system and ChannelEngine.
Requirements
- At least one active channel in your tenant.
- A Merchant API key. Send it in the
X-CE-KEYheader of every request. Find your Merchant API key at Settings, Merchant API keys on ChannelEngine. - The channel ID of each channel you want to set targets for. Call
GET /v2/channelsand read theChannelIdvalues in theChannelsarray of each result. - Your planned revenue per channel per month, including and/or excluding VAT.
- The legacy insights add-on (to compare your targets with the revenue data in your Insights reports). See ChannelEngine: insights [legacy].
Available API endpoints
All three endpoints support bulk requests. One request can contain several channels, and each channel can contain several months.
-
Create targets:
POST /v2/targets- set revenue targets for one or more channels. -
Update targets:
PUT /v2/targets- change the amounts of existing targets. -
Delete targets:
DELETE /v2/targets- remove revenue targets.
The Merchant API has no endpoint to retrieve targets. Each create, update, and delete response lists the targets it handled. Use those responses to confirm your changes. Alternatively, check the saved values via the web interface at Settings, Settings, Targets.
Create targets
Use POST /v2/targets to set one or more revenue targets. Indicate the target amount (including and/or excluding VAT), ID of the channel, month, and year.
The request body is an array. Each item holds one channel and a list of monthly targets for that channel.
Request fields
| Field | Type | Required | Description |
ChannelId |
integer | Yes | The ID of the channel the targets belong to. |
Targets |
array | Yes | One target entry per month. |
Targets[].Month |
integer | Yes | Month number, from 1 (January) through 12 (December). |
Targets[].Year |
integer | Yes | Four-digit year, e.g.: 2027. |
Targets[].TargetInclVat |
decimal | Yes* | Revenue target including VAT. |
Targets[].TargetExclVat |
decimal | Yes* | Revenue target excluding VAT. |
Provide at least one amount: including VAT, excluding VAT, or both.
Example request
Set revenue targets for January and February 2027 on the channel with ID 42:
[
{
"ChannelId": 42,
"Targets": [
{ "Month": 1, "Year": 2027, "TargetInclVat": 24200.00, "TargetExclVat": 20000.00 },
{ "Month": 2, "Year": 2027, "TargetInclVat": 26620.00, "TargetExclVat": 22000.00 }
]
}
]Example response
A successful request returns HTTP 201. The Content array lists each created target, including its ChannelEngine Id. The response is shortened.
{
"Content": [
{
"Id": 901,
"ChannelId": 42,
"Month": 1,
"Year": 2027,
"TargetInclVat": 24200.00,
"TargetExclVat": 20000.00,
"CreatedAt": "2026-11-18T09:14:00Z",
"UpdatedAt": "2026-11-18T09:14:00Z"
}
],
"StatusCode": 201,
"Success": true
}Send a whole year in one call. Put all twelve months of a channel in one Targets array, instead of sending one request per month.
Update targets
Use PUT /v2/targets to update one or more revenue targets when your plan changes. The request body has the same structure as the create request.
Send the channel, month, and year of each target you want to change, with the new amounts. Months you leave out keep their current amounts.
Example request
Raise the January 2027 target on the channel with ID 42:
[
{
"ChannelId": 42,
"Targets": [
{ "Month": 1, "Year": 2027, "TargetInclVat": 30250.00, "TargetExclVat": 25000.00 }
]
}
]Response
A successful request returns HTTP 200. The Content array lists the updated targets in the same format as the create response. UpdatedAt shows the time of the change.
Delete targets
Use DELETE /v2/targets to remove targets you no longer need. Send the channel ID, month, and year of each target. Amounts are not needed.
Sending only the year does not delete targets. Include the month for each target.
Example request
Remove January and February 2027 on the channel with ID 42:
[
{
"ChannelId": 42,
"Targets": [
{ "Month": 1, "Year": 2027 },
{ "Month": 2, "Year": 2027 }
]
}
]Example response
A successful request returns HTTP 200. The response sorts your request into two lists:
| Field | Description |
DeletedTargets |
Targets that existed and are now removed. |
NotExistingTargets |
Channel, month, and year combinations without a target. No target was removed for these. |
{
"Content": {
"DeletedTargets": [
{ "ChannelId": 42, "Month": 1, "Year": 2027 }
],
"NotExistingTargets": [
{ "ChannelId": 42, "Month": 2, "Year": 2027 }
]
},
"Success": true
}Common issues
| Issue | Likely cause | Solution |
POST returns HTTP 400 with "Request contains conflicting targets". |
A target already exists for that channel, month, and year. POST does not overwrite targets. |
Use PUT to change the existing target. |
The response has "Success": false with ValidationErrors. |
A required field is missing, or a month or year is not a valid number. | Check the field names in ValidationErrors, correct them, and resend the request. |
PUT returns HTTP 200 with an empty response, and the target does not change. |
No target exists for that channel, month, and year. PUT ignores these entries. |
Check the channel ID, month, and year. If the target does not exist yet, create it with POST. |
A target appears in NotExistingTargets. |
No target exists for that channel, month, and year. | Nothing was deleted. Check the values, or ignore it if the target was already removed. |
| A target is not visible at Settings, Settings, Targets. | Another channel or year is selected. | Choose the channel that matches your ChannelId and the correct year. |
| Targets do not appear in insights. | The insights add-on is not enabled for your account. | Contact your customer success manager or Support to enable it. |
If the issue persists, contact ChannelEngine Support and include the RequestId or LogId from the response.
Next steps
- ChannelEngine revenue targets: set and view targets via the ChannelEngine web interface.
- Merchant API: notifications: read missed targets.
- ChannelEngine: insights [add-on]: compare the actual GMV with your targets.
Comments
0 comments
Article is closed for comments.