Save Requisition List

POST /V1/requisition_lists

Save Requisition List

Body

  • requisitionList object Required

    Interface RequisitionListInterface

    Hide requisitionList attributes Show requisitionList attributes object
    • id integer Required

      Requisition List ID

    • customer_id integer Required

      Customer ID

    • name string Required

      Requisition List Name

    • updated_at string Required

      Requisition List Update Time

    • description string Required

      Requisition List Description

    • items array[object] Required

      Interface RequisitionListItemInterface

      Hide items attributes Show items attributes object
      • id integer Required

        Requisition List ID.

      • sku string Required

        Product SKU.

      • requisition_list_id integer Required

        Requisition List ID.

      • qty number Required

        Product Qty.

      • options array[string] Required

        Requisition list item options.

      • store_id integer Required

        Store ID.

      • added_at string Required

        Added_at value.

      • ExtensionInterface class for @see \Magento\RequisitionList\Api\Data\RequisitionListItemInterface

    • ExtensionInterface class for @see \Magento\RequisitionList\Api\Data\RequisitionListInterface

Responses

  • 200 Success.

    Hide response attributes Show response attributes object
    • id integer Required

      Requisition List ID

    • customer_id integer Required

      Customer ID

    • name string Required

      Requisition List Name

    • updated_at string Required

      Requisition List Update Time

    • description string Required

      Requisition List Description

    • items array[object] Required

      Interface RequisitionListItemInterface

      Hide items attributes Show items attributes object
      • id integer Required

        Requisition List ID.

      • sku string Required

        Product SKU.

      • requisition_list_id integer Required

        Requisition List ID.

      • qty number Required

        Product Qty.

      • options array[string] Required

        Requisition list item options.

      • store_id integer Required

        Store ID.

      • added_at string Required

        Added_at value.

      • ExtensionInterface class for @see \Magento\RequisitionList\Api\Data\RequisitionListItemInterface

    • ExtensionInterface class for @see \Magento\RequisitionList\Api\Data\RequisitionListInterface

  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Internal Server error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object
    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object
    • trace string

      Stack trace

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"
}