Untitled
raw download clone
TEXT
views 26
,
size 1894 b
curl 'http://171.244.37.150:5002/api/promotions' \
  -X 'PUT' \
  -H 'Connection: keep-alive' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'DNT: 1' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MTQxZjc2Ni04MTlhLTQxMjItYTkyZS0xZGI2OTRjMDg0NmMiLCJqdGkiOiI1NWQ1OWI3Zjc5MTQ0NmZiYmVmZTQ1ODM1ODdkYjYxOSIsImVtYWlsIjoic21hcnRzdG9yZS5hZG1pbkBnbWFpbC5jb20iLCJ1c2VyaWQiOiI0MTQxZjc2Ni04MTlhLTQxMjItYTkyZS0xZGI2OTRjMDg0NmMiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBZG1pbiIsIm5iZiI6MTYxNzczNjkxNCwiZXhwIjoxNjE3ODIzMzE0LCJpc3MiOiJTbWFydFN0b3JlIiwiYXVkIjoiU21hcnRTdG9yZSJ9.NSOnEZe-omo0o778IqwzrBra5FQ22BdHelmK64DtXyc' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Origin: http://localhost:3000' \
  -H 'Referer: http://localhost:3000/' \
  -H 'Accept-Language: en-US,en;q=0.9,th;q=0.8,vi;q=0.7' \
  --data-raw '{"supplierId":8,"code":"00031","name":"test 314","startDate":"2021-04-02T07:40:14.471","endDate":"2021-05-31T07:40:00","saleDiscountMoney":0,"products":[{"price":0,"productName":"Cá Hộp 3 cô gái","workId":9,"preSale":false,"vat":false,"promotions":null,"productId":41},{"price":0,"productName":"Tương ớt Chinsu","workId":12,"preSale":false,"vat":false,"promotions":null,"productId":42}],"promotions":"[{\"startMoney\":\"10000\",\"giveMoneyPercent\":\"10\",\"giveMoney\":100,\"typePromotion\":2},{\"payMoneyDate\":\"2021-04-02T07:41:57.959Z\",\"payGiftDate\":\"2021-04-02T07:41:57.959Z\",\"buyAmount\":23,\"giveMoneyPercent\":20,\"giveMoney\":0.4,\"showTangTien\":true,\"showTangQua\":false,\"giftFormType\":\"\",\"productId\":\"\",\"unitsByProductId\":[],\"radio-CK\":\"true\",\"typePromotion\":1}]","id":27}' \
  --compressed \
  --insecure
close fullscreen
Login or Register to edit or fork this paste. It's free.