Pitney Locker APIs
/Locker Webhook APIs
//
Get Webhook details by Id
This operation gets the webhook details
Security
bearerAuth
- Sandbox Server for Webhook API'shttps://api-sandbox.sendpro360.pitneybowes.com/webhook/api/v1/webhookConfig/{webHookConfigID}
- Production Server for Webhook API's (uses live data)https://api.sendpro360.pitneybowes.com/webhook/api/v1/webhookConfig/{webHookConfigID}
curl -i -X GET \
'https://api-sandbox.sendpro360.pitneybowes.com/webhook/api/v1/webhookConfig/{webHookConfigID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Webhook details retrieved successfully
It indicates the type of webhook. Currently it takes tracking and lockeras value. These event codes are supported for the defined type:
| type | supported events |
|---|---|
| locker | reservation, cancelreservation, deposit, pickup, stalemailpickup |
| tracking | Manifest, Acceptance, InTransit, DeliveryAttempt, OutForDelivery, Delivered, Exception, ReturnToSender, ReadyForPickup, PickupMissed, PickedUp |
Enum:"locker""tracking"
Example:"locker"
It shows the timeout value untill which it waits to receive response from the customer url, here timeout indicates in seconds.
Example:5
Response
- custom
- basic
- OAuth
{ "webHookConfigID": "DELn75Jx7r3p", "name": "dev_webhook1", "type": "locker", "events": [ "reservation", "cancelreservation", "deposit" ], "url": "https://webhook.com", "authParams": { "authType": "custom", "apiKey": "JsuG7jk", "headerName": "webhook1" }, "timeOut": 5, "status": "active", "developerPartnerId": "xxxxxx" }