const request = require('request');
const options = {
method: 'POST',
url: 'https://api.betterez.com/sales/cart',
headers: {
authorization: 'Bearer {{jwtToken}}',
'Content-Type': 'application/json;charset=UTF-8',
Accept: 'application/json, text/plain, */*',
'x-api-key': '{{x-api-key}}'
},
body: '{"operationId": "{{operationId}}","channel": "{{valid-channel}}","language": "en","providerId": "{{providerId}}","items": "{"item": [{"productId": "{{productId}}","items": [,"fields": {"description": {"value": ""},"notes": {"value": "{{value-entered-by-user}}"}}}]}]}}'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});