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:
| Setting | Value |
|---|---|
| URL | https://partners.99digital.co.il/api/settings/getWebhook |
| Method | GET |
| Header | Authorization: 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:
| Parameter | Description |
|---|---|
status | OK or FAIL. "OK" means the request was successful. "FAIL" means error. |
url | The webhook URL. Empty when no webhook is set. |
reason | The status explanation — see below. |
| Reason | Explanation |
|---|---|
| 1 | Not FAIL. The status is OK. |
| 2 | Wrong 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). |
| 3 | Access token does not exist or expired. Please generate another one with Access Token. |
| 4 | Server error, try again. |
| 13 | You 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
- 200
The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.