- Authentication
- Rates
- Shipments
- Tracking
- Batches
- Classifications
- Customer
- Landed Cost
- Manifest
- Webhooks
- Invoices
Subscribe Webhooks
POST
/Webhooks/Subscribe
Webhooks
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Reference
string
optional
>= 1 characters<= 30 characters
WebHooksList
array[object (WebHookInfo) {2}]
required
EventName
enum<string>
required
Allowed values:
SHIPMENT_CREATEDSHIPMENT_COMPLETEDSHIPMENT_CANCELLEDSHIPMENT_CANCELLATION_ERRORSHIPMENT_ERRORRETURN_SHIPMENT_CREATEDRETURN_SHIPMENT_ERRORRETURN_SHIPMENT_CANCELLEDTRACKING_UPDATESORDER_PLACEDCONSOLIDATE_SHIPMENT_CREATEDCONSOLIDATE_SHIPMENT_ERROR
Default:
URL
string
required
Example
{
"Reference": "subscribe-webhook-001",
"WebHooksList": [
{
"EventName": "SHIPMENT_CREATED",
"URL": "www.test.com"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partnerapi.flavorcloud.com/Webhooks/Subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"Reference": "subscribe-webhook-001",
"WebHooksList": [
{
"EventName": "SHIPMENT_CREATED",
"URL": "www.test.com"
}
]
}'
Responses
🟢200Subscribe Webhooks Response
application/json
Body
Reference
string
required
Status
string
required
Message
string
required
Example
{
"Reference": "string",
"Status": "string",
"Message": "string"
}
🟠401Authentication Error
🟠422Validation Error
🔴500Error Response
Modified at 2025-04-28 20:51:30