AfP Created
Event Type
afp_created
Summary
Sent when a non-draft application for payment is created, including individual and bulk generation. Drafts and preview generation do not send this event.
Access
Company and agency webhooks are supported. Agency delivery is limited to the associated agency and excludes MSP-to-client or receivable billing records. Draft AfPs do not send events. A follow-up read requires read:invoices and access to the record.
Delivery
Requidex sends a signed POST request with Content-Type: application/json to the configured webhook URL. Return a 2xx response after accepting the event for processing. Duplicate or out-of-order deliveries are possible; deduplicate by event ID.
See delivery headers, signature verification and retry handling for the shared contract. The webhook signing secret is separate from an API key used to fetch the record.
Payload Fields
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Stable event ID, reused for delivery retries |
| type | string | Yes | afp_created |
| createdAt | string | Yes | Event creation time in ISO 8601 UTC format |
| data | object | Yes | Resource reference; not a snapshot Show child attributes
|
| test | boolean | No | Present and true for test deliveries; the resource ID is test |
Payload Example
{
"id": "evt_0123456789abcdef0123456789abcdef",
"type": "afp_created",
"createdAt": "2026-10-30T12:00:00.000Z",
"data": {
"afp": {
"id": "507f1f77bcf86cd799439011"
}
}
}
Read the Affected Record
Use data.afp.id with GET /afps/{id} to read the current record.
The follow-up API request uses your API key and the endpoint’s scope and access rules. A webhook subscription does not grant additional API access. Test deliveries include test: true and use the resource ID test; do not fetch a business record for those deliveries.