Meter ID
- Label API
- REST
- Add funds to a meter
FirstMile Label Server REST API (1.0)
The FirstMile Label Server REST API provides endpoints for label creation, rate shopping, meter management, and manifesting shipments. This API replaces the legacy SOAP interface. All endpoints, request/response models, and business logic are documented here, with migration notes for users transitioning from SOAP.
The API uses OAuth 2.0 Bearer token authentication with policy-based authorization:
- Label operations require 'fm.external.rest.labelserver.label' scope
- Rate operations require 'fm.external.rest.labelserver.rate' scope
- Meter operations require 'fm.external.rest.labelserver.meter' scope
The API validates claims including 'fm.api.companyId' (IFS ID) and 'fm.api.techPartnerId'.
https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/
https://labelserver-test.firstmile.com/
https://labelserver.firstmile.com/
- Mock server
https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/{id}/{techPartnerId}
- Test server
https://labelserver-test.firstmile.com/api/v1/meter/{id}/{techPartnerId}
- Production server
https://labelserver.firstmile.com/api/v1/meter/{id}/{techPartnerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/{id}/{techPartnerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "requestId": "string", "errors": [ "string" ], "warnings": [ "string" ], "meters": [] }
- Mock server
https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/{techPartnerId}
- Test server
https://labelserver-test.firstmile.com/api/v1/meter/{techPartnerId}
- Production server
https://labelserver.firstmile.com/api/v1/meter/{techPartnerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/{techPartnerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "requestId": "string", "errors": [ "string" ], "warnings": [ "string" ], "meters": [] }
- Mock server
https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/addfunds
- Test server
https://labelserver-test.firstmile.com/api/v1/meter/addfunds
- Production server
https://labelserver.firstmile.com/api/v1/meter/addfunds
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.fastgroup.co/_mock/xmethod/label/rest/swagger/api/v1/meter/addfunds \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"techPartnerId": "string",
"meterId": "string",
"amount": 0.1,
"transactionReference": "string"
}'{ "requestId": "string", "errors": [ "string" ], "meter": { "currentBalance": 0, "oldBalance": 0, "pendingFunds": 0, "carrier": "string", "meterId": "string" }, "transactionId": "string", "fees": [ { … } ], "successful": true }