Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fourvenues.com/llms.txt

Use this file to discover all available pages before exploring further.

The payment.success event is sent when a payment is successfully processed. This event contains information about the payment and the resources that were affected by the payment.

Event Payload

The payload of the payment.success event contains the following fields:
  • payment_id: The unique identifier of the payment.
  • resource_type: The type of resource that was affected by the payment. Now it’s always ticket. In the future may be extended.
  • resource_ids: An array of unique identifiers of the resources that were affected by the payment.
  • metadata: Free-form metadata that you passed when creating the payment.
  • send_resources: A boolean value that indicates if you asked Fourvenues to send the resources via email, SMS or / and WhatsApp(r).
{
  "id": "5f7b1b3b-7b7b-4b7b-8b7b-9b7b1b3b7b7b",
  "event": "payment.success",
  "payload": {
    "payment_id": "5f7b1b3b-7b7b-4b7b-8b7b-9b7b1b3b7b7b",
    "resource_type": "ticket",
    "resource_ids": [
      "5f7b1b3b-7b7b-4b7b-8b7b-9b7b1b3b7b7b"
    ],
    "metadata": {
      "internal_id": "random-internal-id",
    },
    "send_resources": true
  }
}