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.
Topics
Event | Tópico | Description |
---|---|---|
Order Received | order.received | Occurs when an order is received on the platform. |
Order Created | order.created | Occurs when an order is created on the platform. |
Order Canceled | order.canceled | Occurs when an order is canceled on the platform. |
Order Delivered | order.delivered | Occurs when an order delivery is created. |
Order Updated | order.updated | Occurs when an order is updated. |
Pre-Request Submitted | prerequest.submitted | Occurs when a pre-request is submitted. |
Request Approved | request.approved | Occurs when a request is approved on the platform. |
Request Status | request.status | Occurs whenever the document status changes. |
Request Item Status Updated | request-item.status.updated | Occurs whenever the status of a request item is updated. |
RFQ Created | rfq.created | Occurs when an RFQ is created on the platform. |
RFQ Closed | rfq.closed | Occurs when an RFQ is closed on the platform. |
RFQ Expired | rfq.expired | Occurs when an RFQ expires on the platform. |
RFQ Canceled | rfq.canceled | Occurs when an RFQ is canceled on the platform. |
RFQ Updated | rfq.updated | Occurs when an RFQ is updated on the platform. |
RFQ Received | rfq.received | Occurs when an RFQ is received on the platform. |
RFQ - Answer Created | rfq.answer.created | Occurs when a quotation response is created on the platform. |
RFQ - Answer Updated | rfq.answer.updated | Occurs when a quotation response is updated on the platform. |
Pre-Order Created | preorder.created | Occurs when a pre-order is created on the platform. |
Pre-Order Approved | preorder.approved | Occurs when a pre-order is approved on the platform. |
Pre-Order Status | preorder.status | Occurs whenever the document status changes. |
Service Sheet Created | service-sheet.created | Occurs when a service sheet is created on the platform. |
Service Sheet Approved | service-sheet.approved | Occurs when a service sheet is approved on the platform. |
Service Sheet Document Status | service-sheet-document.status | Occurs whenever the document status changes. |
Service Sheet Status | service-sheet.status | Occurs whenever the service sheet status changes. |
Contract Approved | contract.approved | Occurs when a contract is approved on the platform. |
Contract Created | contract.created | Occurs when a contract is created on the platform. |
Contract Updated | contract.updated | Occurs when a contract is updated on the platform. |
Contract Status | contract.status | Occurs whenever the document status changes. |
Invoice Status | invoice.status | Occurs whenever the document status changes. |
Invoice Created | invoice.created | Occurs when an invoice is created. |
Invoice Updated | invoice.updated | Occurs when an invoice is updated on the platform. |
Invoice Attachment Created | invoice.attachment.created | Occurs when a new attachment is uploaded. |
Invoice Attachment Deleted | invoice.attachment.deleted | Occurs when an attachment is deleted. |
Credit Invoice Requested | invoice credit memo requested | Occurs when a credit invoice is requested. This document is used to return part of a sale amount when, for example: an item was not delivered, a product arrived defective, or part of the merchandise was returned by the customer.Example: An invoice is issued with 10 items, but the customer received only 9, or one item was defective. So, instead of canceling the entire invoice, a credit invoice is issued associated with the original invoice, which “reverses” or returns the value of that defective item.On the portal, it’s possible to request a credit invoice — this sends an email to the supplier asking them to issue a credit invoice — and also to create the credit invoice. |
Supplier Created | supplier.created | Occurs when a supplier is created on the platform. |
Supplier Updated | supplier.updated | Occurs when a supplier is updated on the platform. |
Supplier - Approval Pending | supplier.approval.pending | Occurs when a qualification is required. |
Supplier Approved | supplier.approved | Occurs when a qualification is approved. |
Integration Result | integration.result | Occurs when an integration request is completed on the platform. |
Supplier Integration Result | integration.supplier.result | Occurs when a supplier integration request is completed on the platform. |
Product Created | product.created | Occurs when a product is created on the platform. |
Product Updated | product.updated | Occurs when a product is updated on the platform. |
These are some response examples you may consume for each topic described above:
Order Received
json
{
"topic": "order.received",
"data": {
"orderId": "123",
"clientId": "456",
"supplierId": "789"
}
}
Order Created
json
{
"topic": "order.created",
"data": {
"orderId": "123"
}
}
Order Canceled
json
{
"topic": "order.canceled",
"data": {
"orderId": "123",
"customerId": "456",
"supplierId": "789"
}
}
Order Delivered
json
{
"topic": "order.delivered",
"data": {
"deliveryId": "55421",
"orderId": "12442",
"orderItemId": "1"
}
}
Order Updated
json
{
"topic": "order.updated",
"data": {
"orderId": "123",
"customerId": "456",
"supplierId": "789"
}
}
Pre-Request Submitted
json
{
"topic": "prerequest.submitted",
"data": {
"preRequestId": "42490e28-ed00-4dc0-89b4-decad490b02a"
}
}
Service-Sheet Created
json
{
"topic": "service-sheet.created",
"data": {
"serviceSheetId": "32211"
}
}
Service-Sheet Approved
json
{
"topic": "service-sheet.approved",
"data": {
"serviceSheetId": "32211"
}
}
Service Sheet Document Status
json
{
"topic": "service-sheet-document.status",
"data": {
"serviceSheetHeaderId": "250300",
"status": "103",
"previousStatus": "101"
}
}
Service-Sheet Status
json
{
"topic": "service-sheet.status",
"data": {
"serviceSheetId": "32211",
"status": "103",
"previousStatus": "101"
}
}
Request Approved
json
{
"topic": "request.approved",
"data": {
"requestId": "55331112"
}
}
Request Status
json
{
"topic": "request.status",
"data": {
"requestId": "32211",
"status": "103",
"previousStatus": "101"
}
}
Request Item Status Updated
json
{
"topic":
"request-item.status.updated",
"data": {
"requestId": "38510943",
"requestItemId": "5"
}
}
Pre-Order Created
json
{
"topic": "preorder.created",
"data": {
"preOrderId": "331123",
"customerId": "456",
}
}
Pre-Order Approved
json
{
"topic": "preorder.approved",
"data": {
"preOrderId": "331123"
}
}
Pre-Order Status
json
{
"topic": "preorder.status",
"data": {
"preOrderId": "32211",
"status": "103",
"previousStatus": "101"
}
}
RFQ Created
json
{
"topic": "rfq.created",
"data": {
"rfqId": "4331"
}
}
RFQ Closed
json
{
"topic": "rfq.closed",
"data": {
"rfqId": "4331"
}
}
RFQ Expired
json
{
"topic": "rfq.expired",
"data": {
"rfqId": "4331"
}
}
RFQ Canceled
json
{
"topic": "rfq.canceled",
"data": {
"rfqId": "4331"
}
}
RFQ Updated
json
{
"topic": "rfq.updated",
"data": {
"rfqId": "4331"
}
}
RFQ Received
json
{
"topic": "rfq.received",
"data": {
"rfqId": "102",
"clientId": "446",
"supplierId": "789"
}
}
RFQ Answer Created
json
{
"topic":
"rfq.answer.created",
"data": {
"rfqId": "9149480",
"supplierId": "5380963",
"clinteSupplierId": "0004970001"
}
}
RFQ Answer Updated
json
{
"topic":
"rfq.answer.update",
"data": {
"rfqId": "9149480",
"supplierId": "5380963",
"clinteSupplierId": "0004970001"
}
}
Invoice Status
json
{
"topic": "invoice.status",
"data": {
"invoiceId": "32211",
"status": "103",
"previousStatus": "101"
}
}
Invoice Created
json
{
"topic": "invoice.created",
"data": {
"invoiceId": "32211"
}
}
Invoice Updated
json
{
"topic": "invoice.updated",
"data": {
"invoiceId": "32211"
}
}
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 Credit Memo Requested
json
{
"topic": "invoice.creditmemo.requested",
"data": {
"invoiceId": "851233"
}
}
Contract Created
json
{
"topic": "contract.created",
"data": {
"contractId": "32211"
}
}
Contract Approved
json
{
"topic": "contract.approved",
"data": {
"contractId": "125154"
}
}
Contract Updated
json
{
"topic": "contract.updated",
"data": {
"contractId": "125154"
}
}
Contract Status
json
{
"topic": "contract.status",
"data": {
"contractId": "32211",
"status": "103",
"previousStatus": "101"
}
}
Supplier Created
json
{
"topic": "supplier.created",
"data": {
"supplierId": "54421"
}
}
Supplier Updated
json
{
"topic": "supplier.updated",
"data": {
"supplierId": "32111"
}
}
Supplier Approved
json
{
"topic": "supplier.approved",
"data": {
"supplierId": "32111"
}
}
Supplier Approval Pending
json
{
"topic": "supplier.approval.pending",
"data": {
"supplierId": "32111"
}
}
Integration Result
json
{
"topic": "integration.result",
"data": {
"correlationId": "YOUR_CORRELATION_ID", // The Request Id, Maybe your internal code
"resource": "order",
"identifier": "3211", // Internal ID
"statusCode": 201,
"message": "Order 3211 created successfully."
}
}
Integration Supplier Result
json
{
"topic": "integration.supplier.result",
"data": {
"correlationId": "e170885a-f175-41ff-8712-0f6ccfbb09f9",
"resource": "supplier",
"identifier": "32211",
"statusCode": 201,
"message": "Some text"
}
}
Product Created
json
{
"topic": "product.created",
"data": {
"productId": "102"
}
}
Product Updated
json
{
"topic": "product.updated",
"data": {
"productId": "102"
}
}