{
"id": "whe_example",
"createdAt": "2024-11-17T22:41:42.392204",
"updatedAt": "2024-11-17T22:41:42.392204",
"scheduledAt": null,
"processedAt": null,
"status": "PENDING",
"operation": "UPDATE",
"payload": {
"carrierInvoice": {
"id": "cari_example",
"status": "APPROVED",
"currency": "USD",
"createdAt": "2024-11-17T22:41:42.392204Z",
"exceptionsLastEvaluatedAt": null,
"invoiceNumber": "INV-2000",
"carrierProNumber": null,
"customerPoNumber": null,
"billOfLadingNumber": null,
"customerReferenceNumber": null,
"issueDate": null,
"dueDate": null,
"additionalReferenceNumbers": null,
"totalAmount": 213335,
"shipment": {
"id": "shi_example",
"shipmentNumber": "SH-1000"
},
"bill": {
"id": "bil_example",
"createdAt": "2024-11-17T22:41:42.392204Z",
"currency": "USD",
"proNumber": "PRO-1000",
"sourceSystem": "API",
"issueDate": null,
"dueDate": null,
"notes": null,
"terms": null,
"checkOrAchNumber": null,
"sourceSystemId": null,
"totalAmount": 213335,
"carrier": {
"id": "car_example",
"name": "Example Freight",
"sourceSystem": "API",
"sourceSystemId": "C-10"
},
"vendor": null
}
}
},
"table": "carrier_invoices",
"webhookSubscriptionId": "whs_example",
"resourceId": "cari_example",
"retryOfId": null,
"retries": [],
"trigger": "update.carrier_invoice.status.APPROVED"
}Handle carrier invoice status approved events
Read the invoice fetched at dispatch in payload.carrierInvoice. A first payment recording approval also fires this trigger. The current invoice can be PAID or PART_PAID. A missing invoice is returned as null. Upwell suppresses this notification on the follow-through status update for an outbound approval request.
{
"id": "whe_example",
"createdAt": "2024-11-17T22:41:42.392204",
"updatedAt": "2024-11-17T22:41:42.392204",
"scheduledAt": null,
"processedAt": null,
"status": "PENDING",
"operation": "UPDATE",
"payload": {
"carrierInvoice": {
"id": "cari_example",
"status": "APPROVED",
"currency": "USD",
"createdAt": "2024-11-17T22:41:42.392204Z",
"exceptionsLastEvaluatedAt": null,
"invoiceNumber": "INV-2000",
"carrierProNumber": null,
"customerPoNumber": null,
"billOfLadingNumber": null,
"customerReferenceNumber": null,
"issueDate": null,
"dueDate": null,
"additionalReferenceNumbers": null,
"totalAmount": 213335,
"shipment": {
"id": "shi_example",
"shipmentNumber": "SH-1000"
},
"bill": {
"id": "bil_example",
"createdAt": "2024-11-17T22:41:42.392204Z",
"currency": "USD",
"proNumber": "PRO-1000",
"sourceSystem": "API",
"issueDate": null,
"dueDate": null,
"notes": null,
"terms": null,
"checkOrAchNumber": null,
"sourceSystemId": null,
"totalAmount": 213335,
"carrier": {
"id": "car_example",
"name": "Example Freight",
"sourceSystem": "API",
"sourceSystemId": "C-10"
},
"vendor": null
}
}
},
"table": "carrier_invoices",
"webhookSubscriptionId": "whs_example",
"resourceId": "cari_example",
"retryOfId": null,
"retries": [],
"trigger": "update.carrier_invoice.status.APPROVED"
}Authorizations
Body
Details that are sent over to the webhook
Timestamp when this record was created in Upwell. It is not the business document date and may be much later when historical data is imported. See createdAt definition.
Timestamp of the record's latest recorded update in Upwell. It is not a shipment event, payment date, or document revision date. See updatedAt definition.
Timestamp when the asynchronous job is scheduled to run. It is not a promise of completion at that time. See scheduledAt definition.
Timestamp recorded for processing the event or job. It is separate from the event's underlying business date. See processedAt definition.
Deprecated source table, such as carrier_invoices. Still included for compatibility with existing receivers. Migrate payload parsing and routing to trigger and correlate on resourceId. No removal date is scheduled; a future sunset date will be documented and communicated before removal.
Response
Return a 200 status to indicate that the data was received successfully

