Skip to content

Overview

Mercado Eletrônico's e-Procurement platform provides the WebHooks feature so that we can interact with the events that occur on the platform.

❗️ Attention

Please refer to Webhooks page in Guides section to check the first information about the webhooks before proceeding on this page.

You can use webhook subscriptions to receive notifications about particular events.

TopicEventDescroption
contract.approvedContract ApprovedOccurs when a contract
is approved
on the platform.
contract.attachment.createdContract Attachment CreatedTriggered when a new attachment
is added
to a contract.
contract.attachment.deletedContract Attachment DeletedTriggered when an attachment
linked to a contract
is removed.
contract.createdContract CreatedOccurs when a contract
is created
on the platform.
contract.statusContract StatusOccurs whenever the document
status changes.
contract.updatedContract UpdatedOccurs when a contract
is updated
on the platform.
integration.resultIntegration ResultOccurs when an integration request
is completed
on the platform.
integration.supplier.resultSupplier Integration ResultOccurs when a supplier integration request
is completed
on the platform.
invoice.attachment.createdInvoice Attachment CreatedOccurs when a new attachment
is uploaded.
invoice.attachment.deletedInvoice Attachment DeletedTriggered when an invoice file
is removed.
invoice.createdInvoice CreatedOccurs when an invoice
is created.
invoice.creditmemo.requestedCredit Note RequestedOccurs when a credit note
is requested.

Used to return part of a sale amount,
for example:
item not delivered,
defective product,
or partial return.

Example:
An invoice has 10 items,
but the client received 9.
Instead of canceling the entire invoice,
a credit note is issued and linked,
which "reverses" the value
of the problematic item.

In the portal,
requesting a credit note sends an email
to the supplier for issuance
and also allows creating it.
invoice.statusInvoice StatusOccurs whenever the document
status changes.
invoice.updatedInvoice UpdatedOccurs when an invoice
is updated
on the platform.
member.createdUser CreatedTriggered when a new user
is registered
on the platform.
member.updatedUser UpdatedTriggered when user data
or permissions
are changed.
order.attachment.createdOrder Attachment CreatedTriggered when an attachment
is added
to an order.
order.attachment.deletedOrder Attachment DeletedTriggered when an attachment
is removed
from an order.
order.cancellation.requestedOrder Cancellation RequestedTriggered when a full order cancellation
is requested
to the ERP.
order.canceledOrder CanceledOccurs when an order
is canceled
on the platform.
order.createdOrder CreatedOccurs when an order
is created
on the platform.
order.deliveredOrder DeliveredOccurs when an order delivery
is created.
order.item.cancellationrequestedOrder Item Cancellation RequestedTriggered when cancellation
of a specific item
is requested
to the ERP.
order.item.closedOrder Item ClosedTriggered when an order item
is closed.
order.item.deliverydateupdatedOrder Item Delivery Date UpdatedTriggered when the delivery date
of an item
is changed.
order.item.refusedOrder Item RefusedTriggered when a specific order item
is refused.
order.receivedOrder ReceivedOccurs when an order
is received
on the platform.
order.refusedOrder RefusedTriggered when the entire order
is refused.
order.update.noapprovalOrder Updated Without ApprovalTriggered when an order
is updated
without requiring
a new approval.
order.updatedOrder UpdatedOccurs when an order
is updated.
preorder.approvedPre-Order ApprovedOccurs when a pre-order
is approved
on the platform.
preorder.createdPre-Order CreatedOccurs when a pre-order
is created
on the platform.
preorder.statusPre-Order StatusOccurs whenever the document
status changes.
prerequest.submittedPre-Request SubmittedOccurs when a pre-request
is submitted.
product.createdProduct CreatedOccurs when a product
is created
on the platform.
product.updatedProduct UpdatedOccurs when a product
is updated
on the platform.
request-item.status.updatedRequest Item Status UpdatedOccurs when the request item
status is updated.
request.approvedRequest ApprovedOccurs when a request
is approved
on the platform.
request.statusRequest StatusOccurs whenever the document
status changes.
rfq.answer.createdRFQ - Answer CreatedOccurs when a quotation answer
is created
on the platform.
rfq.answer.updatedRFQ - Answer UpdatedOccurs when a quotation answer
is updated
on the platform.
rfq.canceledRFQ CanceledOccurs when an RFQ
is canceled
on the platform.
rfq.closedRFQ ClosedOccurs when an RFQ
is closed
on the platform.
rfq.createdRFQ CreatedOccurs when an RFQ
is created
on the platform.
rfq.expiredRFQ ExpiredOccurs when an RFQ
is expired
on the platform.
rfq.receivedRFQ ReceivedOccurs when an RFQ
is received
on the platform.
rfq.updatedRFQ UpdatedOccurs when an RFQ
is updated
on the platform.
service-sheet.approvedService Sheet ApprovedOccurs when a service sheet
is approved
on the platform.
service-sheet.createdService Sheet CreatedOccurs when a service sheet
is created
on the platform.
service-sheet.statusService Sheet StatusOccurs whenever the service sheet
status changes.
service-sheet-document.createdService Sheet Document CreatedTriggered when a service sheet document
is created.
service-sheet-document.statusService Sheet Document StatusTriggered whenever the service sheet document
status changes.
supplier.approval.pendingSupplier - Approval PendingOccurs when approval
is required.
supplier.approvedSupplier ApprovedOccurs when approval
is granted.
supplier.createdSupplier CreatedOccurs when a supplier
is created
on the platform.
supplier.updatedSupplier UpdatedOccurs when a supplier
is updated
on the platform.

These are some example responses you can consume for each topic described above:

Contract Approved

json
{
  "topic": "contract.approved",
  "data": {
    "contractId": "125154"
  }
}

Contract Attachment Created

json
{
  "topic": "contract.attachment.created",
  "data": {
    "contractId": "851233",
    "contractItemId": "1",
    "attachmentId": "5533111"
  }
}

Contract Attachment Deleted

json
{
  "topic": "contract.attachment.deleted",
  "data": {
    "contractId": "851233",
    "contractItemId": "1",
    "attachmentId": "5533111"
  }
}

Contract Created

json
{
  "topic": "contract.created",
  "data": {
    "contractId": "32211"
  }
}

Contract Status

json
{
  "topic": "contract.status",
  "data": {
    "contractId": "32211",
    "status": "103",
    "previousStatus": "101"
  }
}

Contract Updated

json
{
  "topic": "contract.updated",
  "data": {
    "contractId": "125154"
  }
}

Integration Result

json
{
  "topic": "integration.result",
  "data": {
    "correlationId": "YOUR_CORRELATION_ID",
    "resource": "order",
    "identifier": "3211",
    "statusCode": 201,
    "message": "Order 3211 created successfully."
  } 
}

Supplier Integration Result

json
{
  "topic": "integration.supplier.result",
  "data": {
    "correlationId": "e170885a-f175-41ff-8712-0f6ccfbb09f9",
    "resource": "supplier",
    "identifier": "32211",
    "statusCode": 201,
    "message": "Some text"
  }
}

Invoice Attachment Created

json
{
  "topic": "invoice.attachment.created",
  "data": {
    "invoiceId": "32211",
    "attachmentId": "54421"
  }
}

Invoice Attachment Deleted

json
{
  "topic": "invoice.attachment.deleted",
  "data": {
    "invoiceId": "32211",
    "attachmentId": "54421"
  }
}

Invoice Created

json
{
  "topic": "invoice.created",
  "data": {
    "invoiceId": "32211"
  }
}

Credit Note Requested

json
{
  "topic": "invoice.creditmemo.requested",
  "data": {
    "invoiceId": "851233"
  }
}

Invoice Status

json
{
  "topic": "invoice.status",
  "data": {
    "invoiceId": "32211",
    "status": "103",
    "previousStatus": "101"
  }
}

Invoice Updated

json
{
  "topic": "invoice.updated",
  "data": {
    "invoiceId": "32211"
  }
}

User Created

json
{
  "topic": "member.created",
  "data": {
    "userId": "1"
  }
}

User Updated

json
{
  "topic": "member.updated",
  "data": {
    "userId": "1"
  }
}

Order Attachment Created

json
{
  "topic": "order.attachment.created",
  "data": {
    "orderId": "851233",
    "orderItemId": "1",
    "attachmentId": "5533111"
  }
}

Order Attachment Deleted

json
{
  "topic": "order.attachment.deleted",
  "data": {
    "orderId": "851233",
    "orderItemId": "1",
    "attachmentId": "5533111"
  }
}

Order Cancellation Requested

json
{
  "topic": "order.cancellation.requested",
  "data": {
    "orderId": "851233"
  }
}

Order Canceled

json
{
  "topic": "order.canceled",
  "data": {
    "orderId": "123",
    "customerId": "456",
    "supplierId": "789"
  }
}

Order Created

json
{
  "topic": "order.created",
  "data": {
    "orderId": "123"
  }
}

Order Delivered

json
{
  "topic": "order.delivered",
  "data": {
    "deliveryId": "55421",
    "orderId": "12442",
    "orderItemId": "1"
  }
}

Order Item Cancellation Requested

json
{
  "topic": "order.item.cancellationrequested",
  "data": {
    "orderId": "851233",
    "orderItemId": "1"
  }
}

Order Item Closed

json
{
  "topic": "order.item.closed",
  "data": {
    "orderId": "851233",
    "orderItemId": "1"
  }
}

Order Item Delivery Date Updated

json
{
  "topic": "order.item.deliverydateupdated",
  "data": {
    "orderId": "851233",
    "orderItemId": "1"
  }
}

Order Item Refused

json
{
  "topic": "order.item.refused",
  "data": {
    "orderId": "851233",
    "orderItemId": "1"
  }
}

Order Received

json
{
  "topic": "order.received",
  "data": {
    "orderId": "123",
    "clientId": "456",
    "supplierId": "789"
  }
}

Order Refused

json
{
  "topic": "order.refused",
  "data": {
    "orderId": "851233"
  }
}

Order Updated Without Approval

json
{
  "topic": "order.update.noapproval",
  "data": {
    "orderId": "851233"
  }
}

Order Updated

json
{
  "topic": "order.updated",
  "data": {
    "orderId": "123",
    "customerId": "456",
    "supplierId": "789"
  }
}

Pre-Order Approved

json
{
  "topic": "preorder.approved",
  "data": {
    "preOrderId": "331123"
  }
}

Pre-Order Created

json
{
  "topic": "preorder.created",
  "data": {
    "preOrderId": "331123",
     "customerId": "456"
  }
}

Pre-Order Status

json
{
  "topic": "preorder.status",
  "data": {
    "preOrderId": "851233",
    "status": "103",
    "previousStatus": "101"
  }
}

Pre-Request Submitted

json
{
  "topic": "prerequest.submitted",
  "data": {
    "preRequestId": "42490e28-ed00-4dc0-89b4-decad490b02a"
  }
}

Product Created

json
{
  "topic": "product.created",
  "data": {
    "productId": "102"
  }
}

Product Updated

json
{
  "topic": "product.updated",
  "data": {
    "productId": "102"
  }
}

Request Item Status Updated

json
{
  "topic": "request-item.status.updated",
  "data": {
    "requestId": "38510943",
    "requestItemId": "5"
  }
}

Request Approved

json
{
  "topic": "request.approved",
  "data": {
    "requestId": "55331112"
  }
}

Request Status

json
{
  "topic": "request.status",
  "data": {
    "requestId": "32211",
    "status": "103",
    "previousStatus": "101"
  }
}

RFQ - Answer Created

json
{
  "topic": "rfq.answer.created",
  "data": {
    "rfqId": "9149480",
    "supplierId": "5380963",
    "clinteSupplierId": "0004970001"
  }
}

RFQ - Answer Updated

json
{
  "topic": "request-item.status.updated",
  "data": {
    "requestId": "38510943",
    "requestItemId": "5"
  }
}

RFQ Canceled

json
{
  "topic": "rfq.canceled",
  "data": {
    "rfqId": "4331"
  }
}

RFQ Closed

json
{
  "topic": "rfq.closed",
  "data": {
    "rfqId": "4331"
  }
}

RFQ Created

json
{
  "topic": "rfq.created",
  "data": {
    "rfqId": "4331"
  }
}

RFQ Expired

json
{
  "topic": "rfq.expired",
  "data": {
    "rfqId": "4331"
  }
}

RFQ Received

json
{
  "topic": "rfq.received",
  "data": {
    "rfqId": "102",
    "clientId": "446",
    "supplierId": "789"
  }
}

RFQ Updated

json
{
  "topic": "rfq.updated",
  "data": {
    "rfqId": "4331"
  }
}

Service Sheet Approved

json
{
  "topic": "service-sheet.approved",
  "data": {
    "serviceSheetId": "32211"
  }
}

Service Sheet Created

json
{
  "topic": "service-sheet.created",
  "data": {
    "serviceSheetId": "32211"
  }
}

Service Sheet Status

json
{
  "topic": "service-sheet.status",
  "data": {
    "serviceSheetId": "32211",
    "status": "103",
    "previousStatus": "101"
  }
}

Service Sheet Document Created

json
{
  "topic": "service-sheet-document.created",
  "data": {
    "serviceSheetHeaderId": "382821"
  }
}

Service Sheet Document Status

json
{
  "topic": "service-sheet-document.status",
  "data": {
    "serviceSheetHeaderId": "250300",
    "status": "103",
    "previousStatus": "101"
  }
}

Supplier - Approval Pending

json
{
  "topic": "supplier.approval.pending",
  "data": {
    "supplierId": "32111"
  }
}

Supplier Approved

json
{
  "topic": "supplier.approved",
  "data": {
    "supplierId": "32111"
  }
}

Supplier Created

json
{
  "topic": "supplier.created",
  "data": {
    "supplierId": "54421"
  }
}

Supplier Updated

json
{
  "topic": "supplier.updated",
  "data": {
    "supplierId": "32111"
  }
}