{
	"info": {
		"_postman_id": "26f6a07f-e837-479b-b721-cc70c8d41bf2",
		"name": "Paylox - API Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Response Codes",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"application_key\": \"{{APPLICATION_KEY}}\",\n    \"language\": \"{{LANGUAGE}}\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/prepayment/responsecodes",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"prepayment",
						"responsecodes"
					]
				}
			},
			"response": []
		},
		{
			"name": "Installment Options",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",\r\n    \"currency\": \"{{CURRENCY}}\",\r\n    \"campaign_name\": \"{{CAMPAIGN_NAME}}\",\r\n    \"is_3d\": {{IS_3D}},\r\n    \"mode\": \"{{MODE}}\",\r\n    \"language\": \"{{LANGUAGE}}\"\r\n}\r\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/prepayment/installment_options",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"prepayment",
						"installment_options"
					]
				}
			},
			"response": []
		},
		{
			"name": "Bin Installment Options",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",\r\n    \"currency\": \"{{CURRENCY}}\",\r\n    \"campaign_name\": \"{{CAMPAIGN_NAME}}\",\r\n    \"is_3d\": {{IS_3D}},\r\n    \"bin\": \"552608\",\r\n    \"mode\": \"{{MODE}}\",\r\n    \"language\": \"{{LANGUAGE}}\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/prepayment/bin_installment_options",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"prepayment",
						"bin_installment_options"
					]
				}
			},
			"response": []
		},
		{
			"name": "Hash Control",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-token",
						"value": "fake-super-secret-token",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"application_key\": \"{{APPLICATION_KEY}}\",\n    \"amount\": 7070,\n    \"card_number\": \"5406675406675403\",\n    \"hash_data\": \"aIrl3ujWvjiA4c/q+OetxoQxX2sPxP3uYuFlyBEyeMs=\",\n    \"language\": \"{{LANGUAGE}}\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment/hash_control",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment",
						"hash_control"
					]
				}
			},
			"response": []
		},
		{
			"name": "Payment Simulation",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-token",
						"value": "fake-super-secret-token",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"application_key\": \"{{APPLICATION_KEY}}\",\n    \"campaign_name\": \"{{CAMPAIGN_NAME}}\",\n    \"currency\": \"{{CURRENCY}}\",\n    \"is_3d\": {{IS_3D}},\n    \"mode\": \"{{MODE}}\",\n    \"language\": \"{{LANGUAGE}}\",\n    \"amount\": 1015,\n    \"installment_count\": \"1\",\n    \"card_number\": \"5526080000000006\",\n    \"expire_month\": \"12\",\n    \"expire_year\": \"2026\",\n    \"hash_data\": \"+Au8kLSH3/cC7j4y7wKsPywW8izRZ4wT8JACu6JFiiE=\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment/simulation",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment",
						"simulation"
					]
				}
			},
			"response": []
		},
		{
			"name": "Payment",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-token",
						"value": "fake-super-secret-token",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",    \r\n    \"currency\": \"{{CURRENCY}}\",\r\n    \"campaign_name\": \"{{CAMPAIGN_NAME}}\",\r\n    \"is_3d\": {{IS_3D}},\r\n    \"mode\": \"{{MODE}}\",\r\n    \"language\": \"{{LANGUAGE}}\",\r\n    \"order_id\": \"order-21312-213\",\r\n    \"installment_count\": \"6\",\r\n    \"amount\": \"1015\",\r\n    \"card_number\": \"5526080000000006\",\r\n    \"card_holder_name\": \"Hasan Akay\",\r\n    \"expire_month\": \"12\",\r\n    \"expire_year\": \"2026\",\r\n    \"cvc\": \"000\",\r\n    \"hash_data\": \"+Au8kLSH3/cC7j4y7wKsPywW8izRZ4wT8JACu6JFiiE=\",\r\n    \"success_url\": \"https://merchant.example.com/payment/success\",\r\n    \"fail_url\": \"https://merchant.example.com/payment/fail\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment"
					]
				}
			},
			"response": []
		},
		{
			"name": "Query Payment Status",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",\r\n    \"order_id\": \"order-21312-213\",\r\n    \"language\": \"{{LANGUAGE}}\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment/status",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment",
						"status"
					]
				}
			},
			"response": []
		},
		{
			"name": "Cancel Payment",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-token",
						"value": "fake-super-secret-token",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",\r\n    \"order_id\": \"order-iyzico-001\",\r\n    \"transaction_id\": \"4d9fc4a2e81c4be09fa2d24810dedbf0\",\r\n    \"language\": \"{{LANGUAGE}}\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment/cancel",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment",
						"cancel"
					]
				}
			},
			"response": []
		},
		{
			"name": "Refund Payment",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-token",
						"value": "fake-super-secret-token",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"application_key\": \"{{APPLICATION_KEY}}\",\r\n    \"order_id\": \"order-iyzico-001\",\r\n    \"transaction_id\": \"4d9fc4a2e81c4be09fa2d24810dedbf0\",\r\n    \"amount\": \"1015\",\r\n    \"currency\": \"{{CURRENCY}}\",\r\n    \"language\": \"{{LANGUAGE}}\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.paylox.io/api/v1/payment/refund",
					"protocol": "https",
					"host": [
						"api",
						"paylox",
						"io"
					],
					"path": [
						"api",
						"v1",
						"payment",
						"refund"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "APPLICATION_KEY",
			"value": "33591fb3-b8e4-442a-a997-6b8be906f39f",
			"type": "string"
		},
		{
			"key": "CURRENCY",
			"value": "TRY",
			"type": "string"
		},
		{
			"key": "LANGUAGE",
			"value": "tr",
			"type": "string"
		},
		{
			"key": "CAMPAIGN_NAME",
			"value": "Standart",
			"type": "string"
		},
		{
			"key": "MODE",
			"value": "T",
			"type": "string"
		},
		{
			"key": "IS_3D",
			"value": "true",
			"type": "string"
		}
	]
}