Service Rates By Postal Code
This API is used to estimate shipping costs based on the services provided by Anteraja, by passing in postal code origin and postal code destination parameters and weight.
Last updated
This API is used to estimate shipping costs based on the services provided by Anteraja, by passing in postal code origin and postal code destination parameters and weight.
Last updated
var axios = require('axios');
var data = JSON.stringify({
"post_code_origin": "30117",
"post_code_destination": "30257",
"weight": 2000
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/antaraja/service/service-rates-post-code',
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);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/antaraja/service/service-rates-post-code',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"post_code_origin": "30117",
"post_code_destination": "30257",
"weight": 2000
}',
CURLOPT_HTTPHEADER => array(
'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'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
phpcurl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/antaraja/service/service-rates-post-code' \
--header 'x-api-key: U2FsdGVkX1++ZZ4P1XMNg5SK1wAlLl+43SGcdaHpyt+f0fBNSVUHaKvtsRWP4Eu75QTIU5i2oAaBORnsQrRGYQ==' \
--header 'name: ft-4' \
--header 'connection_name: delivery02' \
--header 'base_path: https://doit-sit.anteraja.id/importir' \
--header 'access_key: Anteraja_x_importir_SIT' \
--header 'Content-Type: application/json' \
--data-raw '{
"post_code_origin": "30117",
"post_code_destination": "30257",
"weight": 2000
}'