Skip to main content
POST
/
dev
/
v1
/
webhooks
Create webhook
curl --request POST \
  --url https://api.shoppex.io/dev/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://app.example.com/webhooks/shoppex",
  "events": [
    "order:paid",
    "payment:completed"
  ]
}
'
{
  "data": {
    "id": "11111111-1111-4111-8111-111111111111"
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

data
object