Advertisement
Guest User

promotion-provider

a guest
Oct 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.96 KB | None | 0 0
  1. curl --location --request POST "https://provider--paguemenos.myvtex.com/_v/promotion-provider" \
  2. --header "Content-Type: application/json" \
  3. --data "{
  4.    \"items\": [
  5.        {
  6.            \"id\": \"0\",
  7.            \"sku\": \"1\",
  8.            \"ean\": \"Sku anexo obrigatorio\",
  9.            \"refId\": null,
  10.            \"unitMultiplier\": 1,
  11.            \"measurementUnit\": \"un\",
  12.            \"targetPrice\": 8.2,
  13.            \"itemPrice\": 8.2,
  14.            \"quantity\": 1,
  15.            \"discountPrice\": 0,
  16.            \"dockId\": \"1125a08\",
  17.            \"freightPrice\": 0,
  18.            \"brandId\": \"2000002\"
  19.        },
  20.        {
  21.            \"id\": \"1\",
  22.            \"sku\": \"2\",
  23.            \"ean\": \"Sku anexo obrigatorio\",
  24.            \"refId\": null,
  25.            \"unitMultiplier\": 1,
  26.            \"measurementUnit\": \"un\",
  27.            \"targetPrice\": 8.2,
  28.            \"itemPrice\": 8.2,
  29.            \"quantity\": 1,
  30.            \"discountPrice\": 0,
  31.            \"dockId\": \"1125a08\",
  32.            \"freightPrice\": 0,
  33.            \"brandId\": \"2000002\"
  34.        },
  35.        {
  36.            \"id\": \"2\",
  37.            \"sku\": \"3\",
  38.            \"ean\": \"Sku anexo obrigatorio\",
  39.            \"refId\": null,
  40.            \"unitMultiplier\": 1,
  41.            \"measurementUnit\": \"un\",
  42.            \"targetPrice\": 8.2,
  43.            \"itemPrice\": 8.2,
  44.            \"quantity\": 1,
  45.            \"discountPrice\": 0,
  46.            \"dockId\": \"1125a08\",
  47.            \"freightPrice\": 0,
  48.            \"brandId\": \"2000002\"
  49.        }
  50.    ],
  51.    \"totals\": [
  52.        {
  53.            \"id\": \"Items\",
  54.            \"name\": \"Total dos Itens\",
  55.            \"value\": 820    
  56.        },
  57.        {
  58.            \"id\": \"Discounts\",
  59.            \"name\": \"Total dos Descontos\",
  60.            \"value\": 0
  61.        },
  62.        {
  63.            \"id\": \"Shipping\",
  64.            \"name\": \"Total do Frete\",
  65.            \"value\": 0
  66.        },
  67.        {
  68.            \"id\": \"Tax\",
  69.            \"name\": \"Total da Taxa\",
  70.            \"value\": 0
  71.        }
  72.    ],
  73.    \"clientEmail\": \"12345678909\",
  74.    \"shippingDestination\": {
  75.        \"country\": \"BRA\",
  76.        \"state\": \"RJ\",
  77.        \"city\": \"Rio de Janeiro\",
  78.        \"neighborhood\": \"Botafogo\",
  79.        \"postalCode\": \"22250-905\",
  80.        \"street\": \"Praia Botafogo (Edifício Empresas Caemi)\"
  81.    },
  82.    \"clientData\": {
  83.        \"email\": \"checkout2.2214137529961375@mailinator.com\",
  84.        \"document\": \"04953656377\",
  85.        \"corporateDocument\": null
  86.    },
  87.    \"paymentData\": {
  88.        \"payments\": [
  89.            {
  90.                \"paymentSystem\": \"2\",
  91.                \"bin\": null,
  92.                \"referenceValue\": 820,
  93.                \"value\": 820,
  94.                \"installments\": null
  95.            }
  96.        ]
  97.    },
  98.    \"orderFormId\": \"e5052ad8c4df490bb2f6f02900ac1413\",
  99.    \"salesChannel\": \"1\"
  100. }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement