List the calling vendor's webhook subscriptions
GET
/api/v1/vendor/webhooks
const url = 'https://api-omni.linra.net/api/v1/vendor/webhooks?page=1&pageSize=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-omni.linra.net/api/v1/vendor/webhooks?page=1&pageSize=20' \ --header 'Authorization: Bearer <token>'Lists every webhook subscription owned by the calling vendor. Never returns a secret. No activeOnly filter — the subscription cap is small and you benefit from seeing inactive ones too. Requires the Orders capability.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
pageSize
integer
Responses
Section titled “Responses”A page of webhook subscriptions.
Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
items
Array<object>
object
id
string format: uuid
vendorId
string format: uuid
url
string format: uri
eventTypes
Array<string>
isActive
boolean
lastDeliveryAt
string format: date-time
lastDeliveryStatus
string
createdAt
string format: date-time
pagination
object
page
integer
pageSize
integer
totalCount
integer
totalPages
integer
Example
{ "state": "SUCCESS", "payload": { "items": [ { "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" }}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"}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.