Axiym

Webhooks overview

View Markdown

Webhooks notify your service when a PNSL resource changes. Axiym sends an HTTP POST with a signed JSON event to a URL you register.

How it works

  1. Register an endpoint. Give Axiym the HTTPS URL that should receive events; see Register and manage subscriptions.
  2. Receive events. Axiym POSTs a JSON envelope (id, timestamp, type, data) whenever a resource changes. Preserve the raw request body for verification.
  3. Verify the delivery. Every delivery is signed with Ed25519 over the raw request body; the headers X-Signature, X-Key-Id, and X-Algorithm: Ed25519 identify the signature and key. See Verify signatures.
  4. Store and acknowledge. After verification, durably store the event, then respond 2XX to acknowledge it.
  5. Process the event. Deduplicate by id and read the resource for its current state.

Events

EventWhat happened
client.createdAn onboarding case was submitted; the client is ONBOARDING.
client.updatedA client attribute changed.
client.activatedOnboarding was approved; the client is ACTIVE.
client.disabledThe client is DISABLED.
credit-account.createdA credit account was provisioned for the client.
credit-account.updatedA credit account amount or status changed.
receivable.createdA funding request was accepted; the receivable is PENDING.
receivable.disbursedThe disbursement settled; the receivable is ACTIVE.
receivable.repaidA repayment settled; currentPrincipal went down.
receivable.settledThe receivable is fully repaid (PAID).
receivable.canceledThe receivable is CANCELED.
subscription.testSent by POST /webhooks/subscriptions/{subscriptionId}/tests.

client.onboarding-finished is a legacy duplicate of client.activated; new integrations can ignore it. Your subscription receives every event Axiym emits for you, including types not listed here; ignore unknown types.

Payloads and schemas are in the Events reference.

Delivery

Verify the delivery before durably storing and acknowledging it with 2XX, then process it. Deliveries can repeat: acknowledge verified duplicates that are already stored, but do not process them again. Events report a change; read the resource for its current state.