Skip to main content
PUT
/
webhooks
/
{id}
Update Webhook
curl --request PUT \
  --url https://api.loopreturns.com/api/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "topic": "return",
  "trigger": "return.created",
  "url": "<string>",
  "status": "active"
}
'
{
  "error": {
    "code": "<string>",
    "http_code": "<string>",
    "message": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.loopreturns.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization

Path Parameters

id
integer
required

The webhook's unique identifier.

Body

application/json
topic
enum<string>
required

The webhook's topic.

Available options:
return,
label,
restock,
label.request,
giftcard,
happy.returns.shipment
Example:

"return"

trigger
enum<string>
required

The condition which triggers the webhook.

Available options:
return.created,
return.updated,
return.closed,
label.created,
label.updated,
restock.requested,
label.request.issued,
label.request.cancelled,
giftcard.requested,
shipment.processed
Example:

"return.created"

url
string
required

The webhook's URL.

Example:

"https://example.com/webhook"

status
enum<string>

The webhook's status.

Available options:
active,
inactive

Response

No Content