Requirements
Before you begin, take into account the following requirements and limitations.Account level and status of terminals
When (re)assigning terminals, you need to be aware of the following:- A terminal is always assigned to a level in your account setup: Company account, merchant account, or store. Note that some account setups do not have a store level and instead use merchant accounts to represent stores.
-
A terminal has a status:
- inventory: The terminal is in inventory and cannot process transactions.
- reassignmentInProgress: A request to change the assignment of the terminal is being processed.
- deployed: The terminal has been reassigned and is ready for boarding.
- boarded: The terminal is boarded to a store, or to a merchant account representing a store, and can process transactions.
Get a list of stores
To reassign terminals to a specific store, you need to know the ID of the store. To find the store ID:-
Make a GET /merchants/{merchantId}/stores request, specifying path and query parameters:
Get the stores under a merchant account
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns a paginated list of stores for the specified merchant account. -
From the response, save the
storeIdof the store that you want to assign terminals to. You need to specify that ID when you assign terminals to that store. List of stores
Get terminal details
To reassign a terminal, you need to know the ID of the terminal. To find the terminal ID and other details like the account level to which the terminal is currently assigned:-
Make a GET /terminals request.
Get the details of your terminals
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns a paginated list of terminals that your API credential has access to. -
From the response, save the
idof the terminal that you want to assign to a specific account level. The response returns the following details for each terminal:List of terminals
Reassign terminals
To enable taking payments on a payment terminal, you need to reassign the terminal from its initial account level and status to a level and status that allows boarding. Then you need to board the terminal.-
Prepare for assigning terminals:
- Make sure you know the ID of the terminal that you want to reassign. See Get terminal details.
- If you are going to reassign the terminal to a store, make sure you know the ID of the store. See Get a list of stores.
-
Make a POST /terminals/{terminalId}/reassign request, specifying path and request body parameters:
Reassign a terminal to your store
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
Reassign a terminal to your merchant accountcurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
- Check that the response returns HTTP status code 200/OK. The request is processed asynchronously.
Terminal assignment complete webhooks
In some cases, it is not possible to reassign a terminal immediately, and we schedule the assignment for later. To let you know when the reassignment is completed, we send you a terminalAssignment.completed webhook message. This is sent as an HTTP callback to your server. To set up receiving these webhook messages, follow the general instructions to set up webhooks but select Terminal assignment complete (not Standard) as the webhook type you want to add. After you set up the webhook type, you will receive terminalAssignment.completed webhook messages with:- The account (
assignedToAccount) or store (assignedToStore) that the terminal is assigned to. - The date and time when the assignment was carried out.
- The ID of the terminal involved.
