Follow

Get Organizations

Returns a list of organizations which the current user has access to. The current user is the user which the supplied access token relates to.

 

Attributes 

Attribute

Value

Path

/v3/organisations

Support Formats

JSON, XML

HTTP Method

GET

Secure

Yes

Rate Limited

No

Cache Timeout

TBC

HTTP Codes

·        200 - OK

·        400 - Bad Request. 

·        500 - Internal Server Error. 

 

Request

The following table contains the details of a typical HTTP Request for this service:

Type

Value

Header

GET /v3/organisations HTTP/1.1

Host: merchant.api.vmob.co

Content-Type: application/json

Accept-Language: en-US

x-vmob-authorization: dm1vYi53aW5kb3dzLjE6


Successful Response

The following table contains the details of a typical successful HTTP Request for this service.

Type

Value

Header

HTTP/1.1 200 OK

Content-Type: application/json

Cache-Control: no-store

Pragma: no-cache

Body

[

   {

      "id":561,

      "name":"Company A",

      "organisationType":2

   },

   {

      "id":562,

      "name":"Company B",

      "organisationType":1

   },

   {

      "id":563,

      "name":"Company C",

      "organisationType":0

   },

   {

      "id":568,

      "name":"Company D",

      "organisationType":0

   },

   {

      "id":569,

      "name":"Company E ",

      "organisationType":0

   }

]

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.