Utilities
Common utility endpoints like warehouse product retrieval and security configuration.
Lookups and health checks to run around a sale: whether a buyer TIN needs an authorisation code, whether a VAT5 certificate is valid, and whether a terminal is blocked and why.
Endpoints in this section
- POSTGet terminal site products
/{tin}/get-site-terminal-products - POSTGet warehouse products
/{tin}/get-warehouse-products - POSTCheck TIN Authorization Requirement
/{tin}/check-tin-authorization-requirement - POSTCheck Terminal Unblock Status
/{tin}/check-terminal-unblock-status - POSTGet Terminal Blocking Message
/{tin}/get-terminal-blocking-message - POSTValidate VAT5 Certificate
/{tin}/validate-vat5-certificate
Get terminal site products
/api/v1/{tin}/get-site-terminal-products🔒 token requiredRetrieve products and services for a specific terminal site from Malawi Revenue Authority (MRA) EIS system.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
tin | path | Yes | Taxpayer Identification Number (e.g., 20154457) |
deploymentEnvironment | query | Yes | MRA deployment environment - 'Sandbox' for testing or 'Production' for live One of: Sandbox, Production |
token | query | Yes | API access token for authentication |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
siteId | string | Yes | Site ID from terminal configuration CHecab1e71-dc53-4aa6-a5b3-2332fc41bcce |
terminalId | string | Yes | Terminal ID from activation 193760fb-cddc-40ed-b0fb-f08f8720f86c |
Responses
- 200Products retrieved successfully
- 400Bad request - invalid parameters
- 404Terminal not found or not activated
Get warehouse products
/api/v1/{tin}/get-warehouse-products🔒 token requiredRetrieve warehouse inventory products with pagination from Malawi Revenue Authority (MRA) EIS system. Requires an activated terminal with valid JWT credentials.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
tin | path | Yes | Taxpayer Identification Number (e.g., 20154457) |
deploymentEnvironment | query | Yes | MRA deployment environment - 'Sandbox' for testing or 'Production' for live One of: Sandbox, Production |
token | query | Yes | API access token for authentication |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
terminalId | string | Yes | Terminal ID from activation 193760fb-cddc-40ed-b0fb-f08f8720f86c |
page | integer | No | Page number for pagination 1 |
pageSize | integer | No | Number of items per page 50 |
Responses
- 200Warehouse products retrieved successfully
- 400Bad request - invalid parameters or missing terminal credentials
- 404Terminal not found - Please activate the terminal first
Check Terminal Unblock Status
/api/v1/{tin}/check-terminal-unblock-status🔒 token requiredCheck if a specific terminal is currently unblocked by the Malawi Revenue Authority (MRA). Uses the stored terminal UUID for the provided siteId.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
tin | path | Yes | Taxpayer Identification Number (Authenticated company) |
deploymentEnvironment | query | No | MRA environment (Sandbox or Production) One of: Sandbox, Production |
token | query | Yes | API access token for authentication |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
siteId | string | Yes | Site ID of the terminal to check CHecab1e71-dc53-4aa6-a5b3-2332fc41bcce |
terminalId | string | No | Optional: Manual terminal UUID to check. If provided, Site ID will only be used for JWT authentication. 193760fb-cddc-40ed-b0fb-f08f8720f86c |
Responses
- 200Unblock status retrieved successfully
- 401Unauthorized or Session Expired
- 404Terminal not found
Get Terminal Blocking Message
/api/v1/{tin}/get-terminal-blocking-message🔒 token requiredRetrieve detailed information about why a terminal might be blocked by the Malawi Revenue Authority (MRA). Uses the stored terminal UUID for the provided siteId.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
tin | path | Yes | Taxpayer Identification Number (Authenticated company) |
deploymentEnvironment | query | No | MRA environment (Sandbox or Production) One of: Sandbox, Production |
token | query | Yes | API access token for authentication |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
siteId | string | Yes | Site ID of the terminal to check CHecab1e71-dc53-4aa6-a5b3-2332fc41bcce |
terminalId | string | No | Optional: Manual terminal UUID to check. If provided, Site ID will only be used for JWT authentication. 193760fb-cddc-40ed-b0fb-f08f8720f86c |
Responses
- 200Blocking details retrieved successfully
- 401Unauthorized or Session Expired
- 404Terminal not found
Validate VAT5 Certificate
/api/v1/{tin}/validate-vat5-certificate🔒 token requiredValidate a VAT5 certificate with the Malawi Revenue Authority (MRA) EIS system. This check ensures the certificate is valid, matches the project and terminal, and hasn't exceeded its quantity.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
tin | path | Yes | Taxpayer Identification Number (e.g., 20154457) |
deploymentEnvironment | query | Yes | MRA deployment environment - 'Sandbox' or 'Production' One of: Sandbox, Production |
token | query | Yes | API access token for authentication |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
siteId | string | Yes | Site ID of the terminal to use CHecab1e71-dc53-4aa6-a5b3-2332fc41bcce |
terminalId | string | No | Optional: Manual terminal UUID to check. If provided, Site ID will only be used for JWT authentication. 193760fb-cddc-40ed-b0fb-f08f8720f86c |
projectNumber | string | Yes | VAT5 Project Number PRJ-2024-001 |
certificateNumber | string | Yes | VAT5 Certificate Number VAT5-987654 |
quantity | number | Yes | Quantity being validated against the certificate 100 |
Responses
- 200Certificate validation response from MRA
- 401Unauthorized or Session Expired
- 403Terminal Blocked
- 404Terminal not found