AP mass payment notification payloads
When you subscribe to a BILL event and the event triggers, BILL sends a notification to your provided notificationUrl. See /v3/payments in the API reference for more information about the request and response fields.
Sample mass-payment.updated payloads
mass-payment.updated payloadsThe unescaped JSON payload provides a set of mass-payment fields.
You getmass-payment.updatednotifications when thebatchStatuschangesWhen a mass payment is created, BILL sends you
mass-payment.updatednotifications when the paymentbatchStatusvalue changes.
| Field | Description |
|---|---|
paymentBatchId | BILL-generated ID of the mass payment batch. The value begins with bbq. |
batchStatus | Mass payment batch status (SCHEDULED or COMPLETED) |
count | Count of the payments based on the current status of each payment in the mass payment batch.
|
updatedTime | Updated date and time. This is the time when batchStatus is updated |
When a mass payment is created
In this sample unescaped JSON payload, the details of an AP mass payment batch are available. When a mass payment is created, a mass payment batch ID is available. In addition, batchStatus is set as SCHEDULED. All other fields are included in the mass-payment.updated payload.
{
"metadata": {
"eventId": "{event_id}",
"subscriptionId": "{subscription_id}",
"organizationId": "{organization_id}",
"eventType": "mass-payment.updated",
"version": "1"
},
"mass-payment": {
"paymentBatchId": "{mass_payment_batch_id}",
"batchStatus": "SCHEDULED",
"count": {
"scheduled": 3,
"failed": 0,
"completed": 0,
"total": 3
},
"updatedTime": "2026-12-16T23:56:52.127+00:00"
}
}
Subscribe tomass-payment.updatedandpayment.updatedfor notifications in the payment lifecycleWhen you subscribe to
mass-payment.updated, you get notifications about updates in the mass payment batch. When BILL has successfully generated a paymentidvalue and API response for each valid payment in the batch, thebatchStatusis set asCOMPLETED.Your
payment.updatedsubscription gives you notifications after the mass payment batch is complete. When BILL begins processing each payment based on the paymentprocessDate, you start receivingpayment.updatednotifications for each payment.See AP payment notification payloads in the Guides section to learn about the sample AP payment notification payloads and different payment
statusvalues.
When there is an update in the mass payment batch
When BILL has successfully generated a payment id value and API response for each valid payment in the batch, the count information is updated. The count includes the number of all completed and failed payments in the batch.
In addition, batchStatus is set as COMPLETED. All other fields are included in the mass-payment.updated payload.
{
"metadata": {
"eventId": "{event_id}",
"subscriptionId": "{subscription_id}",
"organizationId": "{organization_id}",
"eventType": "mass-payment.updated",
"version": "1"
},
"mass-payment": {
"paymentBatchId": "{mass_payment_batch_id}",
"batchStatus": "COMPLETED",
"count": {
"scheduled": 0,
"failed": 1,
"completed": 2,
"total": 3
},
"updatedTime": "2026-12-17T23:56:52.127+00:00"
}
}Updated about 1 hour ago
