Skip to content

Get a webhook subscription by id

GET
/api/v1/vendor/webhooks/{id}
curl --request GET \
--url https://api-omni.linra.net/api/v1/vendor/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Retrieves one of the calling vendor’s own webhook subscriptions. Never returns a secret. Requires the Orders capability.

id
required
string format: uuid

The subscription.

Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
id
string format: uuid
vendorId
string format: uuid
url
string format: uri
eventTypes
Array<string>
Allowed values: vendor.order.assigned vendor.offer.review-decision
isActive
boolean
lastDeliveryAt
string format: date-time
nullable
lastDeliveryStatus
string
nullable
createdAt
string format: date-time
nullable
Example
{
"state": "SUCCESS",
"payload": {
"eventTypes": [
"vendor.order.assigned"
]
}
}

Your token doesn’t carry the capability this endpoint requires.

Media typeapplication/json
object
state
required
string
payload
details
object
Examples
ExamplemissingCapability
{
"state": "FORBIDDEN_CAPABILITY_NOT_GRANTED",
"payload": null,
"details": {
"requiredCapability": "Orders"
}
}

Unknown subscription id.

Media typeapplication/json
object
state
required
string
payload
details
object
Examples
ExamplenotFound
{
"state": "NOT_FOUND_VENDOR_WEBHOOK_SUBSCRIPTION",
"payload": null,
"details": {}
}

Too many requests. Retry after the Retry-After header (seconds).

Media typeapplication/json
object
state
required
string
payload
details
object
Example
{
"state": "NOT_FOUND_VENDOR_OFFER"
}
Retry-After
integer

Seconds to wait before retrying.