Skip to main content

Organizations

GET Organizations#

Get all user organization.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/organizations
HeadersAuthorization
Parametersorganizations, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
idstring"string"
namestring"string"
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST Organization#

Add new organization to the store.

POST
MethodPOST
URL or EndPoint/api/v{version}/organizations
HeadersAuthorization
ParametersprojectId, distributionId, version
Body{ name, addressLine1, addressLine2, country, state, city, vatNumber }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API

Request body#

{  "name": "string",  "addressLine1": "string",  "addressLine2": "string",  "country": "string",  "state": "string",  "city": "string",  "vatNumber": "string",  "voucher": "string"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
nameYesstring"string"
addressLine1Yesstring"string"
addressLine2Yesstring"string"
countryNostring"string"
stateYesstring"string"
cityYesstring"string"
vatNumberYesstring"string"
voucherYesstring"string"

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "string",    "addressLine1": "string",    "addressLine2": "string",    "country": "string",    "state": "string",    "city": "string",    "vatNumber": "string"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
idstring"string"
namestring"string"
addressLine1string"string"
addressLine2string"string"
countrystring"string"
statestring"string"
citystring"string"
vatNumberstring"string"
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Organization#

Get a specific organization by id

GET
MethodGET By Id
URL or EndPoint/api/v{version}/organizations/{organizationId}
HeadersAuthorization
ParametersorganizationId, organizations, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstringv1The identifier for the organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)1The identifier for the organization

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.


{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "string",    "addressLine1": "string",    "addressLine2": "string",    "country": "string",    "state": "string",    "city": "string",    "vatNumber": "string"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
idstring"string"
namestring"string"
addressLine1string"string"
addressLine2string"string"
countrystring"string"
statestring"string"
citystring"string"
vatNumberstring"string"
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT Organization#

Updates an organization in the store with form data.

PUT
MethodPUT
URL or EndPoint/api/v{version}/organizations/{organizationId}
HeadersAuthorization
ParametersorganizationId, organizations, version
Body{ name, addressLine1, addressLine2, country, state, city, vatNumber }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstringv1The identifier for the organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)1The identifier for the organization

Request body#

{  "name": "string",  "addressLine1": "string",  "addressLine2": "string",  "country": "string",  "state": "string",  "city": "string",  "vatNumber": "string",  "voucher": "string"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
nameYesstring"string"
addressLine1Yesstring"string"
addressLine2Yesstring"string"
countryNostring"string"
stateYesstring"string"
cityYesstring"string"
vatNumberYesstring"string"
voucherYesstring"string"

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "string",    "addressLine1": "string",    "addressLine2": "string",    "country": "string",    "state": "string",    "city": "string",    "vatNumber": "string"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
idstring"string"
namestring"string"
addressLine1string"string"
addressLine2string"string"
countrystring"string"
statestring"string"
citystring"string"
vatNumberstring"string"
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE Organization#

Deletes an organization.

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/organizations/{organizationId}
HeadersAuthorization
ParametersorganizationId, organizations, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstringv1The identifier for the organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)1The identifier for the organization

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "string",    "addressLine1": "string",    "addressLine2": "string",    "country": "string",    "state": "string",    "city": "string",    "vatNumber": "string"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]
idstring"string"
namestring"string"
addressLine1string"string"
addressLine2string"string"
countrystring"string"
statestring"string"
citystring"string"
vatNumberstring"string"
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found