Requirements
Before you begin, take into account the following requirements and limitations.Products and orders
You can order products for a company account or a merchant account. A product can be:- A box containing a payment terminal and default items like a power cable.
- An accessory, like a privacy shield, a stylus pen, or a replacement power cable.
- A hardware kit combining terminals, accessories, and setup instructions in a custom package.
- A billing entity for the company or merchant account. This is where we charge the order to. We create billing entities for you based on the details you provided when you applied for the accounts.
- A shipping location for the company or merchant account. This is where we send the order. A shipping location is linked to a company account or a merchant account. You create shipping locations yourself.
Regional compatibility
You can only use the terminals in the country or region where you ordered them for. This is because the wireless communications modem inside the terminals is specific to the region. The terminals will not work in a different country or region, even with a region-specific power cord. For example, if you ordered a European terminal having delivered them to the US, it would not work even with a US power cord.Order hardware kits
You can use the Management API to order hardware kits. After your hardware kit is set up, it appears as a product in the terminal products response with:- A product
idprefixed withKIT-. - An
itemsIncludedarray listing the bundled contents.
Get the product ID
An order for terminal products must contain the IDs of the products you want to order. To retrieve those IDs and decide what to order:-
Get the ID of the account you want to order products for. You need to specify that ID in the URL of later requests.
- For the company ID, make a GET /companies request.
- For the merchant ID, make a GET /merchants request.
-
Get a list of payment terminal models you can order for your company or merchant account. Use the following endpoints:
Get model list for a merchant account
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns theidandnameof the various models. You can use theidas a query parameter to filter the product list in the next step. Model list -
Get a list of products you can order for your company or merchant account. Use the following endpoints, with the
countryas a query parameter: These are the query parameters to filter the paginated response:The following example retrieves a list of all products related to the V400m payment terminal that can be ordered for a merchant account in France. Get product list by terminal model for a French merchant accountcurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
When you receive the response, save the
idvalues of the products you want to order. The next example shows the response for the GETmerchants/{merchantId}/terminalProducts?country=FR&terminalModelId=Verifone.V400mrequest (prices have been changed to 0.00 in the example). Products related to a terminal model
Get the billing entity ID
An order for terminal products must contain the ID of a billing entity. This is the legal entity where we charge the order to. We create billing entities for you based on the details provided when you applied for your company and merchant accounts. When ordering products in Brazil, you do not need to provide a billing entity ID.-
Get the billing entity ID for your company or merchant account. Use the following endpoints:
- GET /companies/{companyId}/billingEntities for the billing entities of the company and all merchant accounts belonging to the company.
- GET /merchants/{merchantId}/billingEntities for the billing entities of the merchant account.
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
When you receive the response, save the id of the billing entity to use in your order. The response also returns the name, taxId (VAT number) and contact details for each billing entity.
Billing entity list
Get the shipping location ID
An order for terminal products must contain the ID of a shipping location. This is the street address of the location where you want us to send the order to.New shipping location
-
To create a shipping location for your company or merchant account, use the following endpoints:
Specify the following parameters in the request body:
Create shipping location
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
When you receive the response, note the following details:
- id: The generated shipping location ID. Save this ID because you need to specify it when you order terminal products.
- name: Your reference for this location. You can use the reference to filter the list of shipping locations.
Existing shipping locations
-
To get a list of existing shipping locations for your company or merchant account, use the following endpoints:
You can filter the paginated response using the following query parameters:
Get shipping locations for a merchant account
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
When you receive the response, save the id of the shipping location to use in your order.
Shipping locations list
Create a terminal order
Use this request to order live terminals or hardware kits for your company or merchant account. Requests to the Management API test endpoint do not create actual orders for test terminals. To order test terminals, you need to submit a sales order in your test Customer Area.-
Make sure that you have the following details:
- The IDs of the products you want to order.
- The ID of the billing entity.
- The ID of the shipping location.
-
To create an order for your company or merchant account, use the following endpoints:
Specify the following parameters in the request body:
The next example places an order for one V400m terminal and 20 receipt rolls. Place a terminal order
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response echoes the parameters you provided and additionally includes the id and status of your order, the date and time you placed the order, and the full details of the billing entity and the shipping location. Order placed
Terminal order updates
To stay informed about your order, you can subscribe to Terminal order update webhooks. These webhooks are triggered at certain steps in the logistical process. The webhooks contain information such as shipment date, terminal serial numbers, and track & trace number. We send these platform webhooks as an HTTP callback (webhook) to your server. We also keep you up to date on the status of your order through email messages and in your Customer Area > Orders and returns.Manage orders
You can view , update, and cancel orders using API requests. However, updating and canceling is only allowed while the order has the status Placed. This indicates we haven’t started processing the order yet.View orders
You can use the/terminalOrders endpoint to check which orders can still be updated or cancelled, and to get the ID of those orders. To keep up to date on the progress of your order, we recommend using Terminal order update webhooks.
List of orders
-
To get the details of all orders for your company or merchant account, use the following endpoints:
You can filter the paginated response using the following query parameters:
Get a list of placed orders for a merchant account
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns an array of orders sorted by order date in ascending order. For each order, all order details are included.
Individual order
-
To get the details of an individual order for your company or merchant account, use the following endpoints:
- GET /companies/{companyId}/terminalOrders/{orderId}
- GET /merchants/{merchantId}/terminalOrders/{orderId}
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns all order details.
Update an order
While an order has the status Placed, you can change the order items, the shipping location, and the billing entity. The request body only needs to contain what you want to change. However, to update theitems array, you need to replace the entire array. For example, let’s assume the array has three items. To remove one item, the array must include the remaining two items. Or to add one item, the array must include all four items.
-
Get the ID of the order you want to update and check that the order has the
statusPlaced. -
To update the order for your company or merchant account, use the following endpoints:
- PATCH /companies/{companyId}/terminalOrders/{orderId}
- PATCH /merchants/{merchantId}/terminalOrders/{orderId}
The next request removes the 20 receipt rolls from our example order 7219627091701347 by listing only the remaining order item, and changes the billing entity. Update order items and billing entitycurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns all order details. Order updated
Cancel an order
While an order has the status Placed, you can revoke the order.-
Get the ID of the order you want to cancel and check that the order has the
statusPlaced. -
To cancel an order for your company or merchant account, use the following endpoints:
- POST /companies/{companyId}/terminalOrders/{orderId}/cancel
- POST /merchants/{merchantId}/terminalOrders/{orderId}/cancel
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
The response returns all order details, but now the status is changed to Cancelled.
Order cancelled
