Apis related to Validation.
Interu API (v2_28)
The identity for of the variant. This needs to be unique in the context of the product.
If you want to store the SKU number separately from the description this field is available.
A list of additional Units that specify the factor for converting from the base unit to other base units: e.g. unit to kg specific to this variant.
The URI to the base unit of measurement to convert the base qty to. So if the product is specified in units and the conversion specifies kg then this conversion will provide the per unit mass.
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants
- UAThttps://api.uat.interu.io/organisations/{orgId}/products/{productId}/variants
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-H 'contentType: application/json' \
-d '{
"id": "string",
"description": "string",
"sku": "string",
"additionalUnits": [
{
"baseUnit": "/common/base-units/{unitId}",
"conversionFactor": 0
}
]
}'The request has succeeded and will either return the newly created resource or where appropriate a record that reflects the success of the action.
The identity for of the variant. This needs to be unique in the context of the product.
If you want to store the SKU number separately from the description this field is available.
A list of additional Units that specify the factor for converting from the base unit to other base units: e.g. unit to kg specific to this variant.
The URI to the base unit of measurement to convert the base qty to. So if the product is specified in units and the conversion specifies kg then this conversion will provide the per unit mass.
{ "id": "string", "description": "string", "sku": "string", "additionalUnits": [ { … } ], "recordState": "ACTIVE" }
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants
- UAThttps://api.uat.interu.io/organisations/{orgId}/products/{productId}/variants
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants?description=string&sku=string&recordState=ACTIVE&size=20&page=0' \
-H 'X-API-Key: YOUR_API_KEY_HERE'The request has succeeded.
The identity for of the variant. This needs to be unique in the context of the product.
If you want to store the SKU number separately from the description this field is available.
A list of additional Units that specify the factor for converting from the base unit to other base units: e.g. unit to kg specific to this variant.
The URI to the base unit of measurement to convert the base qty to. So if the product is specified in units and the conversion specifies kg then this conversion will provide the per unit mass.
{ "content": [ { … } ], "page": { "size": 0, "page": 0, "totalElements": 0, "totalPages": 0 } }
- Mock serverhttps://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants/{variantId}
- UAThttps://api.uat.interu.io/organisations/{orgId}/products/{productId}/variants/{variantId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.interu.io/_mock/reference/api/organisations/{orgId}/products/{productId}/variants/{variantId}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'The request has succeeded.
The identity for of the variant. This needs to be unique in the context of the product.
If you want to store the SKU number separately from the description this field is available.
A list of additional Units that specify the factor for converting from the base unit to other base units: e.g. unit to kg specific to this variant.
The URI to the base unit of measurement to convert the base qty to. So if the product is specified in units and the conversion specifies kg then this conversion will provide the per unit mass.
{ "id": "string", "description": "string", "sku": "string", "additionalUnits": [ { … } ], "recordState": "ACTIVE" }