Get business settings
GET/settings/getBusiness
Get the business data of your partner account: your business name and the default texts and logo of your onboarding links.
Change the settings with Set business settings; Business settings explains where each one is shown.
Settings
| Setting | Value |
|---|---|
| URL | https://partners.99digital.co.il/api/settings/getBusiness |
| Method | JSON via GET |
| Header | Authorization: Bearer {{access_token}} — the access token can be received from the Access Token API. |
Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2.
Body
Nothing — leave it empty. There are no parameters either: the access token tells us your partner account.
Response
{
"status": "OK",
"business_name": "Your business name",
"onboarding_logo": "https://www.example.com/images/onboarding-logo.png",
"onboarding_message": "ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.",
"onboarding_button": "לחץ כאן להתחלה",
"onboarding_success": "הפעלת הקו הושלמה בהצלחה",
"onboarding_failed": "תקלה. אנא נסה שנית",
"reason": 1
}
Response explained
| Parameter | Description |
|---|---|
status | OK or FAIL. "OK" means the request was successful. "FAIL" means error. |
business_name | The business name. This value can't be changed with the setBusiness API. |
onboarding_logo | The onboarding logo HTTPS link that is used by default. |
onboarding_message | The onboarding message that shows by default. |
onboarding_button | The button text that shows by default. |
onboarding_success | The success message, when the onboarding completed successfully. |
onboarding_failed | The failed message, when the onboarding failed. |
reason | The status explanation — see the table 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 | The access token does not exist or has expired. Please generate another one with the Access Token API. |
| 4 | Server error, try again. |
| 13 | You need to use the GET method. |
Remarks
- A setting that was never set is empty, and the onboarding page shows its built-in default instead (see Business settings).
- Call it with GET. Other methods answer with HTTP 405 (Method Not Allowed).
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.