const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.betterez.com/operations/parcels/:parcelId/scans',
  headers: {
    'content-type': 'application/json',
    'x-api-key': '{{x-api-key}}',
    authorization: 'Bearer {{short-token}}'
  },
  body: '{"operationType": "receive" | "not_claimed" | "handling" | "ready_for_pickup" | "deliver"}'
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);

	console.log(body);
});