...
...
General Information
...
Service | API | Method | Data Model | Workflow | Group |
---|---|---|---|---|---|
multitenant | /product | GET |
Data Model:
Workflow:
N/A | Product |
Description
Get product
Input
...
Code Block |
---|
Type: application/json |
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
id | Query |
NO | String | N/A | The product id |
code |
Query |
NO | String | The Length is 4 - 5 | The product code |
Output
...
Response
...
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Invalid Response
Code Block | ||||
---|---|---|---|---|
|
Example (CURL)
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X GET http://127.0.0.1:4004/product?id=%product_id% |
Response
Code Block | |
---|---|
language | js | title | List Products API response{
"result":false,
"errors":{
"codes":[460],
|
...
Code
...
Description
...
460
...
474
...
Missing required field: either id or code
...
426
...
Invalid Product ID provided
|
Invalid Response
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
...
Code | Description |
---|---|
400 | Business logic required data are missing |
460 | Unable to find products |
602 | Model error: + %model_error% |