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>"
  }
}

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
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
url
string
required

The webhook's URL.

status
enum<string>

The webhook's status.

Available options:
active,
inactive

Response

No Content