...
Name | Source | Mandatory | Type | Special Format | Description |
---|
groups | Body | YES | Object | Includes one of id or code arrays | Groups object |
| One of the following should exist under the groups object: Name | Mandatory | Type | Special Format | Description |
---|
ids | YES | Array | Array of Strings | User ID | codes | YES | Array | Array of Strings | Username |
|
packages | Body | YES | Array | Array of Objects | Packages |
|
Name | Type | Description |
---|
product | String | Product Code | packages | Array of Strings | An array of Package Codes |
|
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
...
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
result: true,
data: 2true
} |
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"result":false,
"errors":{
"codes":[602],
"details":[
{
"code":602,
"message":"Model error: + %model_error%"
}
]
}
} |
...