Terminal Create & Update

Last updated: 2023-11-28

Workflow

Use this endpoint as the final step in the terminal update workflow:

  1. Call Get Terminal Packages (GET /terminal/getPackages/{customerId}/{model}) to retrieve available packages
  2. Note the id values from the package list
  3. Call this endpoint with the desired packageIds and the target terminal serialNumbers
  4. Check isUploadSuccessful in the response for each serial number to confirm success
POST
/terminal/createUpdate

Creates a terminal update with package content retrieved from the Get Packages API

Request Body

customerIdnumberrequired

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

packageIdsarray of stringsrequired

Array of package IDs to apply. Retrieve package IDs from the Get Terminal Packages endpoint.

serialNumbersarray of stringsrequired

Array of terminal serial numbers that require the update.

HTTP Status Code Summary

CodeDescription
200Update configuration created successfully. Check isUploadSuccessful per serial number.
400Bad request format or validation failed.
401Unauthorized — missing or invalid authentication credentials.
404No resources found for the provided data.
422Unprocessable entity — the customerId, packageIds, or serialNumbers are invalid.
Request
cURL
1curl -X 'POST' \
2  'https://demo-api.westpay.se/access/v2/terminal/createUpdate' \
3  -H 'accept: text/plain' \
4  -H 'Ocp-Apim-Subscription-Key: <merchant-subscription-key>' \
5  -H 'Authorization: Bearer <access-token>' \
6  -H 'Content-Type: application/json' \
7  -d '{
8  "customerId": 10796,
9  "packageIds": [437],
10  "serialNumbers": ["1043005005"]
11}'
Response
Response
1{
2    "createConfigurationFileResults": [
3        {
4            "serialNumber": "<serial_number>",
5            "isUploadSuccessful": true,
6            "message": null
7        }
8    ]
9}