Api doc


SDK's


Api Modules

admin.details

Returns the details for the organization of the currently logged in user.



Supported Methods:

GET
Params
  • token (Required): valid token


UPDATE
Params
  • token (Required): valid token
  • name: varchar
  • address: varchar
  • phone: phone
  • fax: phone
  • state: varchar


Documentation

GET
Returns the details for the organization of the currently logged in user.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"admin.details",
  3. "method":"GET",
  4. "request":{
  5.  
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "name":"Master",
  5. "address":"Belgrade, Serbia",
  6. "phone":"855-876-1176",
  7. "fax":"567-456-8765"
  8. },
  9. "token":"xxxxxxx"
  10. }

---

UPDATE
Updates the details for the organization of the currently logged in user.
Level 2 is required.

--

Parameters:

  1. "name": accepted //Name (varchar)
  2. "address": accepted //Address (varchar)
  3. "phone": accepted //Phone (varchar)
  4. "fax": accepted //Fax (varchar)
  5. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"admin.details",
  3. "method":"UPDATE",
  4. "request":{
  5. "address":"Company address 1",
  6. "phone":"381-326-4214",
  7. "fax":"567-456-8765"
  8. }
  9. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "name":"Master",
  5. "address":"Company address 1",
  6. "phone":"381-326-4214",
  7. "fax":"567-456-8765"
  8. },
  9. "token":"xxxxxxx"
  10. }