List webhooks
GET
/webhooks
const url = 'https://api.oletapp.com/your-store/v1/webhooks';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.oletapp.com/your-store/v1/webhooks \ --header 'Authorization: Bearer <token>'Returns the webhooks created by this credential, at most 50, so there is never a next page. A credential sees only its own webhooks. The secret is always null here; it is shown once, when the webhook is created. Deliveries follow the Webhooks guide.
Requires scope: any
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List webhooks
Media typeapplication/json
object
data
required
Array<object>
object
created_at
required
string format: date-time
event
required
One of: sale.completed, sale.refunded, customer.created, customer.updated, customer.deleted, product.created, product.updated, product.deleted, inventory.updated.
string
id
required
string format: uuid
secret
required
The signing secret. Present only on the response that creates the webhook, null everywhere else.
string | null
status
required
string
target_url
required
string
has_more
required
boolean
next_cursor
required
Opaque pagination cursor. Pass back as ?cursor= to fetch the next page.
string | null
Example
{ "data": [ { "status": "active" } ]}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}