Api doc


SDK's


Api Modules

group.accountsplit



Supported Methods:

CREATE
Params
  • token (Required): valid token
  • location (Required): integer
  • main_user_id (Required): integer
  • duplicate: enum (0, 1)
  • break_overlap_stuff: enum (0, 1)


Documentation

CREATE
Splits an individual group account from store into an new store.
Level 3 is required

--

Parameters:

  1. "location" required //Location id (integer)
  2. "main_user_id": required //Main user id (integer)
  3. "duplicate": accepted //Duplicate employees (enum[0,1])
  4. /* 0: Do not duplicate location (keep original)
  5.   * 1: Duplicate location (delete original)*/
  6. "break_overlap_stuff": accepted //Break overlap staff (enum[0,1])
  7. /* 0: Do not break overlap staff
  8.   * 1: Break overlap staff */
  9. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "method":"CREATE",
  3. "module":"group.accountsplit",
  4. "request":{
  5. "location":54217,
  6. "main_user_id":985,
  7. "duplicate":1,
  8. "break_overlap_stuff":1
  9. }
  10. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"131",
  5. "franchise":"131",
  6. "status":"1",
  7. "agent":"18587",
  8. "hunter":null,
  9. "level":"1",
  10. "price":"1",
  11. "timezone":"+05:00,0",
  12. "created":"1265595316",
  13. "deleted":"0",
  14. "created_day":"300",
  15. "name":"New Store",
  16. "domain":"new_store",
  17. "nemployees":"84",
  18. "logo":"1340388476",
  19. "address":"New Store Address",
  20. "country":"162",
  21. "state":"AZ",
  22. "phone_number":"",
  23. "fax_number":"",
  24. "user":"2",
  25. "start_day":"1",
  26. "end_day":"7",
  27. "start_time":"0",
  28. "end_time":"0",
  29. "24hr":"0",
  30. "overtime":"80",
  31. "industry":"6",
  32. "pref_admin_past_edit":"0",
  33. "pref_book_days_off":"1",
  34. "pref_book_days_off_adv":"-1",
  35. "pref_book_days_off_max":"33",
  36. "pref_confirm_trade_before":"1",
  37. "pref_confirm_trade_after":"1",
  38. "pref_sms":"1",
  39. "pref_email":"1",
  40. "pref_email_force":"0",
  41. "pref_pm":"1",
  42. "pref_visible_staff":"1",
  43. "pref_visible_staff_details":"0",
  44. "pref_visible_coworkers":"1",
  45. "pref_trade_shifts":"1",
  46. "pref_coworkers_contacts":"0",
  47. "pref_future_avail":"1",
  48. "pref_weekly_avail":"1",
  49. "pref_approve_availability":"1",
  50. "pref_visible_overview":"0",
  51. "pref_visible_own":"0",
  52. "pref_timeout":"0",
  53. "pref_message_wall_on":"1",
  54. "pref_message_wall_emp":"1",
  55. "pref_message_wall_comments":"1",
  56. "pref_message_wall_uploads":"0",
  57. "pref_on_now":"0",
  58. "pref_shift_confirm":"1",
  59. "pref_shift_drop":"1",
  60. "pref_shift_autoconfirm":"0",
  61. "pref_timeclock":"1",
  62. "pref_tc_terminal_lock":"0",
  63. "pref_tc_round_to":"-1",
  64. "pref_tc_round_to_in":"-1",
  65. "pref_tc_round_to_out":"-1",
  66. "pref_tc_clock_in_timeframe":"-1",
  67. "pref_tc_autoclockout":"0",
  68. "pref_tc_webcam":"0",
  69. "pref_tc_empl_import":"1",
  70. "pref_tc_empl_addtime":"1",
  71. "pref_tc_require_pos":"1",
  72. "pref_tc_require_notes":"1",
  73. "pref_24hr":"0",
  74. "pref_date":"m/d/Y",
  75. "pref_startday":"2",
  76. "pref_week_adjust":"0",
  77. "pref_currency":"1",
  78. "pref_viewadvance":"-1",
  79. "pref_mintimebshifts":"0",
  80. "pref_draft":"1",
  81. "pref_reports":"1",
  82. "pref_edit_profile":"1",
  83. "pref_login_google":"0",
  84. "pref_login_facebook":"0",
  85. "pref_login_splogo":"0",
  86. "pref_login_twitter":"0",
  87. "pref_scosting":"3",
  88. "pref_training":"1",
  89. "settings":"{\"payroll\{\"company_code\":\"5\",\"batch_id\":\"9\",
  90. \"fixed_batch_id\":1,\"regular_hour_code\":\"R\",\"special_hour_code\":
  91. \"S\",\"overtime_hour_code\":\"OT\",\"company_name\":\"NewStore.\",\"
  92. company_created_time\":\"\",\"export_provider\":\"5\"},\"login\":{\"ssl\":null}}",
  93. "notes":"",
  94. "created_by":"0",
  95. "new_employee_note":"",
  96. "personal_welcome_sent":"1",
  97. "ical":"w787qefd98a10e74sf184af6a28s554a",
  98. "trial":"90",
  99. "nonprofit":"0",
  100. "paid_until":"0",
  101. "groupbilling":"1",
  102. "setup":"0",
  103. "aw_keyword":"",
  104. "affiliate":"",
  105. "saml_enabled":"1",
  106. "saml_allow_login":"0",
  107. "saml_login_url":"https://app.onelogin.com/saml/signon/35439",
  108. "saml_logout_url":"http://www.humanity.com?saml_logout=true",
  109. "saml_certificate":"-----BEGIN CERTIFICATE-----
  110. \nMIICMTCCAiWgAwIBAgIBATADBgEAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApD\nYWxpZm9
  111. ybmlhMRUwEwYDVQQHDAxTYW50YSBNb25pY2ExETAPBgNVBAoMCE9uZUxv\nZ2luMRkwFwYDVQQD
  112. DBBhcHAub25lbG9naW4uY29tMB4XDTExMTIyNTIxMDU1MFoX\nDTE2MTIyNDIxMDU1MFowZzELM
  113. AkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3Ju\naWExFTATBgNVBAcMDFNhbnRhIE1vbmljYT
  114. ERMA8GA1UECgwIT25lTG9naW4xGTAX\nBgNVBAMMEGFwcC5vbmVsb2dpbdjjKKDosdskKsk39mj
  115. jsakkSkkspLLsaao99SS0\nggEKAoIBAQDUTwLaS8OusqfLUy9xotuKsqcBOu7lXQS7bIBRFKx+
  116. 8epug2U4udFU\nEMdWKFllyfF4ss9dt62nVr8PrWMVe0UnXFAsNM2XGW/ufhvBqAKrQtRthcJJu
  117. hR/\nXmvW/2K94oVPIuw7G+9ODbtTypQNdH1CKfDgyoB5Vw0QlMv/JQ7fxGPuE/yY/FbX\nYP0n
  118. FsIehRDZsSMTbOSiGOyrgdqt/x1iuj8KpEW0BngvjIqoPUk7hhYWIV8R+6gS\n1q6bzJSgun5OS
  119. f+oVvCggHC+R9KGXTOcTX0XzFo8wjtSKshwiWTDWqK94aY6u5ve\niVTOCYrwvhwJ+YYpmIHPKL
  120. NLA+EiAkxHAgMBAAEwAwYBAAMBAA==\n-----END CERTIFICATE-----",
  121. "saml_fingerprint":"",
  122. "timezone_id":"80",
  123. "language":"en_US",
  124. "daily_overtime":"14",
  125. "pref_min_disregard":"0",
  126. "max_days_row":"0",
  127. "pref_same_day_trades":"1",
  128. "pref_tc_screenshot":"0",
  129. "group_platform_settings":"{\"Scheduler\":\"4\",\"Supervisor\":\"3\",
  130. \"color_nav_text\":\"#000000\",\"color_nav_left_text\":\"#3F3F3F\",\"
  131. color_nav_left_act_text\":\"#3F3F3F\",\"master_logo\":\"1\",\"disallow_logo\
  132. ":\"1\",\"Manager\":\"2\",\"Employee\":\"5\"}",
  133. "pref_vacation_max_days":null,
  134. "sort_location":"1",
  135. "pref_training_to_pdf":"0",
  136. "pref_pre_time_clock":"1",
  137. "pref_mandatory_pre_time_clock":"1",
  138. "pref_user_confirm":"0",
  139. "campaign":"0",
  140. "pref_request_deduct_breaks":"0"
  141. },
  142. "token":"xxxxxxx"
  143. }