Create a new webhook subscription.
curl --request POST \ --url https://api.loopreturns.com/api/v1/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "topic": "return", "trigger": "return.created", "url": "https://example.com/webhook", "status": "inactive" }'
{ "id": 12345, "shop_id": 65432, "topic": "return", "trigger": "return.created", "url": "https://example.com/webhook", "status": "active" }
OAuth 2.0 authorization
Success
The response is of type object.
object