Skip to content

Order item add

Request

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired

order code

Example:2018000012
Query
suppressProductCheckingboolean

suppress the product existence check as per code and GUID

Default:false
Example:suppressProductChecking=true
suppressStockMovementsboolean

suppress deduction of the products from stock

Default:false
Example:suppressStockMovements=true
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobject, non-emptyrequired
curl -i -X POST \
  'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/2018000012/item?suppressProductChecking=true&suppressStockMovements=true' \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "itemType": "product",
      "code": "179/B",
      "vatRate": "21.00",
      "itemPriceWithVat": "121.00",
      "itemPriceWithoutVat": "100.00",
      "unitPriceWithVat": "121.00",
      "unitPriceWithoutVat": "100.00",
      "buyPriceWithVat": "121.00",
      "buyPriceWithoutVat": "100.00",
      "buyPriceVatRate": "21.00",
      "name": "Large chocolate",
      "variantName": "Type: walnut",
      "brand": "Willy Wonka",
      "supplierName": "Dodavatel s.r.o.",
      "productGuid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed",
      "remark": "This is a gift for my friend.",
      "warrantyDescription": "2 years",
      "amountCompleted": "1.000",
      "additionalField": "TO BALÍKOVNA, Karlínské náměstí 145/1, Karlín, 18600, Prague",
      "amount": "1.000",
      "amountUnit": "ks",
      "weight": "100",
      "priceRatio": "0.7000",
      "recyclingFeeId": 1,
      "statusId": -1,
      "surchargeParameters": [
        {
          "parameterCode": "pp-1",
          "valueIndex": "hodnota-01",
          "price": "21.00"
        }
      ],
      "consumptionTaxId": 1
    }
  }'

Responses

Created

Bodyapplication/json
dataobjectrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": { "order": {} }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }