Cancel Order

To cancel order after request pickup, but Anteraja will ignore this request if the parcel has been picked up. Value of booking_id and waybill_no should be a correct pair. Cancellations can only be done 5 minutes after order creation.

End Point 👍

Request Headers Parameters :

  • x-api-key, is the api key of the appgregator that has been encrypted using AES encryption format.

  • name, is the name of the project registered in the appgregator that is adjusted to the x-api-key in the previous parameter.

  • connection_name, connection_name is the connection name that is adjusted to the project and x-api-key that has been registered in the appgregator.

  • base_path, is the basepath given directly by the anteraja

  • access_key, is a key that is given directly from the anteraja.

Request Body Parameters :

  • waybill_no, (required),Anteraja's airway bill no.

POST https://us-central1-appgregator.cloudfunctions.net/antaraja/service/cancel-order

var axios = require('axios');
var data = JSON.stringify({
  "waybill_no": "10000017121022"
});

var config = {
  method: 'post',
  url: 'https://us-central1-appgregator.cloudfunctions.net/antaraja/service/cancel-order',
  headers: { 
    'x-api-key': 'U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ==', 
    'name': 'ft-4', 
    'connection_name': 'delivery02', 
    'base_path': 'https://doit-sit.anteraja.id/importir', 
    'access_key': 'Anteraja_x_importir_SIT', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});a

Last updated