Get Terminal Packages

Last updated: 2023-11-28

Supported Terminal Models

ModelDescription
C10Desktop terminal without a printer
C100Mobile 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

customerIdnumberrequired

Customer ID. Can be found in the URL of the customer page: /OnBoarding/ModifyCustomer?id=%

modelstringrequired

Terminal model name. Supported values: C10, C100.

HTTP Status Code Summary

CodeDescription
200Package list retrieved successfully.
400Bad request format or invalid path parameters.
401Unauthorized — missing or invalid authentication credentials.
404No packages found for the specified customer and model.
422Unprocessable 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}