Test event
Sends a ping event signed with the secret to the webhook address and returns the delivery result.
POST /webhooks/{id}/test
- Key Permission:
webhooks:write - Key: test or live
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
integer | yes | Webhook number (numeric, the id field from the response). |
Important to know
- В ответе итог отправки:
delivered,pending(будет повтор) илиfailed. Проверка подписи описана в разделе «Вебхуки».
Request example
curl -X POST https://api.shippickup.com/v1/webhooks/12/test \
-H "Authorization: Bearer $SHIPPICKUP_API_KEY"<?php
$ch = curl_init('https://api.shippickup.com/v1/webhooks/12/test');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SHIPPICKUP_API_KEY'),
],
]);
$response = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
print_r([$status, $response]);
import os
import requests
r = requests.post(
"https://api.shippickup.com/v1/webhooks/12/test",
headers={
"Authorization": "Bearer " + os.environ["SHIPPICKUP_API_KEY"],
},
timeout=30,
)
print(r.status_code, r.json())
const res = await fetch("https://api.shippickup.com/v1/webhooks/12/test", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SHIPPICKUP_API_KEY}`,
},
});
console.log(res.status, await res.json());
Response example 200
JSON
{
"data": {
"event": "ping",
"id": 1842,
"status": "delivered",
"attempts": 1,
"response_code": 200,
"created_at": "2026-12-05T08:30:02+00:00",
"delivered_at": "2026-12-05T08:30:03+00:00",
"next_attempt_at": null
}
}Possible errors
| HTTP | Code | Description |
|---|---|---|
| 404 | not_found | Object not found among your account's objects (order, address, invoice, webhook, member, or team invitation), or the order has no active pickup, or the method does not exist. Objects belonging to others appear as non-existent. |
| 403 | insufficient_scope | Key lacks the required permission, specified in error.details.required_scope. |
| 429 | rate_limited | Key request limit exceeded. Retry after the time specified in the Retry-After header. |