{
	"info": {
		"_postman_id": "cf7fa1ea-16bc-48a2-9466-819f4773dad0",
		"name": "Pożyczki PragmaGo",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "11399703"
	},
	"item": [
		{
			"name": "PragmaPay",
			"item": [
				{
					"name": "Authorize",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Language",
								"value": "pl"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key\": \"key\",\n  \"secret\": \"secret\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/partner/authorize",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"partner",
								"authorize"
							]
						}
					},
					"response": []
				},
				{
					"name": "Refresh token",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							},
							{
								"key": "Accept-Language",
								"value": "pl"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"refresh_token\": \"refresh_token\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/partner/authorize/refresh",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"partner",
								"authorize",
								"refresh"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example for payment gateways",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer\": {\n        \"email\": \"customer@example.com\"\n    },\n    \"items\": [\n        {\n            \"value\": {\n                \"amount\": 50000,\n                \"currency\": \"PLN\"\n            },\n            \"merchant\": {\n                \"registrationNumber\": {\n                    \"country\": \"PL\",\n                    \"registrationNumber\": \"PL9452188308\"\n                }\n            },\n            \"partnerItemId\": \"29b2ce4f-2f80-45da-b1f5-33194477becb\"\n        }\n    ],\n    \"transactionData\": {\n        \"data\": {\n            \"monthlyReports\": [\n                {\n                    \"month\": \"2023-12-01\",\n                    \"transactionsValue\": 32222,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-11-01\",\n                    \"transactionsValue\": 549999,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 549999,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-10-01\",\n                    \"transactionsValue\": 89999,\n                    \"transactionsCount\": 2,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-09-01\",\n                    \"transactionsValue\": 800000,\n                    \"transactionsCount\": 4,\n                    \"refundsValue\": 1,\n                    \"refundsNumber\": 20000\n                },\n                {\n                    \"month\": \"2023-08-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-07-01\",\n                    \"transactionsValue\": 49999,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 49999,\n                    \"refundsNumber\": 3\n                },\n                {\n                    \"month\": \"2023-06-01\",\n                    \"transactionsValue\": 99989,\n                    \"transactionsCount\": 9,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-05-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-04-01\",\n                    \"transactionsValue\": 1340000,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-03-01\",\n                    \"transactionsValue\": 3222299,\n                    \"transactionsCount\": 11,\n                    \"refundsValue\": 300000,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-02-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-01-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                }\n            ],\n            \"firstTransactionDate\": \"2020-10-10\"\n        },\n        \"identifier\": {\n            \"email\": \"customer@example.com\"\n        }\n    },\n    \"notificationUrl\": \"https://example.com/notify\",\n    \"partnerOrderId\": \"e5d95044-fe0a-48cd-8fed-e602a511f824\",\n    \"returnUrl\": \"https://example.com/return\",\n    \"cancelUrl\": \"https://example.com/cancel\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example for marketplace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer\": {\n        \"email\": \"customer@example.com\",\n        \"phone\": {\n            \"number\": \"4444444444\",\n            \"prefix\": \"48\"\n        },\n        \"registrationNumber\": {\n            \"country\": \"PL\",\n            \"registrationNumber\": \"PL9452188308\"\n        },\n        \"firstName\": \"Jan\",\n        \"lastName\": \"Kowalski\"\n    },\n    \"items\": [\n        {\n            \"bankTransferDetails\": {\n                \"payee\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"payee@example.com\",\n                    \"phone\": {\n                        \"number\": \"4444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"payeeBankAccount\": {\n                    \"iban\": \"PL52102023130000380205581980\",\n                    \"swift\": \"BPKOPLPW\"\n                }\n            },\n            \"value\": {\n                \"amount\": 50000,\n                \"currency\": \"PLN\"\n            },\n            \"merchant\": {\n                \"registrationNumber\": {\n                    \"country\": \"PL\",\n                    \"registrationNumber\": \"PL6452471505\"\n                },\n                \"email\": \"payee@example.com\",\n                \"phone\": {\n                    \"number\": \"4444444444\",\n                    \"prefix\": \"48\"\n                }\n            },\n            \"partnerItemId\": \"29b2ce4f-2f80-45da-b1f5-33194477becb\"\n        },\n      {\n            \"bankTransferDetails\": {\n                \"payee\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"payee2@example.com\",\n                    \"phone\": {\n                        \"number\": \"1444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"payeeBankAccount\": {\n                    \"iban\": \"PL52102023130000380205581980\",\n                    \"swift\": \"BPKOPLPW\"\n                }\n            },\n            \"value\": {\n                \"amount\": 100000,\n                \"currency\": \"PLN\"\n            },\n            \"merchant\": {\n                \"registrationNumber\": {\n                    \"country\": \"PL\",\n                    \"registrationNumber\": \"PL6452471505\"\n                },\n                \"email\": \"payee2@example.com\",\n                \"phone\": {\n                    \"number\": \"9444444444\",\n                    \"prefix\": \"48\"\n                }\n            },\n            \"partnerItemId\": \"60d78ee3-1df6-4bd5-a489-3bca2e4d9b8b\"\n        }\n    ],\n    \"transactionData\": {\n        \"data\": {\n            \"monthlyReports\": [\n                {\n                    \"month\": \"2023-12-01\",\n                    \"transactionsValue\": 32222,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-11-01\",\n                    \"transactionsValue\": 549999,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 549999,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-10-01\",\n                    \"transactionsValue\": 89999,\n                    \"transactionsCount\": 2,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-09-01\",\n                    \"transactionsValue\": 800000,\n                    \"transactionsCount\": 4,\n                    \"refundsValue\": 1,\n                    \"refundsNumber\": 20000\n                },\n                {\n                    \"month\": \"2023-08-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-07-01\",\n                    \"transactionsValue\": 49999,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 49999,\n                    \"refundsNumber\": 3\n                },\n                {\n                    \"month\": \"2023-06-01\",\n                    \"transactionsValue\": 99989,\n                    \"transactionsCount\": 9,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-05-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-04-01\",\n                    \"transactionsValue\": 1340000,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-03-01\",\n                    \"transactionsValue\": 3222299,\n                    \"transactionsCount\": 11,\n                    \"refundsValue\": 300000,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-02-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-01-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                }\n            ],\n            \"firstTransactionDate\": \"2020-10-10\"\n        },\n        \"identifier\": {\n            \"email\": \"customer@example.com\"\n        }\n    },\n    \"notificationUrl\": \"https://example.com/notify\",\n    \"partnerOrderId\": \"85296193-40ae-4c04-a4ff-9839fcca8ff1\",\n    \"returnUrl\": \"https://example.com/return\",\n    \"cancelUrl\": \"https://example.com/cancel\",\n    \"repaymentPeriod\": {\n        \"type\": \"DAYS\",\n        \"value\": 60\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example for Partners with a list of invoices with Split Payment",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer\": {\n        \"email\": \"customer@example.com\",\n        \"phone\": {\n            \"number\": \"4444444444\",\n            \"prefix\": \"48\"\n        },\n        \"registrationNumber\": {\n            \"country\": \"PL\",\n            \"registrationNumber\": \"PL9452188308\"\n        },\n        \"firstName\": \"Jan\",\n        \"lastName\": \"Kowalski\",\n        \"identificationNumber\": \"85102204075\"\n    },\n    \"items\": [\n        {\n            \"bankTransferDetails\": {\n                \"payee\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"payee@example.com\",\n                    \"phone\": {\n                        \"number\": \"4444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"payeeBankAccount\": {\n                    \"iban\": \"PL52102023130000380205581980\",\n                    \"swift\": \"BPKOPLPW\"\n                },\n                \"transferTitle\": \"Wypłata środków za 2024-03-15\"\n            },\n            \"invoice\": {\n                \"merchant\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"merchant@example.com\",\n                    \"phone\": {\n                        \"number\": \"4444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"grossValue\": {\n                    \"amount\": 50000,\n                    \"currency\": \"PLN\"\n                },\n                \"netValue\": {\n                    \"amount\": 40000,\n                    \"currency\": \"PLN\"\n                },\n                \"dueDate\": \"2024-03-15\",\n                \"invoiceNumber\": \"FV05/2024/0001\",\n                \"isSplitPayment\": true\n            },\n            \"partnerItemId\": \"29b2ce4f-2f80-45da-b1f5-33194477becb\"\n        }\n    ],\n    \"transactionData\": {\n        \"data\": {\n             \"monthlyReports\": [\n                {\n                    \"month\": \"2023-12-01\",\n                    \"transactionsValue\": 32222,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-11-01\",\n                    \"transactionsValue\": 549999,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 549999,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-10-01\",\n                    \"transactionsValue\": 89999,\n                    \"transactionsCount\": 2,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-09-01\",\n                    \"transactionsValue\": 800000,\n                    \"transactionsCount\": 4,\n                    \"refundsValue\": 1,\n                    \"refundsNumber\": 20000\n                },\n                {\n                    \"month\": \"2023-08-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-07-01\",\n                    \"transactionsValue\": 49999,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 49999,\n                    \"refundsNumber\": 3\n                },\n                {\n                    \"month\": \"2023-06-01\",\n                    \"transactionsValue\": 99989,\n                    \"transactionsCount\": 9,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-05-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-04-01\",\n                    \"transactionsValue\": 1340000,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-03-01\",\n                    \"transactionsValue\": 3222299,\n                    \"transactionsCount\": 11,\n                    \"refundsValue\": 300000,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-02-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-01-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                }\n            ],\n            \"firstTransactionDate\": \"2020-10-10\"\n        },\n        \"identifier\": {\n            \"email\": \"customer@example.com\"\n        }\n    },\n    \"notificationUrl\": \"https://example.com/notify\",\n    \"partnerOrderId\": \"e91f86cea-45ab-42d2-9ae4-ca5501179672\",\n    \"returnUrl\": \"https://example.com/return\",\n    \"cancelUrl\": \"https://example.com/cancel\",\n    \"repaymentPeriod\": {\n        \"type\": \"DAYS\",\n        \"value\": 60\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example for Partners with a list of invoices without Split Payment",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer\": {\n        \"email\": \"customer@example.com\",\n        \"phone\": {\n            \"number\": \"4444444444\",\n            \"prefix\": \"48\"\n        },\n        \"registrationNumber\": {\n            \"country\": \"PL\",\n            \"registrationNumber\": \"PL9452188308\"\n        },\n        \"firstName\": \"Jan\",\n        \"lastName\": \"Kowalski\"\n    },\n    \"items\": [\n        {\n            \"bankTransferDetails\": {\n                \"payee\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"payee@example.com\",\n                    \"phone\": {\n                        \"number\": \"4444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"payeeBankAccount\": {\n                    \"iban\": \"PL52102023130000380205581980\",\n                    \"swift\": \"BPKOPLPW\"\n                },\n                \"transferTitle\": \"Wypłata środków za 2024-03-15\"\n            },\n            \"invoice\": {\n                \"merchant\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    },\n                    \"email\": \"merchant@example.com\",\n                    \"phone\": {\n                        \"number\": \"4444444444\",\n                        \"prefix\": \"48\"\n                    }\n                },\n                \"grossValue\": {\n                    \"amount\": 50000,\n                    \"currency\": \"PLN\"\n                },\n                \"netValue\": {\n                    \"amount\": 40000,\n                    \"currency\": \"PLN\"\n                },\n                \"dueDate\": \"2024-03-15\",\n                \"invoiceNumber\": \"FV05/2024/0001\",\n                \"isSplitPayment\": false\n            },\n            \"partnerItemId\": \"29b2ce4f-2f80-45da-b1f5-33194477becb\"\n        }\n    ],\n    \"transactionData\": {\n        \"data\": {\n             \"monthlyReports\": [\n                {\n                    \"month\": \"2023-12-01\",\n                    \"transactionsValue\": 32222,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-11-01\",\n                    \"transactionsValue\": 549999,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 549999,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-10-01\",\n                    \"transactionsValue\": 89999,\n                    \"transactionsCount\": 2,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-09-01\",\n                    \"transactionsValue\": 800000,\n                    \"transactionsCount\": 4,\n                    \"refundsValue\": 1,\n                    \"refundsNumber\": 20000\n                },\n                {\n                    \"month\": \"2023-08-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-07-01\",\n                    \"transactionsValue\": 49999,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 49999,\n                    \"refundsNumber\": 3\n                },\n                {\n                    \"month\": \"2023-06-01\",\n                    \"transactionsValue\": 99989,\n                    \"transactionsCount\": 9,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-05-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-04-01\",\n                    \"transactionsValue\": 1340000,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-03-01\",\n                    \"transactionsValue\": 3222299,\n                    \"transactionsCount\": 11,\n                    \"refundsValue\": 300000,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-02-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-01-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                }\n            ],\n            \"firstTransactionDate\": \"2020-10-10\"\n        },\n        \"identifier\": {\n            \"email\": \"customer@example.com\"\n        }\n    },\n    \"notificationUrl\": \"https://example.com/notify\",\n    \"partnerOrderId\": \"e5d95044-fe0a-48cd-8fed-e602a511f824\",\n    \"returnUrl\": \"https://example.com/return\",\n    \"cancelUrl\": \"https://example.com/cancel\",\n    \"repaymentPeriod\": {\n        \"type\": \"DAYS\",\n        \"value\": 60\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Example for stores and sales platforms",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"customer\": {\n        \"email\": \"customer@example.com\",\n        \"phone\": {\n            \"number\": \"4444444444\",\n            \"prefix\": \"48\"\n        },\n        \"registrationNumber\": {\n            \"country\": \"PL\",\n            \"registrationNumber\": \"PL9452188308\"\n        }\n    },\n    \"items\": [\n        {\n            \"bankTransferDetails\": {\n                \"payee\": {\n                    \"registrationNumber\": {\n                        \"country\": \"PL\",\n                        \"registrationNumber\": \"PL6452471505\"\n                    }\n                },\n                \"payeeBankAccount\": {\n                    \"iban\": \"PL52102023130000380205581980\"\n                }\n            },\n            \"value\": {\n                \"amount\": 50000,\n                \"currency\": \"PLN\"\n            },\n            \"merchant\": {\n                \"registrationNumber\": {\n                    \"country\": \"PL\",\n                    \"registrationNumber\": \"PL6452471505\"\n                }\n            }\n        }\n    ],\n    \"transactionData\": {\n        \"data\": {\n           \"monthlyReports\": [\n                {\n                    \"month\": \"2023-12-01\",\n                    \"transactionsValue\": 32222,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-11-01\",\n                    \"transactionsValue\": 549999,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 549999,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-10-01\",\n                    \"transactionsValue\": 89999,\n                    \"transactionsCount\": 2,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-09-01\",\n                    \"transactionsValue\": 800000,\n                    \"transactionsCount\": 4,\n                    \"refundsValue\": 1,\n                    \"refundsNumber\": 20000\n                },\n                {\n                    \"month\": \"2023-08-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-07-01\",\n                    \"transactionsValue\": 49999,\n                    \"transactionsCount\": 3,\n                    \"refundsValue\": 49999,\n                    \"refundsNumber\": 3\n                },\n                {\n                    \"month\": \"2023-06-01\",\n                    \"transactionsValue\": 99989,\n                    \"transactionsCount\": 9,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-05-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-04-01\",\n                    \"transactionsValue\": 1340000,\n                    \"transactionsCount\": 1,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-03-01\",\n                    \"transactionsValue\": 3222299,\n                    \"transactionsCount\": 11,\n                    \"refundsValue\": 300000,\n                    \"refundsNumber\": 1\n                },\n                {\n                    \"month\": \"2023-02-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                },\n                {\n                    \"month\": \"2023-01-01\",\n                    \"transactionsValue\": 0,\n                    \"transactionsCount\": 0,\n                    \"refundsValue\": 0,\n                    \"refundsNumber\": 0\n                }\n            ]\n        }\n    },\n    \"notificationUrl\": \"https://example.com/notify\",\n    \"partnerOrderId\": \"cc523436-bfb5-4640-b674-c0b97429d63e\",\n    \"returnUrl\": \"https://example.com/return\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Order returns",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "PATCH",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"partnerUpdateId\": \"b77c5887-2fd7-4121-82c0-5a8880b3bac3\",\n  \"value\": {\n    \"amount\": 70000,\n    \"currency\": \"PLN\"\n  },\n  \"itemId\": \"f83355ac-3a45-58de-ac3d-fdf598c84a4f\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment/{paymentId}/update",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment",
								"{paymentId}",
								"update"
							]
						}
					},
					"response": []
				},
				{
					"name": "Order confirmation before financing",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "PATCH",
						"header": [],
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment/{paymentId}/confirm",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment",
								"{paymentId}",
								"confirm"
							]
						}
					},
					"response": []
				},
				{
					"name": "Payment cancellation",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "PATCH",
						"header": [],
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment/{paymentId}/cancel",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment",
								"{paymentId}",
								"cancel"
							]
						}
					},
					"response": []
				},
				{
					"name": "Check PragmaPay payment status",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/v2/partner/payment/{paymentId}",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"v2",
								"partner",
								"payment",
								"{paymentId}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Download SMS token (action available only to QA)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/test/test/{hash}/payment/{paymentId}/current_token",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"test",
								"test",
								"{hash}",
								"payment",
								"{paymentId}",
								"current_token"
							]
						}
					},
					"response": []
				},
				{
					"name": "PragmaPay Calculator",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": []
							}
						}
					],
					"protocolProfileBehavior": {
						"followRedirects": true,
						"disableUrlEncoding": false,
						"disableCookies": false
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{ _.token }}",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"url": {
							"raw": "https://api-partner.box.pragmago.tech/api/partner/payment/calculator?value[amount]=50000&value[currency]=PLN&repaymentPeriod[type]=installments&repaymentPeriod[value]=5",
							"protocol": "https",
							"host": [
								"pragmapay-api",
								"box",
								"pragmago",
								"tech"
							],
							"path": [
								"api",
								"partner",
								"payment",
								"calculator"
							],
							"query": [
								{
									"key": "value[amount]",
									"value": "50000"
								},
								{
									"key": "value[currency]",
									"value": "PLN"
								},
								{
									"key": "repaymentPeriod[type]",
									"value": "installments"
								},
								{
									"key": "repaymentPeriod[value]",
									"value": "5"
								}
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"variable": [
		{
			"key": "pragmaUrl",
			"value": "https://api-partner.box.pragmago.tech"
		},
		{
			"key": "key",
			"value": "d5e49098-dde1-4aee-85d7-62e1e6bc14e7"
		},
		{
			"key": "secret",
			"value": "eef8f874-d481-4458-8b7f-63f07ecfb461"
		},
		{
			"key": "token",
			"value": "{% response 'body', 'req_324b2c4fae784eafbf172bcacdfe3cd4', 'b64::JC50b2tlbg==::46b', 'when-expired', 180 %}"
		},
		{
			"key": "recommendation_code",
			"value": "111111"
		},
		{
			"key": "partnerHash",
			"value": "654bdb29-2aa3-4dcc-8122-ca4cc0120a98"
		},
		{
			"key": "customerNip",
			"value": "PL6222819123"
		},
		{
			"key": "loanProposalId",
			"value": "{% response 'body', 'req_a471be17d62e4391a6060f2589bad317', 'b64::JC5pZA==::46b', 'never', 60 %}"
		},
		{
			"key": "documentId",
			"value": "{% response 'body', 'req_8c29456f3e9641e1ba05b44c36df1e92', 'b64::JC5jb250cmFjdC5kb2N1bWVudElk::46b', 'never', 60 %}"
		},
		{
			"key": "TokenSms",
			"value": "{% response 'body', 'req_5af2816184344089a27cd6cbbda24c5a', 'b64::JC5bMF0udG9rZW4=::46b', 'never', 60 %}"
		},
		{
			"key": "NipRescoring",
			"value": "PL6222819123"
		}
	]
}