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}}","items":{"giftCertificate":[{"certDefId":"{{certDefId}}"}]},"providerId":"{{providerId}}","language":"en"}}'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});