Body
-
Interface RequisitionListInterface
POST /V1/requisition_lists
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/requisition_lists \
-d '{"requisitionList":{"id":42,"customer_id":42,"name":"string","updated_at":"string","description":"string","items":[{"id":42,"sku":"string","requisition_list_id":42,"qty":42.0,"options":["string"],"store_id":42,"added_at":"string","extension_attributes":{}}],"extension_attributes":{}}}'
Request examples
{
"requisitionList": {
"id": 42,
"customer_id": 42,
"name": "string",
"updated_at": "string",
"description": "string",
"items": [
{
"id": 42,
"sku": "string",
"requisition_list_id": 42,
"qty": 42.0,
"options": [
"string"
],
"store_id": 42,
"added_at": "string",
"extension_attributes": {}
}
],
"extension_attributes": {}
}
}
Response examples (200)
{
"id": 42,
"customer_id": 42,
"name": "string",
"updated_at": "string",
"description": "string",
"items": [
{
"id": 42,
"sku": "string",
"requisition_list_id": 42,
"qty": 42.0,
"options": [
"string"
],
"store_id": 42,
"added_at": "string",
"extension_attributes": {}
}
],
"extension_attributes": {}
}
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}