Skip to main content

Notifications

ANYMARKET has an event notification functionality: When an event occurs, for example if the order status is changed, we will notify your application.

To receive ANYMARKET notifications, your application must accept POST requests in JSON format. Notifications will be sent in the following format:

{
"type" : "PRODUCT",
"content" : {
"id":"10",
"oi":"99999."
}
}

Callback URL​

The informed URL is the address of the REST service of the application developed by the partner. All requests must support the POST method and must return status 200 or 201 on success.

To register the notification URL, access the ANYMARKET application and navigate to the parameters page. Enter the URL in the Callback URL field.

Notifications Types​

If the callback URL is correctly registered, we will inform your application when the following events occur in ANYMARKET:

Product​

When there is a product udpate/creation

{
"type" : "PRODUCT",
"content" : {
"id":"10",
"oi":"99999."
}
}

Order​

When there is a order update/creation

{
"type" : "ORDER",
"content" : {
"id":"10",
"oi":"99999."
}
}

Transmission​

When there is a SKU update/creation. Transmissions are only notified if the SKU has an active offer. The same rule applies to FEED.

{
"type" : "TRANSMISSION",
"content" : {
"id":"10",
"oi":"99999."
}
}

Inbound Invoice​

When there is a update/creation of the inbound invoice.

{
"type" : "INBOUND_NFE",
"content" : {
"id":"10",
"oi":"99999."
}
}

Unavailability and exceptions​

ANYMARKET will attempt to notify the partner 3 times at regular intervals. If after 3 attempts there is no success, ANYMARKET sends the order, product or offer to its respective feed, if developed.

Once available in the feed, ANYMARKET will keep the item available for 'consumption' for 30 days.