Skip to main content
WEBHOOK

Event Types

  • PAYMENT_METHOD.CREATED - A new payment method has been created
  • PAYMENT_METHOD.UPDATED - Payment method information has been updated
  • PAYMENT_METHOD.DELETED - A payment method has been deleted

Sample Payloads

Payment Method Created

Payment Method Updated

Payment Method Deleted

Body

application/json
id
string<uuid>
required

Unique ID of this event. Every delivery attempt of the same event carries the same id, so use it to ignore a delivery you have already processed.

Example:

"8f14e45f-ceea-4e7a-9f1d-6b1c2a3d4e5f"

event
enum<string>
required

Identifies which payment method event occurred

Available options:
PAYMENT_METHOD.CREATED,
PAYMENT_METHOD.UPDATED,
PAYMENT_METHOD.DELETED
Example:

"PAYMENT_METHOD.UPDATED"

createdAt
string<date-time>
required

When Afriex created the event. Retries keep this value, and the signature covers it, so you can reject a delivery that is older than you expect.

Example:

"2026-04-24T09:13:33.883Z"

data
object
required

The payment method data relevant to this event, with the fields of the REST PaymentMethod. Unlike the REST response, institution, transaction and recipient carry every subfield stored with the payment method (see PaymentMethodInstitution and PaymentMethodRecipient), including recipientIdType and recipientIdNumber. Empty values (empty strings, null and empty objects, at every depth) are omitted, so meta, institution, transaction and recipient appear only when they carry something. CARD-channel payment methods omit accountName/accountNumber/institution and instead include card fields (last4, brand, expiration, cardName); dynamic virtual accounts may additionally include expiresInMinutes, amount, and extra.

Response

Acknowledge receipt. Return any 2xx status code quickly. Response body is ignored.