Webhook Subscriptions

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-webhook-subscriptions"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/8442a13a-2423-46ba-aed3-5246cf0e45e8/social-card.svg?v=4bd9898cfc89" alt="Webhook Subscriptions" width="600" height="315"></a>
GET https://shippified.net/api/webhook-subscriptions

List your outbound webhook subscriptions.

Parameters

limit
integer
query
offset
integer
query

Code samples

cURL
curl -X GET "https://shippified.net/api/webhook-subscriptions"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{}
POST https://shippified.net/api/webhook-subscriptions

Create a subscription. Returns the raw signing secret exactly once.

Request body

application/json
url
string
required
eventTypes
object[]
required
active
boolean
{
  "url": "string",
  "eventTypes": [
    "order.created"
  ],
  "active": true
}

Code samples

cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions" \
  -H "Content-Type: application/json" \
  -d '{"url":"string","eventTypes":["order.created"],"active":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Created. The secret field is only present in this response.
{}
400 Invalid url or eventTypes.
403 Called with a read-only API key.
{
  "error": "string"
}
429 Subscription limit reached (25 per workspace).
GET https://shippified.net/api/webhook-subscriptions/{id}

Get one subscription.

Parameters

id
string
path
required

Code samples

cURL
curl -X GET "https://shippified.net/api/webhook-subscriptions/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "id": "string",
  "userId": "string",
  "url": "string",
  "prefix": "string",
  "eventTypes": [
    "order.created"
  ],
  "active": true,
  "failureCount": 0,
  "needsSecretRotation": true,
  "lastFiredAt": "2024-01-01T00:00:00Z",
  "lastError": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
404 Not found.
DELETE https://shippified.net/api/webhook-subscriptions/{id}

Delete subscription.

Parameters

id
string
path
required

Code samples

cURL
curl -X DELETE "https://shippified.net/api/webhook-subscriptions/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Deleted.
403 Called with a read-only API key.
{
  "error": "string"
}
404 Not found.
PATCH https://shippified.net/api/webhook-subscriptions/{id}

Update url / eventTypes / active. A new url goes through the same validation as create (private / loopback targets are rejected in production); the signing secret is unchanged.

Parameters

id
string
path
required

Request body

application/json
url
string
eventTypes
object[]
active
boolean
{
  "url": "string",
  "eventTypes": [
    "order.created"
  ],
  "active": true
}

Code samples

cURL
curl -X PATCH "https://shippified.net/api/webhook-subscriptions/{id}" \
  -H "Content-Type: application/json" \
  -d '{"url":"string","eventTypes":["order.created"],"active":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Updated.
{
  "id": "string",
  "userId": "string",
  "url": "string",
  "prefix": "string",
  "eventTypes": [
    "order.created"
  ],
  "active": true,
  "failureCount": 0,
  "needsSecretRotation": true,
  "lastFiredAt": "2024-01-01T00:00:00Z",
  "lastError": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
400 Invalid url or eventTypes.
403 Called with a read-only API key.
{
  "error": "string"
}
404 Not found.
POST https://shippified.net/api/webhook-subscriptions/{id}/test

Send a synthetic event so you can verify your receiver round-trip.

Parameters

id
string
path
required

Request body

application/json
eventType
string
Event types our outbound webhooks can dispatch.
{
  "eventType": "order.created"
}

Code samples

cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions/{id}/test" \
  -H "Content-Type: application/json" \
  -d '{"eventType":"order.created"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Receiver round-trip result (does not count toward failureCount).
{
  "ok": true,
  "status": 0,
  "error": "string"
}
403 Called with a read-only API key.
{
  "error": "string"
}
POST https://shippified.net/api/webhook-subscriptions/{id}/rotate-secret

Rotate the signing secret. Returns the new raw secret once.

Parameters

id
string
path
required

Code samples

cURL
curl -X POST "https://shippified.net/api/webhook-subscriptions/{id}/rotate-secret"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Rotated. The secret field is only present in this response.
{}
403 Called with a read-only API key.
{
  "error": "string"
}
Updated