{"title":"Order terminals","category":"default","creationDate":1776961627,"content":"<p>The Management API lets you order terminals and accessories for delivery to a location of your choice using API requests instead of the Customer Area.<\/p>\n<h2>Requirements<\/h2>\n<p>Before you begin, take into account the following requirements and limitations.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">A point-of-sale integration with Adyen.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/api-credentials\">API credentials<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">You must have an API credential with an API key and the following <a href=\"\/pt\/development-resources\/api-credentials#api-permissions\">roles<\/a>: <ul><li markdown=\"1\">Management API\u2014Terminal ordering read<\/li> <li markdown=\"1\">Management API\u2014Terminal ordering read and write<\/li><\/ul> <br>If you have a Terminal API integration with <a href=\"\/pt\/point-of-sale\/design-your-integration\/choose-your-architecture#cloud-communications\">cloud-based communications<\/a>, you can use the existing API key that you use for Terminal API requests.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><a href=\"\/pt\/development-resources\/webhooks\">Webhooks<\/a><\/strong><\/td>\n<td style=\"text-align: left;\">Optionally subscribe to <a href=\"\/pt\/point-of-sale\/managing-terminals\/order-terminals#terminal-order-notifications\">Terminal order update<\/a> webhooks.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Limitations<\/strong><\/td>\n<td style=\"text-align: left;\">Note the following: <ul><li markdown=\"1\">You can only create orders for live terminals using the Management API. To order test terminals, you need to <a href=\"\/pt\/point-of-sale\/managing-terminals\/order-terminals\/#sales-order-steps\">submit a sales order<\/a> in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">test Customer Area<\/a>.<\/li> <li markdown=\"1\">Requests to live Management API endpoints related to terminal orders are subject to <a href=\"\/pt\/point-of-sale\/automating-terminal-management#rate-limits-in-the-live-environment\">rate limits<\/a>.<\/li><\/ul><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Products and orders<\/h2>\n<p>You can order products for a company account or a merchant account. A product can be:<\/p>\n<ul>\n<li>A box containing a payment terminal and default items like a power cable.<\/li>\n<li>An accessory, like a privacy shield, a stylus pen, or a replacement power cable.<\/li>\n<\/ul>\n<p>Apart from the products, an order includes:<\/p>\n<ul>\n<li>A <strong>billing entity<\/strong> 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.<\/li>\n<li>A <strong>shipping location<\/strong> 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.<\/li>\n<\/ul>\n<h3>Regional compatibility<\/h3>\n<p>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.<\/p>\n<p>For example, if you ordered a European terminal having delivered them to the US, it would not work even with a US power cord.<\/p>\n<h2 id=\"get-product-id\">Get the product ID<\/h2>\n<p>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:<\/p>\n<ol>\n<li>\n<p>Get the ID of the account you want to order products for. You need to specify that ID in the URL of later requests.<\/p>\n<ul>\n<li>For the company ID, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies<\/a> request.<\/li>\n<li>For the merchant ID, make a GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants<\/a> request.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Get a list of payment terminal models you can order for your company or merchant account. Use the following endpoints:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalModels\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalModels<\/a><\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalModels\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalModels<\/a><\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get model list for a merchant account'\" :id=\"'get-model-list-for-a-merchant-account-1293685926'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalModels \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalModelsResponse response = service.listTerminalModels(\\&quot;merchantId\\&quot;, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;listTerminalModels('merchantId');&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.ListTerminalModels(\\&quot;merchantId\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listTerminalModels(\\&quot;merchantId\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.ListTerminalModelsInput(\\&quot;merchantId\\&quot;)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.ListTerminalModels(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_terminal_models(merchantId=\\&quot;merchantId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_terminal_models('merchantId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listTerminalModels(\\&quot;merchantId\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns the <code>id<\/code> and <code>name<\/code> of the various models. You can use the <code>id<\/code> as a query parameter to filter the product list in the next step.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Model list'\" :id=\"'1399217606'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n   \\\"data\\\": [\\n      {\\n         \\\"id\\\": \\\"Verifone.V400m\\\",\\n         \\\"name\\\": \\\"Verifone V400m\\\"\\n      },\\n      ...\\n      {\\n         \\\"id\\\": \\\"Castles.S1F2\\\",\\n         \\\"name\\\": \\\"Castles S1F2\\\"\\n      }\\n   ]\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>Get a list of products you can order for your company or merchant account. Use the following endpoints, with the <code>country<\/code> as a query parameter:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalProducts\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalProducts<\/a><\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalProducts\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalProducts<\/a><\/li>\n<\/ul>\n<p>These are the query parameters to filter the paginated response:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Query parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalProducts#query-country\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">country<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">Returns products for the country\/region specified by a two-letter country code in <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISO_3166-1_alpha-2\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">ISO 3166-1 alpha-2 format<\/a>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalProducts#query-terminalModelId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">terminalModelId<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns products for the terminal model specified by its ID. This is the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalModels#responses-200-data-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> returned in the <code>\/terminalModels<\/code> response. The product list will show the details of the box containing the terminal and all accessories you can order for that terminal model.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalProducts#query-offset\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">offset<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns products shown on the specified page.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalProducts#query-limit\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">limit<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The number of products to have on a page.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>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.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get product list by terminal model for a French merchant account'\" :id=\"'get-product-list-by-terminal-model-for-a-french-merchant-account-5079700850'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalProducts?country=FR&amp;terminalModelId=Verifone.V400m \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalProductsResponse response = service.listTerminalProducts(\\&quot;merchantId\\&quot;, \\&quot;String\\&quot;, \\&quot;String\\&quot;, 1, 1, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n$requestOptions['queryParams'] = array('country' =&gt; 'string', 'terminalModelId' =&gt; 'string', 'offset' =&gt; 'integer', 'limit' =&gt; 'integer');\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;listTerminalProducts('merchantId', $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.ListTerminalProducts(\\&quot;merchantId\\&quot;, country: \\&quot;string\\&quot;, terminalModelId: \\&quot;string\\&quot;, offset: 1, limit: 1);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listTerminalProducts(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.ListTerminalProductsInput(\\&quot;merchantId\\&quot;)\\nreq = req.Country(\\&quot;string\\&quot;).TerminalModelId(\\&quot;string\\&quot;).Offset(1).Limit(1)res, httpRes, err := service.TerminalOrdersMerchantLevelApi.ListTerminalProducts(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nquery_parameters = {\\n  \\&quot;country\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;terminalModelId\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;offset\\&quot; : \\&quot;integer\\&quot;,\\n  \\&quot;limit\\&quot; : \\&quot;integer\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_terminal_products(merchantId=\\&quot;merchantId\\&quot;, query_parameters=query_parameters)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nquery_params = {\\n  :country =&gt; 'string',\\n  :terminalModelId =&gt; 'string',\\n  :offset =&gt; 'integer',\\n  :limit =&gt; 'integer'\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_terminal_products('merchantId', query_params: query_params)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listTerminalProducts(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you receive the response, save the <code>id<\/code> values of the products you want to order.<\/p>\n<p>The next example shows the response for the GET <code>merchants\/{merchantId}\/terminalProducts?country=FR&amp;terminalModelId=Verifone.V400m<\/code> request (prices have been changed to 0.00 in the example).<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Products related to a terminal model'\" :id=\"'2658805980'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n        \\\"data\\\": [\\n            {\\n                \\\"id\\\": \\\"PART-620222-EU\\\",\\n                \\\"name\\\": \\\"Receipt Roll\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                }\\n            },\\n            {\\n                \\\"id\\\": \\\"PART-175746-EU\\\",\\n                \\\"name\\\": \\\"Adyen Test Card\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                }\\n            },\\n            {\\n                \\\"id\\\": \\\"PART-327486-EU\\\",\\n                \\\"name\\\": \\\"Battery - V400m\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                }\\n            },\\n            {\\n                \\\"id\\\": \\\"PART-287001-EU\\\",\\n                \\\"name\\\": \\\"Bluetooth Charging Base - V400m\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                }\\n            },\\n            {\\n                \\\"id\\\": \\\"PART-745984-EU\\\",\\n                \\\"name\\\": \\\"Power Supply EU - V400m\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                }\\n            },\\n            {\\n                \\\"id\\\": \\\"TBOX-V400m-684-EU\\\",\\n                \\\"name\\\": \\\"V400m Package\\\",\\n                \\\"description\\\": \\\"Includes an EU Power Supply, SIM Card and battery\\\",\\n                \\\"price\\\": {\\n                    \\\"currency\\\": \\\"EUR\\\",\\n                    \\\"value\\\": 0.00\\n                },\\n                \\\"itemsIncluded\\\": [\\n                    \\\"Receipt Roll\\\",\\n                    \\\"Terminal Device V400m EU\\\/GB\\\"\\n                ]\\n            }\\n        ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"get-billing-entity-id\">Get the billing entity ID<\/h2>\n<p>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.<\/p>\n<div class=\"notices green\">\n<p>When ordering products in Brazil, you do not need to provide a billing entity ID.<\/p>\n<\/div>\n<ol>\n<li>\n<p>Get the billing entity ID for your company or merchant account. Use the following endpoints:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/billingEntities\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/billingEntities<\/a> for the billing entities of the company and all merchant accounts belonging to the company.<\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/billingEntities\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/billingEntities<\/a> for the billing entities of the merchant account.<\/li>\n<\/ul>\n<p>You can filter the response using the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/billingEntities#query-name\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">name<\/a> of the billing entity as the query parameter:<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get billing entities for a company'\" :id=\"'get-billing-entities-for-a-company-9584635418'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/companies\\\/{companyId}\\\/billingEntities \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersCompanyLevelApi service = new TerminalOrdersCompanyLevelApi(client);\\nBillingEntitiesResponse response = service.listBillingEntities(\\&quot;companyId\\&quot;, \\&quot;String\\&quot;, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersCompanyLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n$requestOptions['queryParams'] = array('name' =&gt; 'string');\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersCompanyLevelApi($client);\\n$response = $service-&gt;listBillingEntities('companyId', $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersCompanyLevelService(client);\\nvar response = service.ListBillingEntities(\\&quot;companyId\\&quot;, name: \\&quot;string\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersCompanyLevelApi.listBillingEntities(\\&quot;companyId\\&quot;, \\&quot;string\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersCompanyLevelApi.ListBillingEntitiesInput(\\&quot;companyId\\&quot;)\\nreq = req.Name(\\&quot;string\\&quot;)res, httpRes, err := service.TerminalOrdersCompanyLevelApi.ListBillingEntities(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nquery_parameters = {\\n  \\&quot;name\\&quot; : \\&quot;string\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_company_level_api.list_billing_entities(companyId=\\&quot;companyId\\&quot;, query_parameters=query_parameters)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nquery_params = {\\n  :name =&gt; 'string'\\n}\\n\\nresult = adyen.management.terminal_orders_company_level_api.list_billing_entities('companyId', query_params: query_params)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersCompanyLevelApi.listBillingEntities(\\&quot;companyId\\&quot;, \\&quot;string\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you receive the response, save the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/billingEntities#responses-200-data-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the billing entity to use in your order. The response also returns the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/billingEntities#responses-200-data-name\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">name<\/a>,  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/billingEntities#responses-200-data-taxId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">taxId<\/a> (VAT number) and contact details for each billing entity.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Billing entity list'\" :id=\"'8406786790'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"data\\\": [\\n        {\\n          \\\"id\\\": \\\"Company.ExampleCompany\\\",\\n          \\\"name\\\": \\\"ExampleCompany\\\",\\n          \\\"taxId\\\": \\\"111111111\\\",\\n          \\\"email\\\": \\\"financial@company.com\\\",\\n          \\\"address\\\": {\\n            \\\"companyName\\\": \\\"Example Company\\\",\\n            \\\"streetAddress\\\": \\\"Boulevard Principal 3\\\",\\n            \\\"streetAddress2\\\": \\\"Tour Azure\\\",\\n            \\\"postalCode\\\": \\\"23456\\\",\\n            \\\"city\\\": \\\"Paris\\\",\\n            \\\"country\\\": \\\"France\\\"\\n          }\\n        },\\n        ...\\n        {\\n          \\\"id\\\": \\\"MerchantAccount.ExampleCompanyFrance\\\",\\n          \\\"name\\\": \\\"ExampleCompanyFrance\\\",\\n          \\\"taxId\\\": \\\"222222222\\\",\\n          \\\"email\\\": \\\"jdupont@test.com\\\",\\n          \\\"address\\\": {\\n            \\\"companyName\\\": \\\"Example Company France\\\",\\n            \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n            \\\"postalCode\\\": \\\"12345\\\",\\n            \\\"city\\\": \\\"Paris\\\",\\n            \\\"country\\\": \\\"France\\\"\\n          }\\n        }\\n      ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"get-shipping-location-id\">Get the shipping location ID<\/h2>\n<p>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.<\/p>\n<h4>New shipping location<\/h4>\n<ol>\n<li>\n<p>To create a shipping location for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/companies\/(companyId)\/shippingLocations\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/shippingLocations<\/a><\/li>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/shippingLocations<\/a><\/li>\n<\/ul>\n<p>Specify the following parameters in the request body:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations#request-name\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">name<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">A unique reference that lets you recognize the location.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations#request-contact\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">contact<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The name and phone number of the individual who can be contacted about the shipment.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations#request-address\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">address<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">Where to send the order.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Create shipping location'\" :id=\"'create-shipping-location-0811064721'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/shippingLocations \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X POST \\\\\\n-d '{\\n  \\&quot;name\\&quot;: \\&quot;POS France depot\\&quot;,\\n  \\&quot;contact\\&quot;: {\\n     \\&quot;firstName\\&quot;: \\&quot;Jesse\\&quot;,\\n     \\&quot;lastName\\&quot;: \\&quot;Dupont\\&quot;,\\n     \\&quot;phoneNumber\\&quot;: \\&quot;+33 1 76 35 07 90\\&quot;,\\n     \\&quot;email\\&quot;: \\&quot;jdupont@test.com\\&quot;\\n  },\\n  \\&quot;address\\&quot;: {\\n     \\&quot;companyName\\&quot;: \\&quot;Example Company France\\&quot;,\\n     \\&quot;streetAddress\\&quot;: \\&quot;11 Rue de Ville\\&quot;,\\n     \\&quot;postalCode\\&quot;: \\&quot;12345\\&quot;,\\n     \\&quot;city\\&quot;: \\&quot;Paris\\&quot;,\\n     \\&quot;stateOrProvince\\&quot;: \\&quot;\\&quot;,\\n     \\&quot;country\\&quot;: \\&quot;FR\\&quot;\\n  }\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Request objects\\nAddress address = new Address()\\n\\t.country(\\&quot;FR\\&quot;)\\n\\t.stateOrProvince(\\&quot;\\&quot;)\\n\\t.streetAddress(\\&quot;11 Rue de Ville\\&quot;)\\n\\t.city(\\&quot;Paris\\&quot;)\\n\\t.companyName(\\&quot;Example Company France\\&quot;)\\n\\t.postalCode(\\&quot;12345\\&quot;);\\n\\nContact contact = new Contact()\\n\\t.firstName(\\&quot;Jesse\\&quot;)\\n\\t.lastName(\\&quot;Dupont\\&quot;)\\n\\t.phoneNumber(\\&quot;+33 1 76 35 07 90\\&quot;)\\n\\t.email(\\&quot;jdupont@test.com\\&quot;);\\n\\nShippingLocation shippingLocation = new ShippingLocation()\\n\\t.address(address)\\n\\t.contact(contact)\\n\\t.name(\\&quot;POS France depot\\&quot;);\\n\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nShippingLocation response = service.createShippingLocation(\\&quot;merchantId\\&quot;, shippingLocation, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Management\\\\Address;\\nuse Adyen\\\\Model\\\\Management\\\\Contact;\\nuse Adyen\\\\Model\\\\Management\\\\ShippingLocation;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Request objects\\n$address = new Address();\\n$address\\n\\t-&gt;setCountry(\\&quot;FR\\&quot;)\\n\\t-&gt;setStateOrProvince(\\&quot;\\&quot;)\\n\\t-&gt;setStreetAddress(\\&quot;11 Rue de Ville\\&quot;)\\n\\t-&gt;setCity(\\&quot;Paris\\&quot;)\\n\\t-&gt;setCompanyName(\\&quot;Example Company France\\&quot;)\\n\\t-&gt;setPostalCode(\\&quot;12345\\&quot;);\\n\\n$contact = new Contact();\\n$contact\\n\\t-&gt;setFirstName(\\&quot;Jesse\\&quot;)\\n\\t-&gt;setLastName(\\&quot;Dupont\\&quot;)\\n\\t-&gt;setPhoneNumber(\\&quot;+33 1 76 35 07 90\\&quot;)\\n\\t-&gt;setEmail(\\&quot;jdupont@test.com\\&quot;);\\n\\n$shippingLocation = new ShippingLocation();\\n$shippingLocation\\n\\t-&gt;setAddress($address)\\n\\t-&gt;setContact($contact)\\n\\t-&gt;setName(\\&quot;POS France depot\\&quot;);\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;createShippingLocation('merchantId', $shippingLocation);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Fill in your request objects\\nAddress address = new Address\\n{\\n\\tCountry = \\&quot;FR\\&quot;,\\n\\tStateOrProvince = \\&quot;\\&quot;,\\n\\tStreetAddress = \\&quot;11 Rue de Ville\\&quot;,\\n\\tCity = \\&quot;Paris\\&quot;,\\n\\tCompanyName = \\&quot;Example Company France\\&quot;,\\n\\tPostalCode = \\&quot;12345\\&quot;\\n};\\n\\nContact contact = new Contact\\n{\\n\\tFirstName = \\&quot;Jesse\\&quot;,\\n\\tLastName = \\&quot;Dupont\\&quot;,\\n\\tPhoneNumber = \\&quot;+33 1 76 35 07 90\\&quot;,\\n\\tEmail = \\&quot;jdupont@test.com\\&quot;\\n};\\n\\nShippingLocation shippingLocation = new ShippingLocation\\n{\\n\\tAddress = address,\\n\\tContact = contact,\\n\\tName = \\&quot;POS France depot\\&quot;\\n};\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.CreateShippingLocation(\\&quot;merchantId\\&quot;, shippingLocation);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object\\nconst shippingLocation = {\\n  name: \\&quot;POS France depot\\&quot;,\\n  contact: {\\n    firstName: \\&quot;Jesse\\&quot;,\\n    lastName: \\&quot;Dupont\\&quot;,\\n    phoneNumber: \\&quot;+33 1 76 35 07 90\\&quot;,\\n    email: \\&quot;jdupont@test.com\\&quot;\\n  },\\n  address: {\\n    companyName: \\&quot;Example Company France\\&quot;,\\n    streetAddress: \\&quot;11 Rue de Ville\\&quot;,\\n    postalCode: \\&quot;12345\\&quot;,\\n    city: \\&quot;Paris\\&quot;,\\n    stateOrProvince: \\&quot;\\&quot;,\\n    country: \\&quot;FR\\&quot;\\n  }\\n}\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.createShippingLocation(\\&quot;merchantId\\&quot;, shippingLocation);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Fill in your request objects\\naddress := management.Address{\\n\\tCountry: common.PtrString(\\&quot;FR\\&quot;),\\n\\tStateOrProvince: common.PtrString(\\&quot;\\&quot;),\\n\\tStreetAddress: common.PtrString(\\&quot;11 Rue de Ville\\&quot;),\\n\\tCity: common.PtrString(\\&quot;Paris\\&quot;),\\n\\tCompanyName: common.PtrString(\\&quot;Example Company France\\&quot;),\\n\\tPostalCode: common.PtrString(\\&quot;12345\\&quot;),\\n}\\n\\ncontact := management.Contact{\\n\\tFirstName: common.PtrString(\\&quot;Jesse\\&quot;),\\n\\tLastName: common.PtrString(\\&quot;Dupont\\&quot;),\\n\\tPhoneNumber: common.PtrString(\\&quot;+33 1 76 35 07 90\\&quot;),\\n\\tEmail: common.PtrString(\\&quot;jdupont@test.com\\&quot;),\\n}\\n\\nshippingLocation := management.ShippingLocation{\\n\\tAddress: &amp;address,\\n\\tContact: &amp;contact,\\n\\tName: common.PtrString(\\&quot;POS France depot\\&quot;),\\n}\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.CreateShippingLocationInput(\\&quot;merchantId\\&quot;).ShippingLocation(shippingLocation)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.CreateShippingLocation(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\njson_request = {\\n  \\&quot;name\\&quot;: \\&quot;POS France depot\\&quot;,\\n  \\&quot;contact\\&quot;: {\\n    \\&quot;firstName\\&quot;: \\&quot;Jesse\\&quot;,\\n    \\&quot;lastName\\&quot;: \\&quot;Dupont\\&quot;,\\n    \\&quot;phoneNumber\\&quot;: \\&quot;+33 1 76 35 07 90\\&quot;,\\n    \\&quot;email\\&quot;: \\&quot;jdupont@test.com\\&quot;\\n  },\\n  \\&quot;address\\&quot;: {\\n    \\&quot;companyName\\&quot;: \\&quot;Example Company France\\&quot;,\\n    \\&quot;streetAddress\\&quot;: \\&quot;11 Rue de Ville\\&quot;,\\n    \\&quot;postalCode\\&quot;: \\&quot;12345\\&quot;,\\n    \\&quot;city\\&quot;: \\&quot;Paris\\&quot;,\\n    \\&quot;stateOrProvince\\&quot;: \\&quot;\\&quot;,\\n    \\&quot;country\\&quot;: \\&quot;FR\\&quot;\\n  }\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.create_shipping_location(request=json_request, merchantId=\\&quot;merchantId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nrequest_body = {\\n  :name =&gt; 'POS France depot',\\n  :contact =&gt; {\\n    :firstName =&gt; 'Jesse',\\n    :lastName =&gt; 'Dupont',\\n    :phoneNumber =&gt; '+33 1 76 35 07 90',\\n    :email =&gt; 'jdupont@test.com'\\n  },\\n  :address =&gt; {\\n    :companyName =&gt; 'Example Company France',\\n    :streetAddress =&gt; '11 Rue de Ville',\\n    :postalCode =&gt; '12345',\\n    :city =&gt; 'Paris',\\n    :stateOrProvince =&gt; '',\\n    :country =&gt; 'FR'\\n  }\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.create_shipping_location(request_body, 'merchantId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request objects\\nconst address: Types.management.Address = {\\n\\tcountry: \\&quot;FR\\&quot;,\\n\\tstateOrProvince: \\&quot;\\&quot;,\\n\\tstreetAddress: \\&quot;11 Rue de Ville\\&quot;,\\n\\tcity: \\&quot;Paris\\&quot;,\\n\\tcompanyName: \\&quot;Example Company France\\&quot;,\\n\\tpostalCode: \\&quot;12345\\&quot;\\n};\\n\\nconst contact: Types.management.Contact = {\\n\\tfirstName: \\&quot;Jesse\\&quot;,\\n\\tlastName: \\&quot;Dupont\\&quot;,\\n\\tphoneNumber: \\&quot;+33 1 76 35 07 90\\&quot;,\\n\\temail: \\&quot;jdupont@test.com\\&quot;\\n};\\n\\nconst shippingLocation: Types.management.ShippingLocation = {\\n\\taddress: address,\\n\\tcontact: contact,\\n\\tname: \\&quot;POS France depot\\&quot;\\n};\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.createShippingLocation(\\&quot;merchantId\\&quot;, shippingLocation);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you receive the response, note the following details:<\/p>\n<ul>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a>&#58; The generated shipping location ID. Save this ID because you need to specify it when you order terminal products.<\/li>\n<li> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/shippingLocations#responses-200-name\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">name<\/a>&#58; Your reference for this location. You can use the reference to filter the list of shipping locations.<\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Shipping location created'\" :id=\"'8447033125'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"id\\\": \\\"S2-7145604F44356F424F4369432B3F486B6A6D\\\",\\n      \\\"name\\\": \\\"POS France depot\\\",\\n      \\\"contact\\\": {\\n        \\\"firstName\\\": \\\"Jesse\\\",\\n        \\\"lastName\\\": \\\"Dupont\\\",\\n        \\\"phoneNumber\\\": \\\"+33176350790\\\",\\n        \\\"email\\\": \\\"jdupont@test.com\\\"\\n      },\\n      \\\"address\\\": {\\n        \\\"companyName\\\": \\\"Example Company France\\\",\\n        \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n        \\\"postalCode\\\": \\\"12345\\\",\\n        \\\"city\\\": \\\"Paris\\\"\\n      }\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<div class=\"notices yellow\">\n<p>If your next step after creating a new shipping location is to create an order for the new location, wait a few seconds before sending the order creation request.<\/p>\n<\/div>\n<h4>Existing shipping locations<\/h4>\n<ol>\n<li>\n<p>To get a list of existing shipping locations for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/shippingLocations\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/shippingLocations<\/a><\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/shippingLocations\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/shippingLocations<\/a><\/li>\n<\/ul>\n<p>You can filter the paginated response using the following query parameters:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Query parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/shippingLocations#query-name\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">name<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Filters the list by your reference to the shipping location.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/shippingLocations#query-offset\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">offset<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns locations starting from this offset.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/shippingLocations#query-limit\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">limit<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Sets a limit for the number of locations to 3return.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get shipping locations for a merchant account'\" :id=\"'get-shipping-locations-for-a-merchant-account-1994202545'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/shippingLocations \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nShippingLocationsResponse response = service.listShippingLocations(\\&quot;merchantId\\&quot;, \\&quot;String\\&quot;, 1, 1, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n$requestOptions['queryParams'] = array('name' =&gt; 'string', 'offset' =&gt; 'integer', 'limit' =&gt; 'integer');\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;listShippingLocations('merchantId', $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.ListShippingLocations(\\&quot;merchantId\\&quot;, name: \\&quot;string\\&quot;, offset: 1, limit: 1);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listShippingLocations(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.ListShippingLocationsInput(\\&quot;merchantId\\&quot;)\\nreq = req.Name(\\&quot;string\\&quot;).Offset(1).Limit(1)res, httpRes, err := service.TerminalOrdersMerchantLevelApi.ListShippingLocations(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nquery_parameters = {\\n  \\&quot;name\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;offset\\&quot; : \\&quot;integer\\&quot;,\\n  \\&quot;limit\\&quot; : \\&quot;integer\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_shipping_locations(merchantId=\\&quot;merchantId\\&quot;, query_parameters=query_parameters)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nquery_params = {\\n  :name =&gt; 'string',\\n  :offset =&gt; 'integer',\\n  :limit =&gt; 'integer'\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_shipping_locations('merchantId', query_params: query_params)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listShippingLocations(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>When you receive the response, save the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/shippingLocations#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> of the shipping location to use in your order.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Shipping locations list'\" :id=\"'9980292256'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"data\\\": [\\n        {\\n          \\\"id\\\": \\\"S2-7145604F44356F424F4369432B3F486B6A6D\\\",\\n          \\\"name\\\": \\\"POS France depot\\\",\\n          \\\"contact\\\": {\\n            \\\"firstName\\\": \\\"Jesse\\\",\\n            \\\"lastName\\\": \\\"Dupont\\\",\\n            \\\"phoneNumber\\\": \\\"+33 1 76 35 07 90\\\",\\n            \\\"email\\\": \\\"jdupont@test.com\\\"\\n          },\\n          \\\"address\\\": {\\n            \\\"companyName\\\": \\\"Example Company France\\\",\\n            \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n            \\\"postalCode\\\": \\\"12345\\\",\\n            \\\"city\\\": \\\"Paris\\\",\\n            \\\"country\\\": \\\"France\\\"\\n          }\\n        },\\n        {\\n          ...\\n        }\\n      ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2>Create a terminal order<\/h2>\n<p>Use this request to order live terminals for your company or merchant account.<\/p>\n<div class=\"notices yellow\">\n<p>Requests to the Management API test endpoint do not create actual orders for test terminals. To order test terminals, you need to <a href=\"\/pt\/point-of-sale\/managing-terminals\/order-terminals\/#sales-order-steps\">submit a sales order<\/a> in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">test Customer Area<\/a>.<\/p>\n<\/div>\n<ol>\n<li>\n<p>Make sure that you have the following details:<\/p>\n<ul>\n<li>The <a href=\"#get-product-id\">IDs of the products<\/a> you want to order.<\/li>\n<li>The <a href=\"#get-billing-entity-id\">ID of the billing entity<\/a>.<\/li>\n<li>The <a href=\"#get-shipping-location-id\">ID of the shipping location<\/a>.<\/li>\n<\/ul>\n<div class=\"notices yellow\">\n<p>If the order includes a new shipping location, wait a few seconds after creating the new location before sending the order creation request.<\/p>\n<\/div>\n<\/li>\n<li>\n<p>To create an order for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/companies\/(companyId)\/terminalOrders\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalOrders<\/a><\/li>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalOrders<\/a><\/li>\n<\/ul>\n<p>Specify the following parameters in the request body:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#request-customerOrderReference\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">customerOrderReference<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Your purchase order number. This will be printed on the packing list.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#request-billingEntityId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">billingEntityId<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The ID of the <a href=\"#get-billing-entity-id\">billing entity<\/a> for the company or merchant account. <div class=\"sc-notice info\"><div> When ordering products in Brazil, you do not need to include the <code>billingEntityId<\/code> in the request.<\/div><\/div><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#request-shippingLocationId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shippingLocationId<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The ID of the <a href=\"#get-shipping-location-id\">shipping location<\/a> where we need to send the order.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#request-items\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">items<\/a><\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">An array listing the <code>id<\/code> and <code>quantity<\/code> of each product you want to order.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#request-taxId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">taxId<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The tax number (VAT number) of the billing entity. Specify this parameter when the shipping location and the billing entity are in different countries\/regions.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The next example places an order for one V400m terminal and 20 receipt rolls.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Place a terminal order'\" :id=\"'place-a-terminal-order-1422867614'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalOrders \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X POST \\\\\\n-d '{\\n   \\&quot;items\\&quot;: [\\n      {\\n         \\&quot;id\\&quot;: \\&quot;TBOX-V400m-774-EU\\&quot;,\\n         \\&quot;quantity\\&quot;: 1\\n      },\\n      {\\n         \\&quot;id\\&quot;: \\&quot;PART-482077-EU\\&quot;,\\n         \\&quot;quantity\\&quot;: 20\\n      }\\n  ],\\n  \\&quot;customerOrderReference\\&quot;: \\&quot;YOUR_REFERENCE_1\\&quot;,\\n  \\&quot;shippingLocationId\\&quot;: \\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;,\\n  \\&quot;billingEntityId\\&quot;: \\&quot;Company.ExampleCompany\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Request objects\\nOrderItem orderItem1 = new OrderItem()\\n\\t.quantity(1)\\n\\t.id(\\&quot;TBOX-V400m-774-EU\\&quot;);\\n\\nOrderItem orderItem2 = new OrderItem()\\n\\t.quantity(20)\\n\\t.id(\\&quot;PART-482077-EU\\&quot;);\\n\\nTerminalOrderRequest terminalOrderRequest = new TerminalOrderRequest()\\n\\t.customerOrderReference(\\&quot;YOUR_REFERENCE_1\\&quot;)\\n\\t.shippingLocationId(\\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;)\\n\\t.billingEntityId(\\&quot;Company.ExampleCompany\\&quot;)\\n\\t.items(Arrays.asList(orderItem1, orderItem2));\\n\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalOrder response = service.createOrder(\\&quot;merchantId\\&quot;, terminalOrderRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Management\\\\OrderItem;\\nuse Adyen\\\\Model\\\\Management\\\\TerminalOrderRequest;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Request objects\\n$orderItem1 = new OrderItem();\\n$orderItem1\\n\\t-&gt;setQuantity(1)\\n\\t-&gt;setId(\\&quot;TBOX-V400m-774-EU\\&quot;);\\n\\n$orderItem2 = new OrderItem();\\n$orderItem2\\n\\t-&gt;setQuantity(20)\\n\\t-&gt;setId(\\&quot;PART-482077-EU\\&quot;);\\n\\n$terminalOrderRequest = new TerminalOrderRequest();\\n$terminalOrderRequest\\n\\t-&gt;setCustomerOrderReference(\\&quot;YOUR_REFERENCE_1\\&quot;)\\n\\t-&gt;setShippingLocationId(\\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;)\\n\\t-&gt;setBillingEntityId(\\&quot;Company.ExampleCompany\\&quot;)\\n\\t-&gt;setItems(array($orderItem1, $orderItem2));\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;createOrder('merchantId', $terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Fill in your request objects\\nOrderItem orderItem1 = new OrderItem\\n{\\n\\tQuantity = 1,\\n\\tId = \\&quot;TBOX-V400m-774-EU\\&quot;\\n};\\n\\nOrderItem orderItem2 = new OrderItem\\n{\\n\\tQuantity = 20,\\n\\tId = \\&quot;PART-482077-EU\\&quot;\\n};\\n\\nTerminalOrderRequest terminalOrderRequest = new TerminalOrderRequest\\n{\\n\\tCustomerOrderReference = \\&quot;YOUR_REFERENCE_1\\&quot;,\\n\\tShippingLocationId = \\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;,\\n\\tBillingEntityId = \\&quot;Company.ExampleCompany\\&quot;,\\n\\tItems = new List&lt;OrderItem&gt;{ orderItem1, orderItem2 }\\n};\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.CreateOrder(\\&quot;merchantId\\&quot;, terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object\\nconst terminalOrderRequest = {\\n  items: [ {\\n    id: \\&quot;TBOX-V400m-774-EU\\&quot;,\\n    quantity: 1\\n  }, {\\n    id: \\&quot;PART-482077-EU\\&quot;,\\n    quantity: 20\\n  } ],\\n  customerOrderReference: \\&quot;YOUR_REFERENCE_1\\&quot;,\\n  shippingLocationId: \\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;,\\n  billingEntityId: \\&quot;Company.ExampleCompany\\&quot;\\n}\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.createOrder(\\&quot;merchantId\\&quot;, terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Fill in your request objects\\norderItem1 := management.OrderItem{\\n\\tQuantity: common.PtrInt32(1),\\n\\tId: common.PtrString(\\&quot;TBOX-V400m-774-EU\\&quot;),\\n}\\n\\norderItem2 := management.OrderItem{\\n\\tQuantity: common.PtrInt32(20),\\n\\tId: common.PtrString(\\&quot;PART-482077-EU\\&quot;),\\n}\\n\\nterminalOrderRequest := management.TerminalOrderRequest{\\n\\tCustomerOrderReference: common.PtrString(\\&quot;YOUR_REFERENCE_1\\&quot;),\\n\\tShippingLocationId: common.PtrString(\\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;),\\n\\tBillingEntityId: common.PtrString(\\&quot;Company.ExampleCompany\\&quot;),\\n\\tItems: []management.OrderItem{\\n\\t\\t\\torderItem1, orderItem2,\\n\\t},\\n}\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.CreateOrderInput(\\&quot;merchantId\\&quot;).TerminalOrderRequest(terminalOrderRequest)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.CreateOrder(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\njson_request = {\\n  \\&quot;items\\&quot;: [ {\\n    \\&quot;id\\&quot;: \\&quot;TBOX-V400m-774-EU\\&quot;,\\n    \\&quot;quantity\\&quot;: 1\\n  }, {\\n    \\&quot;id\\&quot;: \\&quot;PART-482077-EU\\&quot;,\\n    \\&quot;quantity\\&quot;: 20\\n  } ],\\n  \\&quot;customerOrderReference\\&quot;: \\&quot;YOUR_REFERENCE_1\\&quot;,\\n  \\&quot;shippingLocationId\\&quot;: \\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;,\\n  \\&quot;billingEntityId\\&quot;: \\&quot;Company.ExampleCompany\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.create_order(request=json_request, merchantId=\\&quot;merchantId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nrequest_body = {\\n  :items =&gt; [ {\\n    :id =&gt; 'TBOX-V400m-774-EU',\\n    :quantity =&gt; 1\\n  }, {\\n    :id =&gt; 'PART-482077-EU',\\n    :quantity =&gt; 20\\n  } ],\\n  :customerOrderReference =&gt; 'YOUR_REFERENCE_1',\\n  :shippingLocationId =&gt; 'S2-7145604F44356F424F4369432B3F486B6A6D',\\n  :billingEntityId =&gt; 'Company.ExampleCompany'\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.create_order(request_body, 'merchantId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request objects\\nconst orderItem1: Types.management.OrderItem = {\\n\\tquantity: 1,\\n\\tid: \\&quot;TBOX-V400m-774-EU\\&quot;\\n};\\n\\nconst orderItem2: Types.management.OrderItem = {\\n\\tquantity: 20,\\n\\tid: \\&quot;PART-482077-EU\\&quot;\\n};\\n\\nconst terminalOrderRequest: Types.management.TerminalOrderRequest = {\\n\\tcustomerOrderReference: \\&quot;YOUR_REFERENCE_1\\&quot;,\\n\\tshippingLocationId: \\&quot;S2-7145604F44356F424F4369432B3F486B6A6D\\&quot;,\\n\\tbillingEntityId: \\&quot;Company.ExampleCompany\\&quot;,\\n\\titems: [orderItem1, orderItem2]\\n};\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.createOrder(\\&quot;merchantId\\&quot;, terminalOrderRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response echoes the parameters you provided and additionally includes the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#responses-200-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">id<\/a> and  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders#responses-200-status\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">status<\/a> of your order, the date and time you placed the order, and the full details of the billing entity and the shipping location.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Order placed'\" :id=\"'8654419552'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"id\\\": \\\"7219627091701347\\\",\\n      \\\"customerOrderReference\\\": \\\"YOUR_REFERENCE_1\\\",\\n      \\\"status\\\": \\\"Placed\\\",\\n      \\\"shippingLocation\\\": {\\n        \\\"id\\\": \\\"S2-7145604F44356F424F4369432B3F486B6A6D\\\",\\n        \\\"name\\\": \\\"POS France depot\\\",\\n        \\\"contact\\\": {\\n          \\\"firstName\\\": \\\"Jesse\\\",\\n          \\\"lastName\\\": \\\"Dupont\\\",\\n          \\\"phoneNumber\\\": \\\"+33 1 76 35 07 90\\\",\\n          \\\"email\\\": \\\"jdupont@test.com\\\"\\n        },\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company France\\\",\\n          \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n          \\\"postalCode\\\": \\\"12345\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        }\\n      },\\n      \\\"billingEntity\\\": {\\n        \\\"id\\\": \\\"Company.ExampleCompany\\\",\\n        \\\"name\\\": \\\"ExampleCompany\\\",\\n        \\\"taxId\\\": \\\"111111111\\\",\\n        \\\"email\\\": \\\"financial@company.com\\\",\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company\\\",\\n          \\\"streetAddress\\\": \\\"Boulevard Principal 3\\\",\\n          \\\"streetAddress2\\\": \\\"Tour Azure\\\",\\n          \\\"postalCode\\\": \\\"23456\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        }\\n      },\\n      \\\"orderDate\\\": \\\"2020-01-22T14:12:33Z\\\",\\n      \\\"items\\\": [\\n        {\\n          \\\"id\\\": \\\"TBOX-V400m-684-EU\\\",\\n          \\\"name\\\": \\\"V400m Package\\\",\\n          \\\"quantity\\\": 1\\n        },\\n        {\\n          \\\"id\\\": \\\"PART-620222-EU\\\",\\n          \\\"name\\\": \\\"Receipt Roll\\\",\\n          \\\"quantity\\\": 20\\n        }\\n      ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<p>When an order reaches the status Shipped, the response also includes a URL where you can track your order.<\/p>\n<h2 id=\"terminal-order-notifications\">Terminal order updates<\/h2>\n<p>To stay informed about your order, you can subscribe to <a href=\"\/pt\/point-of-sale\/managing-terminals\/order-terminals#terminal-order-notifications\">Terminal order update<\/a> 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 &amp; trace number. We send these platform webhooks as an HTTP callback (webhook) to your server.<\/p>\n<p>We also keep you up to date on the status of your order through email messages and in your <a href=\"https:\/\/ca-test.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a> &gt; <strong>Orders and returns<\/strong>.<\/p>\n<h2>Manage orders<\/h2>\n<p>You can <a href=\"#view-orders\">view <\/a>, <a href=\"#update-an-order\">update<\/a>, and <a href=\"#cancel-an-order\">cancel<\/a> 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.<\/p>\n<h3 id=\"view-orders\">View orders<\/h3>\n<p>You can use the <code>\/terminalOrders<\/code> 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 <a href=\"\/pt\/point-of-sale\/managing-terminals\/order-terminals#terminal-order-notifications\">Terminal order update<\/a> webhooks.<\/p>\n<h4>List of orders<\/h4>\n<ul>\n<li>\n<p>To get the details of all orders for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalOrders\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalOrders<\/a><\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalOrders<\/a><\/li>\n<\/ul>\n<p>You can filter the paginated response using the following query parameters:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Query parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders#query-customerOrderReference\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">customerOrderReference<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns the details of the specified purchase order number.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders#query-status\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">status<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns orders with the specified status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders#query-offset\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">offset<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">Returns the orders shown on the specified page.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders#query-limit\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">limit<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The number of orders to have on a page.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get a list of placed orders for a merchant account'\" :id=\"'get-a-list-of-placed-orders-for-a-merchant-account-8400327116'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalOrders?status=Placed \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalOrdersResponse response = service.listOrders(\\&quot;merchantId\\&quot;, \\&quot;String\\&quot;, \\&quot;String\\&quot;, 1, 1, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n$requestOptions['queryParams'] = array('customerOrderReference' =&gt; 'string', 'status' =&gt; 'string', 'offset' =&gt; 'integer', 'limit' =&gt; 'integer');\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;listOrders('merchantId', $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.ListOrders(\\&quot;merchantId\\&quot;, customerOrderReference: \\&quot;string\\&quot;, status: \\&quot;string\\&quot;, offset: 1, limit: 1);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listOrders(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.ListOrdersInput(\\&quot;merchantId\\&quot;)\\nreq = req.CustomerOrderReference(\\&quot;string\\&quot;).Status(\\&quot;string\\&quot;).Offset(1).Limit(1)res, httpRes, err := service.TerminalOrdersMerchantLevelApi.ListOrders(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nquery_parameters = {\\n  \\&quot;customerOrderReference\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;status\\&quot; : \\&quot;string\\&quot;,\\n  \\&quot;offset\\&quot; : \\&quot;integer\\&quot;,\\n  \\&quot;limit\\&quot; : \\&quot;integer\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_orders(merchantId=\\&quot;merchantId\\&quot;, query_parameters=query_parameters)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nquery_params = {\\n  :customerOrderReference =&gt; 'string',\\n  :status =&gt; 'string',\\n  :offset =&gt; 'integer',\\n  :limit =&gt; 'integer'\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.list_orders('merchantId', query_params: query_params)&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.listOrders(\\&quot;merchantId\\&quot;, \\&quot;string\\&quot;, \\&quot;string\\&quot;, 1, 1);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns an array of orders sorted by order date in ascending order. For each order, all  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders#responses-200-data\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">order details<\/a> are included.<\/p>\n<\/li>\n<\/ul>\n<h4>Individual order<\/h4>\n<ul>\n<li>\n<p>To get the details of an individual order for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/companies\/(companyId)\/terminalOrders\/(orderId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalOrders\/{orderId}<\/a><\/li>\n<li>GET  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/get\/merchants\/(merchantId)\/terminalOrders\/(orderId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalOrders\/{orderId}<\/a><\/li>\n<\/ul>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Get the details of a specific order'\" :id=\"'get-the-details-of-a-specific-order-2787842290'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalOrders\\\/{orderId} \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X GET&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalOrder response = service.getOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;getOrder('merchantId', 'orderId');&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.GetOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.getOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.GetOrderInput(\\&quot;merchantId\\&quot;,\\&quot;orderId\\&quot;)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.GetOrder(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.get_order(merchantId=\\&quot;merchantId\\&quot;, orderId=\\&quot;orderId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.get_order('merchantId', 'orderId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.getOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns all order details.<\/p>\n<\/li>\n<\/ul>\n<h3>Update an order<\/h3>\n<p>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 the <code>items<\/code> 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. <\/p>\n<ol>\n<li>\n<p><a href=\"#view-orders\">Get the ID of the order<\/a> you want to update and check that the order has the <code>status<\/code> <span translate=\"no\"><strong>Placed<\/strong><\/span>.<\/p>\n<\/li>\n<li>\n<p>To update the order for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>PATCH  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/companies\/(companyId)\/terminalOrders\/(orderId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalOrders\/{orderId}<\/a><\/li>\n<li>PATCH  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/terminalOrders\/(orderId)\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalOrders\/{orderId}<\/a><\/li>\n<\/ul>\n<p>Specify the following optional parameters in the request body as needed:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: center;\">Required<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/terminalOrders\/(orderId)#request-billingEntityId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">billingEntityId<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The ID of the <a href=\"#get-billing-entity-id\">billing entity<\/a> for the company or merchant account. <div class=\"sc-notice info\"><div> When ordering products in Brazil, you do not need to include the <code>billingEntityId<\/code> in the request.<\/div><\/div><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/terminalOrders\/(orderId)#request-shippingLocationId\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">shippingLocationId<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">The ID of the <a href=\"#get-shipping-location-id\">shipping location<\/a> where we need to send the order.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/patch\/merchants\/(merchantId)\/terminalOrders\/(orderId)#request-items\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">items<\/a><\/td>\n<td style=\"text-align: center;\"><\/td>\n<td style=\"text-align: left;\">An array listing the <code>id<\/code> and <code>quantity<\/code> of each product you want to order. To remove an item, specify all remaining items. To add an item, specify all items already in the order plus the additional item.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The next request removes the 20 receipt rolls from our example order <strong>7219627091701347<\/strong> by listing only the remaining order item, and changes the billing entity.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Update order items and billing entity'\" :id=\"'update-order-items-and-billing-entity-3614322809'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalOrders\\\/7219627091701347 \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X PATCH \\\\\\n-d '{\\n  \\&quot;items\\&quot;: [\\n     {\\n        \\&quot;id\\&quot;: \\&quot;V400m_1\\&quot;,\\n        \\&quot;quantity\\&quot;: 1\\n     }\\n  ],\\n  \\&quot;billingEntityId\\&quot;: \\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.management.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Request objects\\nOrderItem orderItem1 = new OrderItem()\\n\\t.quantity(1)\\n\\t.id(\\&quot;V400m_1\\&quot;);\\n\\nTerminalOrderRequest terminalOrderRequest = new TerminalOrderRequest()\\n\\t.billingEntityId(\\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;)\\n\\t.items(Arrays.asList(orderItem1));\\n\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalOrder response = service.updateOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, terminalOrderRequest, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Management\\\\OrderItem;\\nuse Adyen\\\\Model\\\\Management\\\\TerminalOrderRequest;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Request objects\\n$orderItem1 = new OrderItem();\\n$orderItem1\\n\\t-&gt;setQuantity(1)\\n\\t-&gt;setId(\\&quot;V400m_1\\&quot;);\\n\\n$terminalOrderRequest = new TerminalOrderRequest();\\n$terminalOrderRequest\\n\\t-&gt;setBillingEntityId(\\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;)\\n\\t-&gt;setItems(array($orderItem1));\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;updateOrder('merchantId', 'orderId', $terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Management;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Fill in your request objects\\nOrderItem orderItem1 = new OrderItem\\n{\\n\\tQuantity = 1,\\n\\tId = \\&quot;V400m_1\\&quot;\\n};\\n\\nTerminalOrderRequest terminalOrderRequest = new TerminalOrderRequest\\n{\\n\\tBillingEntityId = \\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;,\\n\\tItems = new List&lt;OrderItem&gt;{ orderItem1 }\\n};\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.UpdateOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request object\\nconst terminalOrderRequest = {\\n  items: [ {\\n    id: \\&quot;V400m_1\\&quot;,\\n    quantity: 1\\n  } ],\\n  billingEntityId: \\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;\\n}\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.updateOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, terminalOrderRequest);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Fill in your request objects\\norderItem1 := management.OrderItem{\\n\\tQuantity: common.PtrInt32(1),\\n\\tId: common.PtrString(\\&quot;V400m_1\\&quot;),\\n}\\n\\nterminalOrderRequest := management.TerminalOrderRequest{\\n\\tBillingEntityId: common.PtrString(\\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;),\\n\\tItems: []management.OrderItem{\\n\\t\\t\\torderItem1,\\n\\t},\\n}\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.UpdateOrderInput(\\&quot;merchantId\\&quot;,\\&quot;orderId\\&quot;).TerminalOrderRequest(terminalOrderRequest)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.UpdateOrder(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\njson_request = {\\n  \\&quot;items\\&quot;: [ {\\n    \\&quot;id\\&quot;: \\&quot;V400m_1\\&quot;,\\n    \\&quot;quantity\\&quot;: 1\\n  } ],\\n  \\&quot;billingEntityId\\&quot;: \\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.update_order(request=json_request, merchantId=\\&quot;merchantId\\&quot;, orderId=\\&quot;orderId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nrequest_body = {\\n  :items =&gt; [ {\\n    :id =&gt; 'V400m_1',\\n    :quantity =&gt; 1\\n  } ],\\n  :billingEntityId =&gt; 'MerchantAccount.ExampleCompanyFrance'\\n}\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.update_order(request_body, 'merchantId', 'orderId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Create the request objects\\nconst orderItem1: Types.management.OrderItem = {\\n\\tquantity: 1,\\n\\tid: \\&quot;V400m_1\\&quot;\\n};\\n\\nconst terminalOrderRequest: Types.management.TerminalOrderRequest = {\\n\\tbillingEntityId: \\&quot;MerchantAccount.ExampleCompanyFrance\\&quot;,\\n\\titems: [orderItem1]\\n};\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.updateOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, terminalOrderRequest);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<p>The response returns all order details.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Order updated'\" :id=\"'4400472944'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"id\\\": \\\"7219627091701347\\\",\\n      \\\"status\\\": \\\"Placed\\\",\\n      \\\"customerOrderReference\\\": \\\"YOUR_REFERENCE_1\\\",\\n      \\\"shippingLocation\\\": {\\n        \\\"id\\\": \\\"S2-7145604F44356F424F4369432B3F486B6A6D\\\",\\n        \\\"name\\\": \\\"POS France depot\\\",\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company France\\\",\\n          \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n          \\\"postalCode\\\": \\\"12345\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        },\\n        \\\"contact\\\": {\\n          \\\"firstName\\\": \\\"Jesse\\\",\\n          \\\"lastName\\\": \\\"Dupont\\\",\\n          \\\"phoneNumber\\\": \\\"+33 1 76 35 07 90\\\",\\n          \\\"email\\\": \\\"jdupont@test.com\\\"\\n        }\\n      },\\n      \\\"billingEntity\\\": {\\n        \\\"id\\\": \\\"MerchantAccount.ExampleCompanyFrance\\\",\\n        \\\"name\\\": \\\"ExampleCompanyFrance\\\",\\n        \\\"taxId\\\": \\\"222222222\\\",\\n        \\\"email\\\": \\\"jdupont@test.com\\\",\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company France\\\",\\n          \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n          \\\"postalCode\\\": \\\"12345\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        }\\n      },\\n      \\\"orderDate\\\": \\\"2020-01-22T14:12:33Z\\\",\\n      \\\"items\\\": [\\n        {\\n          \\\"id\\\": \\\"V400m_1\\\",\\n          \\\"name\\\": \\\"V400m terminal package EU\\\/GB\\\",\\n          \\\"quantity\\\": 1\\n        }\\n      ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h3>Cancel an order<\/h3>\n<p>While an order has the status <span translate=\"no\"><strong>Placed<\/strong><\/span>, you can revoke the order.<\/p>\n<ol>\n<li>\n<p><a href=\"#view-orders\">Get the ID of the order<\/a> you want to cancel and check that the order has the <code>status<\/code> <span translate=\"no\"><strong>Placed<\/strong><\/span>.<\/p>\n<\/li>\n<li>\n<p>To cancel an order for your company or merchant account, use the following endpoints:<\/p>\n<ul>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/companies\/(companyId)\/terminalOrders\/(orderId)\/cancel\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/companies\/{companyId}\/terminalOrders\/{orderId}\/cancel<\/a><\/li>\n<li>POST  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders\/(orderId)\/cancel\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/merchants\/{merchantId}\/terminalOrders\/{orderId}\/cancel<\/a><\/li>\n<\/ul>\n<p>Do not specify a request body.<\/p>\n<p>The next request cancels our example order <strong>7219627091701347<\/strong>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Cancel a placed terminal order'\" :id=\"'cancel-a-placed-terminal-order-2060742066'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/management-test.adyen.com\\\/v3\\\/merchants\\\/{merchantId}\\\/terminalOrders\\\/7219627091701347\\\/cancel \\\\\\n-H 'x-API-key: ADYEN_API_KEY' \\\\\\n-X POST&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v25.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.service.management.*;\\n\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\\/\\\/ Make the request\\nTerminalOrdersMerchantLevelApi service = new TerminalOrdersMerchantLevelApi(client);\\nTerminalOrder response = service.cancelOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;, null);&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen PHP API Library v17.4.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Service\\\\Management\\\\TerminalOrdersMerchantLevelApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\\/\\\/ Make the request\\n$service = new TerminalOrdersMerchantLevelApi($client);\\n$response = $service-&gt;cancelOrder('merchantId', 'orderId');&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .net API Library v14.3.0\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Service.Management;\\n\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Make the request\\nvar service = new TerminalOrdersMerchantLevelService(client);\\nvar response = service.CancelOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nconst { Client, ManagementAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.cancelOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v9.2.0\\nimport (\\n\\t\\&quot;context\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/common\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/adyen\\&quot;\\n\\t\\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v9\\\/src\\\/management\\&quot;\\n)\\n\\nclient := adyen.NewClient(&amp;common.Config{\\n    ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Make the request\\nservice := client.Management()\\nreq := service.TerminalOrdersMerchantLevelApi.CancelOrderInput(\\&quot;merchantId\\&quot;,\\&quot;orderId\\&quot;)\\nres, httpRes, err := service.TerminalOrdersMerchantLevelApi.CancelOrder(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v12.2.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.cancel_order(merchantId=\\&quot;merchantId\\&quot;, orderId=\\&quot;orderId\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v9.2.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\nresult = adyen.management.terminal_orders_merchant_level_api.cancel_order('merchantId', 'orderId')&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v16.2.0\\n\\\/\\\/ Require the parts of the module you want to use\\nimport { Client, ManagementAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ Initialize the client object\\nconst client = new Client({apiKey: \\&quot;ADYEN_API_KEY\\&quot;, environment: \\&quot;TEST\\&quot;});\\n\\n\\\/\\\/ Make the request\\nconst managementAPI = new ManagementAPI(client);\\nconst response = managementAPI.TerminalOrdersMerchantLevelApi.cancelOrder(\\&quot;merchantId\\&quot;, \\&quot;orderId\\&quot;);&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<li>\n<p>The response returns all  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Management\/latest\/post\/merchants\/(merchantId)\/terminalOrders\/(orderId)\/cancel#responses\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">order details<\/a>, but now the status is changed to <span translate=\"no\"><strong>Cancelled<\/strong><\/span>.<\/p>\n<div data-component-wrapper=\"code-sample\">\n<code-sample :title=\"'Order cancelled'\" :id=\"'0965043566'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n      \\\"id\\\": \\\"7219627091701347\\\",\\n      \\\"status\\\": \\\"Cancelled\\\",\\n      \\\"customerOrderReference\\\": \\\"YOUR_REFERENCE_1\\\",\\n      \\\"shippingLocation\\\": {\\n        \\\"id\\\": \\\"S2-7145604F44356F424F4369432B3F486B6A6D\\\",\\n        \\\"name\\\": \\\"POS France depot\\\",\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company France\\\",\\n          \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n          \\\"postalCode\\\": \\\"12345\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        },\\n        \\\"contact\\\": {\\n          \\\"firstName\\\": \\\"Jesse\\\",\\n          \\\"lastName\\\": \\\"Dupont\\\",\\n          \\\"phoneNumber\\\": \\\"+33 1 76 35 07 90\\\",\\n          \\\"email\\\": \\\"jdupont@test.com\\\"\\n        }\\n      },\\n      \\\"billingEntity\\\": {\\n        \\\"id\\\": \\\"MerchantAccount.ExampleCompanyFrance\\\",\\n        \\\"name\\\": \\\"ExampleCompanyFrance\\\",\\n        \\\"taxId\\\": \\\"222222222\\\",\\n        \\\"email\\\": \\\"jdupont@test.com\\\",\\n        \\\"address\\\": {\\n          \\\"companyName\\\": \\\"Example Company France\\\",\\n          \\\"streetAddress\\\": \\\"11 Rue de Ville\\\",\\n          \\\"postalCode\\\": \\\"12345\\\",\\n          \\\"city\\\": \\\"Paris\\\",\\n          \\\"country\\\": \\\"France\\\"\\n        }\\n      },\\n      \\\"orderDate\\\": \\\"2020-01-22T14:12:33Z\\\",\\n      \\\"items\\\": [\\n        {\\n          \\\"id\\\": \\\"V400m_1\\\",\\n          \\\"name\\\": \\\"V400m terminal package EU\\\/GB\\\",\\n          \\\"quantity\\\": 1\\n        }\\n      ]\\n    }\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<\/li>\n<\/ol>\n<h2>See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/point-of-sale\/automating-terminal-management\/assign-terminals-api\"\n                        target=\"_self\"\n                        >\n                    Assign terminals using API requests\n                <\/a><\/li><li><a href=\"\/point-of-sale\/automating-terminal-management\/configure-terminals-api\"\n                        target=\"_self\"\n                        >\n                    Configure terminals using API requests\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/automating-terminal-management\/order-terminals-api","articleFields":{"description":"Use our Management API to order payment terminals and accessories.","robots":"noindex,nofollow"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/automating-terminal-management\/order-terminals-api","title":"Order terminals","content":"The Management API lets you order terminals and accessories for delivery to a location of your choice using API requests instead of the Customer Area.\nRequirements\nBefore you begin, take into account the following requirements and limitations.\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nA point-of-sale integration with Adyen.\n\n\nAPI credentials\nYou must have an API credential with an API key and the following roles: Management API\u2014Terminal ordering read Management API\u2014Terminal ordering read and write If you have a Terminal API integration with cloud-based communications, you can use the existing API key that you use for Terminal API requests.\n\n\nWebhooks\nOptionally subscribe to Terminal order update webhooks.\n\n\nLimitations\nNote the following: You can only create orders for live terminals using the Management API. To order test terminals, you need to submit a sales order in your test Customer Area. Requests to live Management API endpoints related to terminal orders are subject to rate limits.\n\n\n\nProducts and orders\nYou can order products for a company account or a merchant account. A product can be:\n\nA box containing a payment terminal and default items like a power cable.\nAn accessory, like a privacy shield, a stylus pen, or a replacement power cable.\n\nApart from the products, an order includes:\n\nA 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.\nA 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.\n\nRegional compatibility\nYou 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.\nFor example, if you ordered a European terminal having delivered them to the US, it would not work even with a US power cord.\nGet the product ID\nAn order for terminal products must contain the IDs of the products you want to order. To retrieve those IDs and decide what to order:\n\n\nGet the ID of the account you want to order products for. You need to specify that ID in the URL of later requests.\n\nFor the company ID, make a GET  \/companies request.\nFor the merchant ID, make a GET  \/merchants request.\n\n\n\nGet a list of payment terminal models you can order for your company or merchant account. Use the following endpoints:\n\nGET  \/companies\/{companyId}\/terminalModels\nGET  \/merchants\/{merchantId}\/terminalModels\n\n\n\n\nThe response returns the id and name of the various models. You can use the id as a query parameter to filter the product list in the next step.\n\n\n\n\n\nGet a list of products you can order for your company or merchant account. Use the following endpoints, with the country as a query parameter:\n\nGET  \/companies\/{companyId}\/terminalProducts\nGET  \/merchants\/{merchantId}\/terminalProducts\n\nThese are the query parameters to filter the paginated response:\n\n\n\nQuery parameter\nRequired\nDescription\n\n\n\n\n country\n\nReturns products for the country\/region specified by a two-letter country code in ISO 3166-1 alpha-2 format.\n\n\n terminalModelId\n\nReturns products for the terminal model specified by its ID. This is the  id returned in the \/terminalModels response. The product list will show the details of the box containing the terminal and all accessories you can order for that terminal model.\n\n\n offset\n\nReturns products shown on the specified page.\n\n\n limit\n\nThe number of products to have on a page.\n\n\n\nThe following example retrieves a list of all products related to the V400m payment terminal that can be ordered for a merchant account in France.\n\n\n\n\n\nWhen you receive the response, save the id values of the products you want to order.\nThe next example shows the response for the GET merchants\/{merchantId}\/terminalProducts?country=FR&amp;terminalModelId=Verifone.V400m request (prices have been changed to 0.00 in the example).\n\n\n\n\n\nGet the billing entity ID\nAn 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.\n\nWhen ordering products in Brazil, you do not need to provide a billing entity ID.\n\n\n\nGet the billing entity ID for your company or merchant account. Use the following endpoints:\n\nGET  \/companies\/{companyId}\/billingEntities for the billing entities of the company and all merchant accounts belonging to the company.\nGET  \/merchants\/{merchantId}\/billingEntities for the billing entities of the merchant account.\n\nYou can filter the response using the  name of the billing entity as the query parameter:\n\n\n\n\n\nWhen 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.\n\n\n\n\n\nGet the shipping location ID\nAn 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.\nNew shipping location\n\n\nTo create a shipping location for your company or merchant account, use the following endpoints:\n\nPOST  \/companies\/{companyId}\/shippingLocations\nPOST  \/merchants\/{merchantId}\/shippingLocations\n\nSpecify the following parameters in the request body:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n name\n\nA unique reference that lets you recognize the location.\n\n\n contact\n\nThe name and phone number of the individual who can be contacted about the shipment.\n\n\n address\n\nWhere to send the order.\n\n\n\n\n\n\n\n\nWhen you receive the response, note the following details:\n\n id&#58; The generated shipping location ID. Save this ID because you need to specify it when you order terminal products.\n name&#58; Your reference for this location. You can use the reference to filter the list of shipping locations.\n\n\n\n\n\n\n\nIf your next step after creating a new shipping location is to create an order for the new location, wait a few seconds before sending the order creation request.\n\nExisting shipping locations\n\n\nTo get a list of existing shipping locations for your company or merchant account, use the following endpoints:\n\nGET  \/companies\/{companyId}\/shippingLocations\nGET  \/merchants\/{merchantId}\/shippingLocations\n\nYou can filter the paginated response using the following query parameters:\n\n\n\nQuery parameter\nRequired\nDescription\n\n\n\n\n name\n\nFilters the list by your reference to the shipping location.\n\n\n offset\n\nReturns locations starting from this offset.\n\n\n limit\n\nSets a limit for the number of locations to 3return.\n\n\n\n\n\n\n\n\nWhen you receive the response, save the  id of the shipping location to use in your order.\n\n\n\n\n\nCreate a terminal order\nUse this request to order live terminals for your company or merchant account.\n\nRequests 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.\n\n\n\nMake sure that you have the following details:\n\nThe IDs of the products you want to order.\nThe ID of the billing entity.\nThe ID of the shipping location.\n\n\nIf the order includes a new shipping location, wait a few seconds after creating the new location before sending the order creation request.\n\n\n\nTo create an order for your company or merchant account, use the following endpoints:\n\nPOST  \/companies\/{companyId}\/terminalOrders\nPOST  \/merchants\/{merchantId}\/terminalOrders\n\nSpecify the following parameters in the request body:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n customerOrderReference\n\nYour purchase order number. This will be printed on the packing list.\n\n\n billingEntityId\n\nThe ID of the billing entity for the company or merchant account.  When ordering products in Brazil, you do not need to include the billingEntityId in the request.\n\n\n shippingLocationId\n\nThe ID of the shipping location where we need to send the order.\n\n\n items\n\nAn array listing the id and quantity of each product you want to order.\n\n\n taxId\n\nThe tax number (VAT number) of the billing entity. Specify this parameter when the shipping location and the billing entity are in different countries\/regions.\n\n\n\nThe next example places an order for one V400m terminal and 20 receipt rolls.\n\n\n\nThe 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.\n\n\n\n\n\nWhen an order reaches the status Shipped, the response also includes a URL where you can track your order.\nTerminal order updates\nTo 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 &amp; trace number. We send these platform webhooks as an HTTP callback (webhook) to your server.\nWe also keep you up to date on the status of your order through email messages and in your Customer Area &gt; Orders and returns.\nManage orders\nYou 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.\nView orders\nYou 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.\nList of orders\n\n\nTo get the details of all orders for your company or merchant account, use the following endpoints:\n\nGET  \/companies\/{companyId}\/terminalOrders\nGET  \/merchants\/{merchantId}\/terminalOrders\n\nYou can filter the paginated response using the following query parameters:\n\n\n\nQuery parameter\nRequired\nDescription\n\n\n\n\n customerOrderReference\n\nReturns the details of the specified purchase order number.\n\n\n status\n\nReturns orders with the specified status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered.\n\n\n offset\n\nReturns the orders shown on the specified page.\n\n\n limit\n\nThe number of orders to have on a page.\n\n\n\n\n\n\nThe response returns an array of orders sorted by order date in ascending order. For each order, all  order details are included.\n\n\nIndividual order\n\n\nTo get the details of an individual order for your company or merchant account, use the following endpoints:\n\nGET  \/companies\/{companyId}\/terminalOrders\/{orderId}\nGET  \/merchants\/{merchantId}\/terminalOrders\/{orderId}\n\n\n\n\nThe response returns all order details.\n\n\nUpdate an order\nWhile 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 the items 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. \n\n\nGet the ID of the order you want to update and check that the order has the status Placed.\n\n\nTo update the order for your company or merchant account, use the following endpoints:\n\nPATCH  \/companies\/{companyId}\/terminalOrders\/{orderId}\nPATCH  \/merchants\/{merchantId}\/terminalOrders\/{orderId}\n\nSpecify the following optional parameters in the request body as needed:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\n billingEntityId\n\nThe ID of the billing entity for the company or merchant account.  When ordering products in Brazil, you do not need to include the billingEntityId in the request.\n\n\n shippingLocationId\n\nThe ID of the shipping location where we need to send the order.\n\n\n items\n\nAn array listing the id and quantity of each product you want to order. To remove an item, specify all remaining items. To add an item, specify all items already in the order plus the additional item.\n\n\n\nThe next request removes the 20 receipt rolls from our example order 7219627091701347 by listing only the remaining order item, and changes the billing entity.\n\n\n\nThe response returns all order details.\n\n\n\n\n\nCancel an order\nWhile an order has the status Placed, you can revoke the order.\n\n\nGet the ID of the order you want to cancel and check that the order has the status Placed.\n\n\nTo cancel an order for your company or merchant account, use the following endpoints:\n\nPOST  \/companies\/{companyId}\/terminalOrders\/{orderId}\/cancel\nPOST  \/merchants\/{merchantId}\/terminalOrders\/{orderId}\/cancel\n\nDo not specify a request body.\nThe next request cancels our example order 7219627091701347.\n\n\n\n\n\nThe response returns all  order details, but now the status is changed to Cancelled.\n\n\n\n\n\nSee also\n\n\n                    Assign terminals using API requests\n                \n                    Configure terminals using API requests\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Automate the management of your terminals","lvl3":"Order terminals"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/automating-terminal-management","lvl3":"\/pt\/point-of-sale\/automating-terminal-management\/order-terminals-api"},"levels":4,"category":"In-person payments","category_color":"green","tags":["Order","terminals"]},"articleFiles":{"0965043566.json":"<p alt=\"\">0965043566.json<\/p>","1399217606.json":"<p alt=\"\">1399217606.json<\/p>","2658805980.json":"<p alt=\"\">2658805980.json<\/p>","4400472944.json":"<p alt=\"\">4400472944.json<\/p>","8406786790.json":"<p alt=\"\">8406786790.json<\/p>","8447033125.json":"<p alt=\"\">8447033125.json<\/p>","8654419552.json":"<p alt=\"\">8654419552.json<\/p>","9980292256.json":"<p alt=\"\">9980292256.json<\/p>","cancel-a-placed-terminal-order-2060742066.js":"<p alt=\"\">cancel-a-placed-terminal-order-2060742066.js<\/p>","create-shipping-location-0811064721.js":"<p alt=\"\">create-shipping-location-0811064721.js<\/p>","get-a-list-of-placed-orders-for-a-merchant-account-8400327116.js":"<p alt=\"\">get-a-list-of-placed-orders-for-a-merchant-account-8400327116.js<\/p>","get-billing-entities-for-a-company-9584635418.js":"<p alt=\"\">get-billing-entities-for-a-company-9584635418.js<\/p>","get-model-list-for-a-merchant-account-1293685926.js":"<p alt=\"\">get-model-list-for-a-merchant-account-1293685926.js<\/p>","get-product-list-by-terminal-model-for-a-french-merchant-account-5079700850.js":"<p alt=\"\">get-product-list-by-terminal-model-for-a-french-merchant-account-5079700850.js<\/p>","get-shipping-locations-for-a-merchant-account-1994202545.js":"<p alt=\"\">get-shipping-locations-for-a-merchant-account-1994202545.js<\/p>","get-the-details-of-a-specific-order-2787842290.js":"<p alt=\"\">get-the-details-of-a-specific-order-2787842290.js<\/p>","place-a-terminal-order-1422867614.js":"<p alt=\"\">place-a-terminal-order-1422867614.js<\/p>","update-order-items-and-billing-entity-3614322809.js":"<p alt=\"\">update-order-items-and-billing-entity-3614322809.js<\/p>"}}
