API Bearer Token
Issued by PRAL - Valid for 5 years
This token is passed in the Authorization: Bearer header of every API request.
Environment
Sandbox or Production routing
Routing is determined by the security token. The same API URLs are used for both environments.
Current Environment
Using sandbox token - safe for testing
Sandbox
API Endpoints Reference
All FBR DI API endpoints used in this integration
| Endpoint | Method | URL |
|---|---|---|
| Post Invoice | POST | SB: https://gw.fbr.gov.pk/di_data/v1/di/postinvoicedata_sb PROD: https://gw.fbr.gov.pk/di_data/v1/di/postinvoicedata |
| Validate Invoice | POST | SB: https://gw.fbr.gov.pk/di_data/v1/di/validateinvoicedata_sb PROD: https://gw.fbr.gov.pk/di_data/v1/di/validateinvoicedata |
| Provinces | GET | https://gw.fbr.gov.pk/pdi/v1/provinces |
| Document Types | GET | https://gw.fbr.gov.pk/pdi/v1/doctypecode |
| HS Item Codes | GET | https://gw.fbr.gov.pk/pdi/v1/itemdesccode |
| UOM List | GET | https://gw.fbr.gov.pk/pdi/v1/uom |
| STATL Check | POST | https://gw.fbr.gov.pk/dist/v1/statl |
| Registration Type | POST | https://gw.fbr.gov.pk/dist/v1/Get_Reg_Type |