Skip to content

Webhooks

Webhooks allow you to get real-time programmatic notifications about changes to your data as they happen. Instead of pulling information through our API, webhooks will send information to your endpoint.

Payment

Response:

{
  "data": {
    "status_at": "2022-06-15T14:25:37+00:00",
    "extras": {},
    "sent_at": "2022-06-15T14:25:37+00:00",
    "order": {
      "id": "113d3758-d148-45bf-a72f-40b01e691e37",
      "reference": "https://api.magalu.com/v0/orders/113d3758-d148-45bf-a72f-40b01e691e37",
      "code": "1234567890123456"
    },
    "status": "approved",
    "type": "created_payment",
    "id": "0fc4ff4f-f02b-46fa-96f4-f23d255c9c45",
    "created_at": "2023-12-28T13:58:59.653843"
  },
  "tenant_id": "63f752d1-8afd-4e2b-9dc8-f3c8ab881b0e",
  "topic": "created_payment"
}

Payment Status

Return value Description
approved Payment approved
pending Payment pending approval
reversed Payment refunded to buyer
canceled Payment canceled