curl --request POST \
--url https://panel.sendcloud.sc/api/v3/event-subscriptions/broadcast/test/{subscription_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phase": "delivered",
"exception": "none",
"sub_status": "signature"
}
'{
"data": {
"success": true,
"status_code": 200,
"response_body": "OK"
}
}Broadcast test event
Send a test event to the connection endpoint configured for a specific subscription. Use this to verify that your connection is set up correctly before relying on it for production events.
curl --request POST \
--url https://panel.sendcloud.sc/api/v3/event-subscriptions/broadcast/test/{subscription_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phase": "delivered",
"exception": "none",
"sub_status": "signature"
}
'{
"data": {
"success": true,
"status_code": 200,
"response_body": "OK"
}
}write:event-subscription. See Scopes for OAuth apps.event_type calculated with a support investigation phase or sub_status. The test event can’t be built, so nothing is sent and the response has data.success false.
Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Path Parameters
The id of the subscription to send a test event to.
Body
Optional overrides for the test event. An omitted field gets a random value. The combination of values is not checked.
The kind of tracking event to send. Only applies to parcels.event.created subscriptions.
carrier, calculated "calculated"
Overrides the event phase. A support investigation phase sends a claim event. Only applies to parcels.event.created subscriptions.
accepted, announced, announcing, attempted, cancelled, customs, delivered, delivery_forced, dropped, in_delivery, in_transit, labelled, no_label, none, pup, ready_to_send, sorted, unknown "in_transit"
Overrides the event exception. With event_type calculated, one of claimable, calculated_delivery_delay, calculated_handover_delay, off_radar or pup_expiration picks the calculated event. Only applies to parcels.event.created subscriptions.
address_error, announcement_failed, calculated_delivery_delay, calculated_handover_delay, cancellation_failed, cancelled, cancelled_upstream, cancelling, cancelling_upstream, changed, claim, claimable, customer_rejected, customer_support, customs_issue, damaged, delay_unknown, delivery_delay, dropoff_expiration, handover_delay, hold, missing, none, non_conformity, off_radar, pup_expiration, refused, relabelled, returned_sender, sorting_delay, unknown "none"
Overrides the event sub status. A support investigation sub status sends a claim event. Only applies to parcels.event.created subscriptions.
accepted, additional_information, carrier, company_closed, connection_missed, content, cut_off, damaged, delay, delivery_change, disposed, documents, duplicate, expired, high_volume, inaccessible, incorrect_information, in_progress, late, locker, mailbox, max_measure, max_weight, mechanical, misrouted, missort, neighbour, none, not_home, not_ordered, packaging, parcel_found, partly, passed, payment, postal_box, prohibited_item, pup, pup_closed, receiver, rejected, requested, resolved, safeplace, sender, shop, signature, traffic, undeliverable, unknown, unknown_receiver, updated, weather_conditions, 1, 2, 3 "none"
Overrides the customer email address.
"customer@example.com"
Response
OK
Test broadcast result
The result of a test event broadcast to a subscription's connection endpoint.
Show child attributes
Show child attributes