Get Terminal Packages
Last updated: 2023-11-28
Supported Terminal Models
| Model | Description |
|---|---|
C10 | Desktop terminal without a printer |
C100 | Mobile terminal suitable for any application |
Replace <customerId> and <model> in the URL path with the actual values before making the request.
GET
/terminal/getPackages/{customerId}/{model}Returns available terminal update packages for a given customerId and model
Path Parameters
customerIdnumberrequiredCustomer ID. Can be found in the URL of the customer page: /OnBoarding/ModifyCustomer?id=%
modelstringrequiredTerminal model name. Supported values: C10, C100.
HTTP Status Code Summary
| Code | Description |
|---|---|
| 200 | Package list retrieved successfully. |
| 400 | Bad request format or invalid path parameters. |
| 401 | Unauthorized — missing or invalid authentication credentials. |
| 404 | No packages found for the specified customer and model. |
| 422 | Unprocessable entity — the model or customerId is invalid. |
Request
cURL
1curl -X 'GET' \
2 'https://demo-api.westpay.se/access/v2/terminal/getPackages/<customerId>/<model>' \
3 -H 'accept: text/plain' \
4 -H 'Ocp-Apim-Subscription-Key: <merchant-subscription-key>' \
5 -H 'Authorization: Bearer <access-token>'Response
Response
1{
2 "packageInfo": [
3 {
4 "id": "<package_id>",
5 "timeCreated": "<timeCreated>",
6 "timeModified": "<timeModified>",
7 "name": "<name>",
8 "notes": "<notes>",
9 "modelName": "<modelName>",
10 "modelId": "<modelId>",
11 "category": "<category>",
12 "categoryId": "<categoryId>"
13 }
14 ]
15}