2 augustus 2024
Create webhook
POST
https://api.pack.cloud/v1/organizations/{organizationId}/webhooks
Request
Path parameters
organizationIdstring
Payload
event_codestringrequired
The subscribed event
Allowed values:order.canceledorder.createdorder.shipped
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledboolean
Response
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource
Created
Body
idstringrequired
ID of the webhook subscription
event_codestring
The subscribed event
Example:orders.created
endpointstringrequired
The endpoint to sent the event data to
Example:https://myapp.packcloud.local/order-created
secretstringrequired
The secret used for signing the webhook request
Example:q9NhjkjV9o
enabledbooleanrequired
created_atstringrequired
Creation time of resource
updated_atstringrequired
Latest update time of resource