PB Global Ltd
PB Group Business Centre,
Mdina Road, Qormi. QRM 9019, MALTA.
Tel: (+356) 2090 8215-18 Fax: (+356) 2090 8219
Email:
info@pbglobal.eu
API Documentation
Overview
PB Global offers a REST API to clients who wish integrate their systems with its Courier Services. The public facing API only responds to POST and lives at /api/v1. The API requires an access token to be supplied with each JSON request.
Services
The API currently allows integration to the following endpoints;
Export Courier Rates | This endpoint can be used to get the lastest courier export rates. Valid for 24 hours. |
Courier Pickup Booking | This endpoint can be used to book a Courier Pickup by PB Global. |
Authentication
Endpoints can be accessed by using a unique access token key. Access tokens are found in your Account page.
Export Courier Rates - POST /api/v1/exportRates
Creates a new price request. The request will return the pricing data for the parameters provided in JSON format.
The endpoint expects the following input;
token | API Access Token |
zoneTo | The Destination Zone ID. |
length | The Length of the Package in CM. |
width | The Width of the Package in CM. |
height | The Height of the Package in CM. |
weight | The Weight of the Package in KG. |
Export Courier Rates - POST Sample - JQUERY
|
Export Courier Rates - Status Codes
Status | Description |
0 | Error Found. Check Error Codes. |
1 | Request OK |
-1 | Price Not Available |
Export Courier Rates - Error Codes
Status | Description |
1 | Missing Token |
2 | Missing Zone Id |
3 | Missing Length |
4 | Missing Width |
5 | Missing Height |
6 | Missing Weight |
7 | Calculated Weight > 30kg per package |
8 | Other Error |
Courier Pickup Booking - POST /api/v1/courierPickup
Creates a new Courier Pickup request. The request available to selected clients only. Please contact info@pbglobal.eu for more information.