{
	"info": {
		"_postman_id": "53b54fbe-071e-4d69-b05f-b5494700f746",
		"name": "GPS Sandbox REST API Postman Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "20946476"
	},
	"item": [
		{
			"name": "Tokens",
			"item": [
				{
					"name": "Generate Token",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "urlencoded",
							"urlencoded": [
								{
									"key": "client_id",
									"value": "",
									"type": "text"
								},
								{
									"key": "client_secret",
									"value": "",
									"type": "text"
								},
								{
									"key": "grant_type",
									"value": "client_credentials",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "https://uxastsapi.globalprocessing.net/connect/token",
							"protocol": "https",
							"host": [
								"uxastsapi",
								"globalprocessing",
								"net"
							],
							"path": [
								"connect",
								"token"
							]
						},
						"description": "This endpoint enables you to generate an authorisation token. A token is required to use all other endpoints in the Cards API."
					},
					"response": []
				}
			]
		},
		{
			"name": "Cards",
			"item": [
				{
					"name": "Create a Card",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"CardType\":\"Physical\",\r\n    \"CardProduct\": ,\r\n    \"CustomerReference\": \"CustNo12345A\",\r\n    \"CardHolder\": {\r\n        \"Title\": \"Mrs.\",\r\n        \"FirstName\": \"Jane\",\r\n        \"LastName\": \"Doe\",\r\n        \"DateOfBirth\": \"1982-02-19\",\r\n        \"Mobile\": \"07755123456\",\r\n        \"Email\": \"jdoe@email.com\"\r\n    },\r\n    \"Address\": {\r\n        \"AddressLine1\": \"1007\",\r\n        \"AddressLine2\": \"Mountain Drive\",\r\n        \"AddressLine3\": \"string\",\r\n        \"City\": \"Gotham\",\r\n        \"County\": \"New Jersey\",\r\n        \"PostCode\": \"GC11 2LD\",\r\n        \"Country\": \"USA\"\r\n    },\r\n    \"fulfilment\": {\r\n          \"addressLine1\": \"32 Metropolis Ave\",\r\n          \"city\": \"Gotham\",\r\n          \"country\": \"USA\",\r\n          \"county\": \"Gothamshire\",\r\n          \"postCode\": \"GC11 3GH\"\r\n     },\r\n     \"ManufacturingDetails\":\r\n     {\r\n       \"CardManufacturer\": \"AB Note\",\r\n        \"DeliveryMethod\": 0,\r\n        \"CarrierType\": \"Type 1\",\r\n        \"Quantity\": 1,\r\n        \"Language\": \"HU\",\r\n        \"ThermalLine1\": \"asdeoivh2neriuvnqkr\",\r\n        \"ThermalLine2\" : \"asjkfnkerjnkwe\",\r\n        \"EmbossLine4\" : \"jdwncwlkejr\",\r\n        \"VanityName\" : \"Name Mane\",\r\n             \"ImageDetails\":\r\n             {\r\n                  \"ImageId\": \"An image id\",\r\n                  \"LogoFrontId\" : \"A logo ID\",\r\n                  \"LogoBackId\": \"Another logo ID\"\r\n             }\r\n    }\r\n\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								""
							]
						},
						"description": "This endpoint enables you to create physical and virtual cards. The type of card you create is governed by what value you pass for Card Type, either physical or virtual.\n\nA successful response will return a 201 http code. The GPS public token linked to the card will be returned in the response.\n\nFor more information on how to create a card, see [Creating a Card](https://cardsapidocs.globalprocessing.com/docs/create-card-2)."
					},
					"response": []
				},
				{
					"name": "Retrieve a Card",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}"
							]
						},
						"description": "This endpoint enables you to retrieve the details for a card using the PublicToken provided when the card was created.\n\nA successful response will return a 200 http code and the details associated with the card."
					},
					"response": []
				},
				{
					"name": "Update Card",
					"request": {
						"method": "PATCH",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"CustomerReference\": \"CustNo12345A\",\r\n    \"CardHolder\": {\r\n        \"Title\": \"Mr.\",\r\n        \"FirstName\": \"Darcy\",\r\n        \"LastName\": \"Smith\",\r\n        \"DateOfBirth\": \"1982-02-25\",\r\n        \"Mobile\": \"07645123456\",\r\n        \"Email\": \"Darcy@iambatman.com\"\r\n    },\r\n    \"Address\": {\r\n        \"AddressLine1\": \"1008\",\r\n        \"AddressLine2\": \"Royal Way\",\r\n        \"AddressLine3\": null,\r\n        \"City\": \"London\",\r\n        \"County\": \"Essex\",\r\n        \"PostCode\": \"RM7 2LD\",\r\n        \"Country\": \"GBR\"\r\n    },\r\n    \"Fulfilment\": {\r\n        \"AddressLine1\": \"1009\",\r\n        \"AddressLine2\": \"Behind Waterfall\",\r\n        \"AddressLine3\": null,\r\n        \"City\": \"Gotham\",\r\n        \"County\": \"New_York\",\r\n        \"PostCode\": \"GT019TT\",\r\n        \"Country\": \"USA\"\r\n    }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}"
							]
						},
						"description": "This endpoint enables you to update the details for a card. You need to identify the public token that corresponds to the customer's card. When you have identified the correct public token, you can make a call to the endpoint. ensuring you have only the fields you want to update populated in the body.\n\nFor more information on how to update a card, see [Updating a Card](https://cardsapidocs.globalprocessing.com/docs/updating-a-card)."
					},
					"response": []
				},
				{
					"name": "Renew Card",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"RenewStep\" : \"renew\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/renew",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"renew"
							]
						},
						"description": "This endpoint enables you to renew a card outside of the autorenewal cycle. Renewals can be done for both virtual and physical cards, though the process differs for each.\n\nFor more information on how to renew a card, see [Card Renewal, Card Replacement & Lost Cards](https://cardsapidocs.globalprocessing.com/docs/card-renewal-and-replacement)."
					},
					"response": []
				},
				{
					"name": "Replace a Card",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/replace",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"replace"
							]
						},
						"description": "This point enables you to replace a card that has been lost, stolen or damaged. You will need to identify the public token for the card and update the card status to LostCard. See [Card Status Change](https://cardsapidocs.globalprocessing.com/docs/card-status) for more details.\n\nFor more information on how to replace a card, see [Card Renewal, Card Replacement & Lost Cards](https://cardsapidocs.globalprocessing.com/docs/card-renewal-and-replacement)."
					},
					"response": []
				},
				{
					"name": "Retrieve Card Status",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/status",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"status"
							]
						},
						"description": "This endpoint enables you to retrieve the live status for a card based on the Public Token in the request.\n\nFor more information on how to retrieve a card status, see [Card Status Change](https://cardsapidocs.globalprocessing.com/docs/card-status)."
					},
					"response": []
				},
				{
					"name": "Update Card Status",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n     \"cardStatusCode\": \"00\",\r\n     \"updatedBy\": \"John Bloggs\",\r\n     \"description\": \"Card activated\",\r\n     \"validityDate\": \"2023-02\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/status",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"status"
							]
						},
						"description": "This endpoint enables you to update the live status of a card for the Public Token in the request. For information on the available statuses, see [Card Status Codes](https://cardsapidocs.globalprocessing.com/docs/card-status-codes).\n\nFor more information on how to retrieve a card status, see [Card Status Change](https://cardsapidocs.globalprocessing.com/docs/card-status)."
					},
					"response": []
				},
				{
					"name": "List Card Balance",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "accept",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/balance",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"balance"
							]
						},
						"description": "This point enables you to check the current balance of the card.\n\nFor more information on how to list card balances, see [Loading, Unloading and Balance Adjustments](https://cardsapidocs.globalprocessing.com/docs/loading-unloading-a-card)."
					},
					"response": []
				},
				{
					"name": "Get Cardholder Details",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cardholder/{{publicToken}}",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cardholder",
								"{{publicToken}}"
							]
						},
						"description": "This endpoint enables you to view the cardholder details associated with a card. Unlike the Retrieve a Card endpoint, this endpoint only returns the details of the cardholder and not the card."
					},
					"response": []
				},
				{
					"name": "Update Card Control Overrides",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n     \"usageControls\": {\r\n          \"allowContactless\": true,\r\n          \"allowAtmWithdrawals\": true,\r\n          \"allowECommerceWhereCardNotPresent\": true,\r\n          \"allowRecurringPaymentWhereCardNotPresent\": true,\r\n          \"allowUseOutsideCountry\": true\r\n     }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/control-overrides",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"control-overrides"
							]
						},
						"description": "The Update Card Control Overrides endpoint allows you to update one or many card control overrides in one request. You can do this by making a PUT request to the Update Card Control Overrides endpoint.\n\nFor more information, see [Card Control Overrides](https://cardsapidocs.globalprocessing.com/docs/card-control-overrides)."
					},
					"response": []
				},
				{
					"name": "Get Card Control Overrides",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "accept",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/control-overrides",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"control-overrides"
							]
						},
						"description": "This endpoint enables you to compare a card's control override settings with the default values. This allows you to directly compare the card's endpoints with the default values to see how they differ.\n\nFor more information, see [Card Control Overrides](https://cardsapidocs.globalprocessing.com/docs/card-control-overrides)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Groups",
			"item": [
				{
					"name": "Update Card Control Groups",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Your test name\", function () {\r",
									"    var jsonData = pm.response.json();\r",
									"    pm.expect(jsonData.value).to.eql(100);\r",
									"});"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"ControlGroups\": {\r\n        \"AuthFeeGroup\": 1     \r\n    }\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/groups",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"groups"
							]
						},
						"description": "This endpoint enables you to update the control groups that define the card behaviour.\n\nFor more information on how to list update control groups, see [Managing Card Usage Groups](https://cardsapidocs.globalprocessing.com/docs/card-controls)."
					},
					"response": []
				},
				{
					"name": "List Card Control Groups",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/groups",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups"
							]
						},
						"description": "This endpoint enables you to list the control groups for your card program.\n\nFor more information on how to list card control groups, see [Managing Card Usage Groups](https://cardsapidocs.globalprocessing.com/docs/card-controls)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Card PIN",
			"item": [
				{
					"name": "Get PIN",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "accept",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/pin",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"pin"
							]
						},
						"description": "This endpoint enables you to retrieve the PIN for a card in plain text.\n\nFor more information on how to retrieve a card PIN, see [PIN Management](https://cardsapidocs.globalprocessing.com/docs/card-personal-identification-number-pin)."
					},
					"response": []
				},
				{
					"name": "Set PIN",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "accept",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"CardPin\": \"1234\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/pin",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"pin"
							]
						},
						"description": "This end point enables you to set a PIN for the card. This will overwrite the PIN allocated to the card during card creation.\n\nFor more information on how to retrieve a card PIN, see [PIN Management](https://desktop.postman.com/?desktopVersion=9.19.0&userId=20946476&teamId=0)."
					},
					"response": []
				},
				{
					"name": "Get PIN Status",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/pin/status",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"pin",
								"status"
							]
						},
						"description": "This endpoint enables you to retrieve the current status of the card's PIN."
					},
					"response": []
				},
				{
					"name": "Unblock PIN",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "accept",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/pin/unblock",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"pin",
								"unblock"
							]
						},
						"description": "This endpoint enables you to unblock a PIN for a card.\n\nFor more information on how to unblock a card PIN, see [PIN Management](https://desktop.postman.com/?desktopVersion=9.19.0&userId=20946476&teamId=0)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Card CVV",
			"item": [
				{
					"name": "Get CVV",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/cvv",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"cvv"
							]
						},
						"description": "This endpoint enables you to retrieve a card's Card Verification Value (CVV).\n\nFor more information on how to retrieve a card CVV, see [Card Verification Value (CVV)](https://cardsapidocs.globalprocessing.com/docs/card-verification-value-cvv)."
					},
					"response": []
				},
				{
					"name": "Get CVV Status",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/cvv/status",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"cvv",
								"status"
							]
						},
						"description": "This endpoint enables you to get the CVV status of a card."
					},
					"response": []
				},
				{
					"name": "Unblock CVV",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"status\": \"Unblocked\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/cvv/status",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"cvv",
								"status"
							]
						},
						"description": "This endpoint enables you to unblock a card's Card Verification Value (CVV).\n\nFor more information on how to unblock a CVV, see [Card Verification Value (CVV)](https://cardsapidocs.globalprocessing.com/docs/card-verification-value-cvv)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Transactions",
			"item": [
				{
					"name": "Load Card",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"TransactionType\": \"Load\",\r\n\"Amount\": 1000.00,\r\n\"CurrencyCode\": \"GBP\",\r\n\"LoadedBy\": \"string\",\r\n\"Description\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/transactions",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"transactions"
							]
						},
						"description": "This endpoint enables you to load funds onto a card, allowing you to add a positive balance onto the card.\n\nFor more information on how to load a card, see [Loading, Unloading and Balance Adjustments](https://cardsapidocs.globalprocessing.com/docs/loading-unloading-a-card)."
					},
					"response": []
				},
				{
					"name": "Unload Card",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {\r",
									"    pm.response.to.have.status(200);\r",
									"});\r",
									"\r",
									"pm.test(\"Check Response\", function () {\r",
									"    var jsonData = pm.response.json();\r",
									"    var req = JSON.parse(pm.request.body.raw);\r",
									"    const transaction = jsonData.transaction[0];\r",
									"\r",
									"console.log(JSON.stringify(jsonData));\r",
									"//Get the card balance after loading the card\r",
									"   const cardBalance = pm.collectionVariables.get(\"cardBalance\");\r",
									"    const expectedResult = {\r",
									"        \"balance\": {\r",
									"            \"currencyCode\": \"GBP\",\r",
									"            \"cardBalance\": cardBalance - req.Amount,\r",
									"            \"pendingAmount\": 0,\r",
									"            \"availableBalance\": cardBalance - req.Amountt\r",
									"        }\r",
									"    }\r",
									"\r",
									"    pm.expect(jsonData).to.deep.include(expectedResult);\r",
									"    pm.expect(transaction.transactionType).to.be.eql('Unload');\r",
									"    pm.expect(transaction.transactionId).to.be.a('string');\r",
									"    pm.expect(transaction.amount).to.be.eql(req.Amount);\r",
									"    pm.expect(transaction.currencyCode).to.be.eql(req.currencyCode);\r",
									"\r",
									"});"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"TransactionType\": \"Unload\",\r\n\"Amount\": 50.00,\r\n\"CurrencyCode\": \"GBP\",\r\n\"LoadedBy\": \"string\",\r\n\"Description\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/transactions",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"transactions"
							]
						},
						"description": "This endpoint enables you to unload funds from a card, allowing you to remove or partially remove the balance from the card.\n\nFor more information on how to load a card, see [Loading, Unloading and Balance Adjustments](https://desktop.postman.com/?desktopVersion=9.19.0&userId=20946476&teamId=0)."
					},
					"response": []
				},
				{
					"name": "Get Card Transactions",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/cards/{{publicToken}}/transactions?fromDate=20210101&toDate=20221231",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"cards",
								"{{publicToken}}",
								"transactions"
							],
							"query": [
								{
									"key": "fromDate",
									"value": "20210101"
								},
								{
									"key": "toDate",
									"value": "20221231"
								}
							]
						},
						"description": "This endpoint retrieves the transactions for a card between two specified dates.\n\nFor more information on how to list card transactions, see [Listing Card Transactions](https://cardsapidocs.globalprocessing.com/docs/retrieving-card-transactions)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Products",
			"item": [
				{
					"name": "Get Product",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/products",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"products"
							]
						},
						"description": "This endpoint allows you to retrieve the a list of products for your program.\n\nFor more information, see [Getting Product Data](https://cardsapidocs.globalprocessing.com/docs/getting-product-data)."
					},
					"response": []
				},
				{
					"name": "Get Product for Program Manager",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/products/{productId}",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"products",
								"{productId}"
							]
						},
						"description": "This endpoint allows you to retrieve details for a specified product id. This id must be specified in the endpoint.\n\nFor more information, see [Getting Product Data](https://cardsapidocs.globalprocessing.com/docs/getting-product-data)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Merchants",
			"item": [
				{
					"name": "Get Allowed Merchants",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/groups/allow-merchant",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"allow-merchant"
							]
						},
						"description": "This endpoint allows you to retrieve the merchant allow list for your program. You can retrieve the merchant allow list by making a GET request to the allow merchant endpoint.\n\nFor more information, see [Merchant Allow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-allow-lists)."
					},
					"response": []
				},
				{
					"name": "Add Merchant to Allow List",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"merchantIds\": [\r\n        \"Merchant5\"\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/groups/allow-merchant/86",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"allow-merchant",
								"86"
							]
						},
						"description": "This endpoint allows you to add merchants to the allow list. You can do this by adding the List ID to the end of the Allow Merchant endpoint.\n\nFor more information, see [Merchant Allow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-allow-lists)."
					},
					"response": []
				},
				{
					"name": "Remove Merchant from Allow List",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "{{base-url}}/groups/allow-merchant/86/Merchant5",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"allow-merchant",
								"86",
								"Merchant5"
							]
						},
						"description": "This endpoint allows you to remove a merchant from an allow list. You can do this by using the DELETE method and adding the List ID and Merchant ID to the end of the Allow Merchant endpoint.\n\nFor more information, see [Merchant Allow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-allow-lists)."
					},
					"response": []
				},
				{
					"name": "Get Disallowed Merchants",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{base-url}}/groups/disallow-merchant",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"disallow-merchant"
							]
						},
						"description": "This endpoint allows you to retrieve the merchant disallow list for your program. You can retrieve the merchant disallow list by making a GET request to the Disallow Merchant endpoint.\n\nFor more information, see [Merchant Disallow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-disallow-lists)."
					},
					"response": []
				},
				{
					"name": "Add Merchant to Disallow List",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"merchantIds\": [\r\n        \"Merchant5\"\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{base-url}}/groups/disallow-merchant/71",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"disallow-merchant",
								"71"
							]
						},
						"description": "This endpoint allows you to add merchants to a disallow list. You can do this by adding the List ID to the end of the Disallow Merchant endpoint.\n\nFor more information, see [Merchant Disallow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-disallow-lists)."
					},
					"response": []
				},
				{
					"name": "Remove Merchant from Disallow List",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{base-url}}/groups/disallow-merchant/71/Merchant5",
							"host": [
								"{{base-url}}"
							],
							"path": [
								"groups",
								"disallow-merchant",
								"71",
								"Merchant5"
							]
						},
						"description": "This endpoint allows you to remove a merchant from a disallow list. You can do this by using the DELETE method and adding the List ID and Merchant ID to the end of the Disallow Merchant endpoint.\n\nFor more information, see [Merchant Disallow Lists](https://cardsapidocs.globalprocessing.com/docs/merchant-disallow-lists)."
					},
					"response": []
				}
			]
		},
		{
			"name": "Test Transaction",
			"item": [
				{
					"name": "Perform contactless purchase transaction",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n     \"token\": ,\r\n     \"transactionAmount\": 50\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sandbox.globalprocessing.com/sandbox/api/Pos/ContactLessPurchase",
							"protocol": "https",
							"host": [
								"sandbox",
								"globalprocessing",
								"com"
							],
							"path": [
								"sandbox",
								"api",
								"Pos",
								"ContactLessPurchase"
							]
						},
						"description": "This endpoint enables you to test contactless transaction authorisations using CTS Lite. This REST API enables you to perform these tests without the need to use the full Card Transaction System (CTS) functionality.\n\nYou can perform a test of the contactless purchase transaction by making a POST request to the Contactless Purchase Transaction endpoint.\n\nFor more information, see [Contactless Purchase Transaction](https://cardsapidocs.globalprocessing.com/v0.0/docs/contactless-purchase-transaction)."
					},
					"response": []
				},
				{
					"name": "Perform Clearing for Selected Transaction",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://sandbox.globalprocessing.com/sandbox/api/Clearing/PerformClearing?transactionId=233323",
							"protocol": "https",
							"host": [
								"sandbox",
								"globalprocessing",
								"com"
							],
							"path": [
								"sandbox",
								"api",
								"Clearing",
								"PerformClearing"
							],
							"query": [
								{
									"key": "transactionId",
									"value": "233323"
								}
							]
						},
						"description": "This endpoint enables you to test contactless transaction authorisations using CTS Lite. This REST API enables you to perform these tests without the need to use the full Card Transaction System (CTS) functionality.\n\nYou can perform a test of the contactless purchase transaction by making a POST request to the Contactless Purchase Transaction endpoint.\n\nFor more information, see [Contactless Purchase Transaction](https://cardsapidocs.globalprocessing.com/v0.0/docs/contactless-purchase-transaction)."
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "accessTokenUrl",
				"value": "https://identity.globalprocessing.com/connect/token",
				"type": "string"
			},
			{
				"key": "clientSecret",
				"value": "{{client_secret}}",
				"type": "string"
			},
			{
				"key": "clientId",
				"value": "{{client_id}}",
				"type": "string"
			},
			{
				"key": "challengeAlgorithm",
				"value": "S256",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "client_credentials",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			},
			{
				"key": "client_authentication",
				"value": "body",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "base-url",
			"value": "https://sandbox.globalprocessing.com/sandbox/api/v1",
			"type": "string"
		},
		{
			"key": "publicToken",
			"value": "",
			"type": "string"
		},
		{
			"key": "client_id",
			"value": "",
			"type": "string"
		},
		{
			"key": "client_secret",
			"value": "",
			"type": "string"
		},
		{
			"key": "grant_type",
			"value": "client_credentials",
			"type": "string"
		},
		{
			"key": "access_token",
			"value": "",
			"type": "string"
		}
	]
}