Create target

Creates a webhook target or callback URL for listening to events. The webhook target can be used to listen to multiple events from multiple accounts.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
👍

How to use this endpoint

If you use the same webhook URL across all your merchants’ integrations, you can create this target once for your app, using any valid access token.

📘

Only https:// URLs are accepted. Sending the same URL again creates a second target; it doesn't return an error.

Path Params
string
required

Your app's client ID: the 32-character ID you received when you registered your app, the same value you send as client_id to Generate Access Token. It isn't the numeric app ID: that returns 403 {"message": "Forbidden"}.

Body Params
webhook_target
object
required

The callback URL listening to events

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json