{
"id": "whe_example",
"createdAt": "2024-12-10T14:16:44",
"updatedAt": "2024-12-10T14:16:44",
"scheduledAt": null,
"processedAt": null,
"status": "PENDING",
"operation": "INSERT",
"payload": {
"new": {
"id": "cari_example",
"tenant_id": "ten_example",
"invoice_number": "INV123",
"shipment": {
"id": "ship_example",
"shipment_number": "SHIP123"
},
"status": "RECEIVED",
"shipment_id": "ship_example"
},
"old": null
},
"table": "carrier_invoices",
"webhookSubscriptionId": "whs_example",
"resourceId": "cari_example",
"retryOfId": null,
"retries": [],
"trigger": "create.carrier_invoice.shipment_updated"
}Handle carrier invoice creation with shipment information
Carrier invoice creation with a shipment_id column. Read the current shipment lookup from payload.new.shipment (possibly null).
{
"id": "whe_example",
"createdAt": "2024-12-10T14:16:44",
"updatedAt": "2024-12-10T14:16:44",
"scheduledAt": null,
"processedAt": null,
"status": "PENDING",
"operation": "INSERT",
"payload": {
"new": {
"id": "cari_example",
"tenant_id": "ten_example",
"invoice_number": "INV123",
"shipment": {
"id": "ship_example",
"shipment_number": "SHIP123"
},
"status": "RECEIVED",
"shipment_id": "ship_example"
},
"old": null
},
"table": "carrier_invoices",
"webhookSubscriptionId": "whs_example",
"resourceId": "cari_example",
"retryOfId": null,
"retries": [],
"trigger": "create.carrier_invoice.shipment_updated"
}Authorizations
Your API key, sent in the Authorization header: Authorization: YOUR_API_KEY. A Bearer prefix is also accepted (Authorization: Bearer YOUR_API_KEY). Keys are created in the Upwell dashboard (Account ā API keys) and are scoped to one organization.
Body
Details of the carrier invoice shipment creation
The unique identifier for the event.
Trigger. See the schema for its JSON type and allowed values.
create.carrier_invoice.shipment_updated 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.
Delivery status of the event.
Operation. See the schema for its JSON type and allowed values.
INSERT Source table for this delivery, such as carrier_invoices.
The unique identifier for the resource affected by the event.
The unique identifier for the webhook subscription.
The ID of the event being retried, if applicable.
An array of retry attempts for the event.
Show child attributes
Show child attributes
Payload. See the schema for its JSON type and allowed values.
Show child attributes
Show child attributes
Response
Return a 200 status to indicate that the data was received successfully

