Skip to main content

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​

SettingValue
URLhttps://partners.99digital.co.il/api/settings/getBusiness
MethodJSON via GET
HeaderAuthorization: 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​

ParameterDescription
statusOK or FAIL. "OK" means the request was successful. "FAIL" means error.
business_nameThe business name. This value can't be changed with the setBusiness API.
onboarding_logoThe onboarding logo HTTPS link that is used by default.
onboarding_messageThe onboarding message that shows by default.
onboarding_buttonThe button text that shows by default.
onboarding_successThe success message, when the onboarding completed successfully.
onboarding_failedThe failed message, when the onboarding failed.
reasonThe status explanation — see the table 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).
3The access token does not exist or has expired. Please generate another one with the Access Token API.
4Server error, try again.
13You 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​

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