Skip to main content

Get Webhook

GET 

/settings/getWebhook

Part 2: get the webhook address. Get Webhook allows you to see the partner webhook URL you set.

The URL is empty until you set one with Set Webhook. See Webhook for what is sent to it.

Settings:

SettingValue
URLhttps://partners.99digital.co.il/api/settings/getWebhook
MethodGET
HeaderAuthorization: Bearer <access_token> — the access token is received from Access Token.

Body: nothing, leave it empty. There are no parameters either: the access token tells us your partner account.

Response:

{
"status": "OK",
"url": "https://your-server.example.com/99digital/partners-webhook",
"reason": 1
}

Response explained:

ParameterDescription
statusOK or FAIL. "OK" means the request was successful. "FAIL" means error.
urlThe webhook URL. Empty when no webhook is set.
reasonThe status explanation — see below.
ReasonExplanation
1Not FAIL. The status is OK.
2Wrong credentials: the Authorization header is missing or not Bearer <token>, or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected).
3Access token does not exist or expired. Please generate another one with Access Token.
4Server error, try again.
13You need to use the GET method.

Remarks​

  • Call it with GET. Other methods answer with HTTP 405 (Method Not Allowed).
  • Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2.

Responses​

The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.