{ "info": { "_postman_id": "22361840-1bc8-41b8-9016-8e947ddb17f6", "name": "*API v19.04.2023 раздел онлайн эквайринг", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "30010846" }, "item": [ { "name": "Создание инвойса", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "\r\n{\r\n\"order_id\": \"{{$randomLastName}}\",\r\n\"amount\": 100,\r\n\"callback_url\": \"\",\r\n\"return_url\": \"\",\r\n\"fail_url\": \"\",\r\n\"processing_url\": \"\",\r\n\"payer_name\": \"Покупатель\",\r\n\"payer_phone\": \"89999999999\",\r\n\"payer_email\": \"\",\r\n\"ttl\": 24,\r\n\"currency\": \"RUB\",\r\n\"merchant\": {\"name\": \"\", \"url\": \"\"}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/payments", "host": [ "{{Url}}" ], "path": [ "api", "payments" ] } }, "response": [] }, { "name": "Создание рекуррентного платежа", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n\"orderId\": \"\", // уникальный номер в системе мерчанта, обязательное поле\r\n\"cardToken\": \"\", // токен карты, обязательное поле \r\n\"amount\": 100, // сумма в копейках, обязательное поле\r\n\"callbackUrl\": \"\", // адрес нотификации, обязательное поле\r\n\"currency\": \"RUB\", // валюта, обязательное поле\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/recurrentPayment", "host": [ "{{Url}}" ], "path": [ "api", "recurrentPayment" ] } }, "response": [] }, { "name": "Возвраты", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n\"payment_id\": \"123456\",\r\n\"amount\": 40\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/refund", "host": [ "{{Url}}" ], "path": [ "api", "refund" ] } }, "response": [] }, { "name": "Подтверждение платежа", "request": { "auth": { "type": "jwt", "jwt": [ { "key": "privateKey", "value": "-----BEGIN PRIVATE KEY-----\n{{PrivateKey}}\n-----END PRIVATE KEY-----", "type": "string" }, { "key": "payload", "value": "{\r\n \"key\": \"{{keypayload}}\",\r\n \"exp\": 2227391999,\r\n \"nbf\": 1690268083\r\n}", "type": "string" }, { "key": "addTokenTo", "value": "header", "type": "string" }, { "key": "algorithm", "value": "RS256", "type": "string" }, { "key": "isSecretBase64Encoded", "value": false, "type": "boolean" }, { "key": "headerPrefix", "value": "Bearer", "type": "string" }, { "key": "queryParamKey", "value": "token", "type": "string" }, { "key": "header", "value": "{}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n\"id\": 100,\r\n\"order_id\": \"98885\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/paymentsConfirmation", "host": [ "{{Url}}" ], "path": [ "api", "paymentsConfirmation" ] } }, "response": [] }, { "name": "Передача данных карты плательщика", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n\"cardNumber\": \"{{card}}\",\r\n\"cardHolder\": \"Card Holder\",\r\n\"expireMonth\": \"11\",\r\n\"expireYear\": \"22\",\r\n\"cvv\": \"123\",\r\n\"trusted\": 1 // optional\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/payWithoutForm/{id}", "host": [ "{{Url}}" ], "path": [ "payWithoutForm", "{id}" ] } }, "response": [] }, { "name": "Проверка статуса инвойса", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/payments?order_id=&id=", "host": [ "{{Url}}" ], "path": [ "api", "payments" ], "query": [ { "key": "order_id", "value": "", "description": "номер в учетной системе мерчанта." }, { "key": "id", "value": "", "description": "номер инвойса в системе сервиса" } ] } }, "response": [] }, { "name": "Получения токена карты", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{Token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{Url}}/api/cardToken?cardNumber=", "host": [ "{{Url}}" ], "path": [ "api", "cardToken" ], "query": [ { "key": "cardNumber", "value": "", "description": "номер карты для проверки" } ] } }, "response": [] } ] }