Pular para conteúdo

PUT Item

Endpoint: PUT /api/v1/store/{storeId}/order/{orderId}/itens/{itemId}

Atualiza um grupo.

Realiza a atualização de um item já existente no pedido

Parâmetros de Requisição:

Headers:

 Content-Type: application/json # Content Type da requisição (Obrigratorio)
 Authorization: Bearer Token  #Authorization gerado junto a plataforma Integradores Farmacias Digitais. (Obrigratorio)

Route:

 storeId: "40666877-2321-455a-87ba-96a694a92ad8" #id da loja (Obrigratorio)
 orderId : "abc66877-2321-455a-87ba-96a694a92ad8" #Id do Pedido (Obrigratorio)
 itemId : "13686877-2321-455a-87ba-96a694a92ad8" #Id do item que voce deseja atualizar

Corpo da Requisição:

{
  "Request": {
    "Id": null,
    "OrderId": null,
    "ProductId": "00000000-0000-0000-0000-000000000000",
    "Name": "soro fisiológico lbs frasco 100ml",
    "UnitPrice": 10,
    "Quantity": 1,
    "ExternalCode": "a9fdeaad-c15e-41c3-af14-ac9610063f33",
    "TotalPrice": 10,
    "TotalDiscount": 0,
    "Index": 1,
    "Unit": "PC",
    "Ean": "7896830011001",
    "Price": 10,
    "Notes": "",
    "ImageUrl": "",
    "Type": "",
    "OptionPrice": 0,
    "Options": [
      {
        "Id": null,
        "Name": "soro",
        "GroupName": "Produto",
        "ExternalCode": "aabb9bb5-6c04-4b12-a92a-373e9bcd8b7a",
        "Type": "",
        "Quantity": 1,
        "UnitPrice": 0,
        "Additional": 0,
        "Price": 0,
        "Unit": "PC",
        "Ean": "7896830011001",
        "Index": 1,
        "Customizations": [
          {
            "Id": "00000000-0000-0000-0000-000000000000",
            "Name": null,
            "GroupName": null,
            "ExternalCode": null,
            "Type": null,
            "Quantity": 0,
            "UnitPrice": 0,
            "Additional": 0,
            "Price": 0
          }
        ]
      }
    ]
  }
}

Corpo da Resposta:

{
  "Id": null,
  "OrderId": null,
  "ProductId": "00000000-0000-0000-0000-000000000000",
  "Name": "soro fisiológico lbs frasco 100ml",
  "UnitPrice": 10,
  "Quantity": 1,
  "ExternalCode": "ac264649-9a91-432b-8e4b-34de1bc95727",
  "TotalPrice": 10,
  "TotalDiscount": 0,
  "Index": 1,
  "Unit": "PC",
  "Ean": "7896830011001",
  "Price": 10,
  "Notes": "",
  "ImageUrl": "",
  "Type": "",
  "OptionPrice": 0,
  "Options": [
    {
      "Id": null,
      "Name": "soro",
      "GroupName": "Produto",
      "ExternalCode": "5016e3de-a19e-4c14-b343-03e0b634dd59",
      "Type": "",
      "Quantity": 1,
      "UnitPrice": 0,
      "Additional": 0,
      "Price": 0,
      "Unit": "PC",
      "Ean": "7896830011001",
      "Index": 1,
      "Customizations": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": null,
          "GroupName": null,
          "ExternalCode": null,
          "Type": null,
          "Quantity": 0,
          "UnitPrice": 0,
          "Additional": 0,
          "Price": 0
        }
      ]
    }
  ]
}