Read one write action
const url = 'https://open-api.live.gobots.com.br/v1/ads/meli/actions/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://open-api.live.gobots.com.br/v1/ads/meli/actions/example \ --header 'Authorization: Bearer <token>'The poll target of every 202. It does not count toward the monthly quota and is never cached. An
action of another merchant, an unknown id and a malformed id all answer the same 404.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Marketplace of the Ads account. Only meli has an adapter in v1; the others answer 501.
The meta.action_id a write answered. Another merchant’s action answers 404.
Responses
Seção intitulada “Responses”The action and its current state.
object
object
The state of an action. applied, partially_applied, failed and dismissed are terminal.
object
The fields an action changed, as values; nothing the marketplace said is ever kept.
object
object
object
object
The fields an action changed, as values; nothing the marketplace said is ever kept.
object
object
object
object
object
The state of an action. applied, partially_applied, failed and dismissed are terminal.
A closed code, never free text. outcome_unknown means the marketplace’s answer could not be read
and the change must be verified by hand.
Present when an opportunity that proposed removing an ad was applied as a pause.
One entry per requested target on a batch; the targets that failed on partially_applied.
object
A closed code, never free text. outcome_unknown means the marketplace’s answer could not be read
and the change must be verified by hand.
object
Example
{ "action": { "marketplace": "meli", "status": "awaiting_confirmation", "source": "rest", "route": "campaign_update", "resource": { "type": "campaign" }, "result": { "status": "awaiting_confirmation", "reason": "budget_below_minimum", "applied_as": "pause", "details": [ { "target_type": "campaign", "status": "applied", "reason": "budget_below_minimum" } ] } }}Headers
Seção intitulada “Headers”The policies that apply to this endpoint group, as
draft-ietf-httpapi-ratelimit-headers policy members: "<group>";q=<quota>;w=<window seconds>.
The state of the endpoint group’s window: "<group>";r=<remaining>;t=<seconds to reset>.
The API key is missing, malformed, unknown, revoked or expired.
object
Stable machine readable error code.
Human readable explanation. Never carries raw upstream text.
Seconds to wait before retrying.
Limit that was exceeded.
Remaining allowance in the current window.
Example generated
{ "code": "example", "message": "example", "retry_after": 1, "limit": 1, "remaining": 1}Headers
Seção intitulada “Headers”Bearer challenge for the API realm.
The merchant does not have the Open API add-on active.
object
Stable machine readable error code.
Human readable explanation. Never carries raw upstream text.
Seconds to wait before retrying.
Limit that was exceeded.
Remaining allowance in the current window.
Example generated
{ "code": "example", "message": "example", "retry_after": 1, "limit": 1, "remaining": 1}The resource, or a requested store, is not this merchant’s or does not exist; the two are indistinguishable.
object
Stable machine readable error code.
Human readable explanation. Never carries raw upstream text.
Seconds to wait before retrying.
Limit that was exceeded.
Remaining allowance in the current window.
Example generated
{ "code": "example", "message": "example", "retry_after": 1, "limit": 1, "remaining": 1}Headers
Seção intitulada “Headers”The policies that apply to this endpoint group, as
draft-ietf-httpapi-ratelimit-headers policy members: "<group>";q=<quota>;w=<window seconds>.
The state of the endpoint group’s window: "<group>";r=<remaining>;t=<seconds to reset>.
The requests-per-minute limit of the endpoint group was exceeded (rate_limited), or the
monthly request quota of the merchant is exhausted (quota_exceeded).
object
Stable machine readable error code.
Human readable explanation. Never carries raw upstream text.
Seconds to wait before retrying.
Limit that was exceeded.
Remaining allowance in the current window.
Example generated
{ "code": "example", "message": "example", "retry_after": 1, "limit": 1, "remaining": 1}Headers
Seção intitulada “Headers”The policies that apply to this endpoint group, as
draft-ietf-httpapi-ratelimit-headers policy members: "<group>";q=<quota>;w=<window seconds>.
The state of the endpoint group’s window: "<group>";r=<remaining>;t=<seconds to reset>.
Seconds to wait before retrying, per RFC 9110.
The upstream source is unavailable. When the merchant’s entitlement could not be resolved the request is refused before rate limiting, so the RateLimit headers are absent.
object
Stable machine readable error code.
Human readable explanation. Never carries raw upstream text.
Seconds to wait before retrying.
Limit that was exceeded.
Remaining allowance in the current window.
Example generated
{ "code": "example", "message": "example", "retry_after": 1, "limit": 1, "remaining": 1}Headers
Seção intitulada “Headers”As the RateLimit-Policy response header; absent when entitlement could not be resolved.
As the RateLimit response header; absent when entitlement could not be resolved.