# Webhook updates beta

Payment updates sent to the endpoint informed in the notification_url when creating the payment.

POST https://your-website.com/endpoint

# Parameters

# Body

Parameter Type Description
id * string unique event id
type * string The type of event, only payment.updated for now
object * string Type of the object in the payload, only payment for now
payload * object The actual object on the event is based on. For payment object see Payment object
created_at * Date Date and time the event happened

# Example

# Sample webhook call

{
  "id": "asdf-SFo6b4jxY-ViybLJ",
  "type": "payment.updated",
  "object": "payment",
  "payload": {
    "id": "61a000337bfac100b6f68123",
    "reference_id": "413270023",
    "amount_charged": 6.01,
    "amount_charged_currency": "BRL",
    "amount": 1,
    "currency": "USD",
    "country": "BR",
    "notification_url": "https://your-website.com/endpoint",
    "card_statement_descriptor": "",
    "live_mode": false,
    "merchant_id": "asdfkljjhlkj-asdf-4650-asdf-3850asdfbd4",
    "payment_method_id": "card",
    "status": "approved",
    "user_id": "User",
    "created_at": "2021-11-25T21:29:24.002Z",
    "updated_at": "2021-11-25T21:30:56.741Z"
  },
  "created_at": "2021-11-25T21:30:56.741Z"
}