### GET Payment Widget Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Creates a payment window for processing transactions. ```APIDOC ## GET Payment Widget ### Description Creates a payment window for processing transactions. ### Method GET ### Endpoint `{{ base_payment_url }}/` ### Parameters #### Query Parameters - **sum** (number) - Required - Order amount in rubles. - **signature** (string) - Required - Signature for order formation (sha256(login:sum:invid:apiKey)). - **invid** (string) - Required - Order identifier in your system. - **merchant** (integer) - Required - Identifier of the merchant in our system. - **external_user_id** (string) - Optional - Identifier of the user who created the order in your system. - **redirect_url** (string) - Optional - URL for redirection after payment. - **callback_url** (string) - Optional - URL for callback notifications. - **sender_bank** (string) - Optional - Parameter for selecting a bank. ### Request Example ```json { "example": "curl --location -g '{{ base_payment_url }}/?sum=123&signature=hash&invid=235211079299&merchant=1&external_user_id=777&redirect_url=link.com&callback_url=callbackurl.com&sender_bank={bank.code}'" } ``` ### Response #### Success Response (200) No response body. #### Response Example No response body. ``` -------------------------------- ### GET Request for Available Payment Limits Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index This snippet shows how to make a GET request to retrieve the available payment limits for different methods. The response is a JSON array detailing methods like 'c2c' and 'sbp' with their respective limits. ```curl curl --location -g '{API_URL}/external/payin/available-limits' ``` -------------------------------- ### GET Account Balance Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Fetches the current account balance and frozen balance for the authenticated user. Requires an 'api-key' in the headers for authentication. ```curl curl --location -g '{API_URL}/api/external/me/balance' \ --header 'api-key: {api-key}' ``` -------------------------------- ### GET Create Payment Window Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Generates a payment window for a given transaction. This endpoint requires several parameters including sum, signature, order ID, merchant ID, user ID, redirect URL, and callback URL. An optional sender bank can be specified. ```curl curl --location -g '{{ base_payment_url }}/?sum=123&signature=hash&invid=235211079299&merchant=1&external_user_id=777&redirect_url=link.com&callback_url=callbackurl.com&sender_bank={bank.code}' ``` -------------------------------- ### GET /external/me/balance Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Retrieves the current account balance, including the available and frozen amounts. ```APIDOC ## GET /external/me/balance ### Description Retrieves the current account balance. ### Method GET ### Endpoint `/external/me/balance` ### Parameters #### Headers - **api-key** (string) - Required - API key for authentication. ### Request Example ```json { "example": "curl --location -g '{API_URL}/api/external/me/balance' \ --header 'api-key: {api-key}'" } ``` ### Response #### Success Response (200) - **balance** (number) - The available balance in the account. - **frozen_balance** (number) - The amount currently frozen in the account. #### Response Example ```json { "balance": 123.4, "frozen_balance": 0 } ``` ``` -------------------------------- ### GET /orders/getBankAvailable Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Retrieves a list of currently available payment methods for a given merchant, sum, operation, and currency. ```APIDOC ## GET /orders/getBankAvailable ### Description Retrieves a list of currently available payment methods. ### Method GET ### Endpoint `/orders/getBankAvailable` ### Parameters #### Query Parameters - **merchant** (integer) - Required - Identifier of the merchant in our system. - **sum** (number) - Required - Order amount in rubles. - **operation** (string) - Required - Type of operation. - **currency** (string) - Required - Desired currency. ### Request Example ```json { "example": "/api/orders/getBankAvailable?merchant=1&sum=5000&operation=Пополнение¤cy=RUB" } ``` ### Response #### Success Response (200) - **Body** (array of strings) - A list of available payment method identifiers (e.g., ["sberbank", "sbp"]). #### Response Example ```json [ "sberbank", "sbp" ] ``` ``` -------------------------------- ### GET Available Payment Methods Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index Retrieves a list of currently available payment methods for a given merchant, sum, operation, and currency. This endpoint is crucial for displaying payment options to users. ```curl curl --location -g '{API_URL}/api/orders/getBankAvailable?merchant=70&sum=6000&operation=%D0%9F%D0%BE%D0%BF%D0%BE%D0%BB%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5¤cy=RUB' ``` -------------------------------- ### GET /external/payin/available-limits Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index This endpoint retrieves the available payment limits for different payment methods. It returns a list of payment methods along with their respective minimum and maximum transaction limits. ```APIDOC ## GET /external/payin/available-limits ### Description This endpoint retrieves the available payment limits for different payment methods. It returns a list of payment methods along with their respective minimum and maximum transaction limits. ### Method GET ### Endpoint `{API_URL}/external/payin/available-limits` ### Parameters None ### Request Example ```bash curl --location -g '{API_URL}/external/payin/available-limits' ``` ### Response #### Success Response (200) - **method** (string) - The payment method (e.g., 'c2c', 'sbp'). - **limits** (string) - A string representing the range of available limits (e.g., '1000-5000'). #### Response Example ```json [ { "method": "c2c", "limits": "1000-5000" }, { "method": "sbp", "limits": "1000-150000" } ] ``` ``` -------------------------------- ### POST /orders/check-status Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index This endpoint allows you to check the status of an order. It requires merchant ID, invoice ID, and a signature for authentication. The response includes the order's current status, associated details, and currency information. ```APIDOC ## POST /orders/check-status ### Description This endpoint allows you to check the status of an order. It requires merchant ID, invoice ID, and a signature for authentication. The response includes the order's current status, associated details, and currency information. ### Method POST ### Endpoint `{API_URL}/orders/check-status` ### Parameters #### Request Body - **merchant** (integer) - Required - The ID of the merchant. - **invid** (string) - Required - The unique identifier for the invoice. - **signature** (string) - Required - A SHA256 hash for authentication, typically formed as `sha256('login:sum:invid:apiKey')`. ### Request Example ```json { "merchant": 1, "invid": "test123", "signature": "sha256('login:sum:invid:apiKey')" } ``` ### Response #### Success Response (200) - **id** (integer) - The unique order ID. - **invid** (string) - The invoice ID. - **exist** (string) - Indicates if the order already exists. - **time** (string) - The timestamp of the order status update. - **status** (string) - The current status of the order (e.g., `completed`, `cancelled`, `processing`, `error`, `pending`, `unclaimed`). - **operation** (string) - The type of operation (e.g., 'Пополнение'). - **card** (object) - Details about the payment card. - **number** (string) - The card number. - **telefon** (string) - The associated phone number. - **account_number** (string) - The account number. - **bank_id_code** (string) - The bank ID code. - **currency** (string) - The currency of the transaction. - **curs** (string) - The exchange rate. - **sum** (string) - The initial sum of the transaction. - **fact_sum** (string|null) - The actual sum of the transaction, if applicable. - **fio** (string) - The full name of the account holder. - **bank** (object) - Details about the bank. - **name** (string) - The bank's name. - **code** (string) - The bank's code. - **logo** (string) - The bank's logo URL. - **code_nspk** (string) - The NSPK code of the bank. - **sbp** (boolean) - Indicates if the payment was made via SBP (System for Fast Payments). - **account_transfer** (boolean) - Indicates if it was an account transfer. - **trans_gov** (any|null) - Government transfer details, if applicable. - **trans_gov_country** (any|null) - Government transfer country, if applicable. - **appeal_insured** (boolean) - Indicates if the appeal is insured. #### Response Example ```json { "id": 212, "invid": "testinvid_1", "exist": "already", "time": "2025-06-06T16:39:06.000000Z", "status": "pending", "operation": "Пополнение", "card": { "number": "2222222222222222", "telefon": "72222222222", "account_number": "22222222222222223322", "bank_id_code": "000000000" }, "currency": "RUB", "curs": "81.8856", "sum": "100.0000", "fact_sum": null, "fio": "Хогай Р", "bank": { "name": "Россельхозбанк", "code": "rosselkhozbank", "logo": "", "code_nspk": "100000000020" }, "sbp": true, "account_transfer": false, "trans_gov": null, "trans_gov_country": null, "appeal_insured": false } ``` ``` -------------------------------- ### POST Request to Check Order Status Source: https://documenter.getpostman.com/view/24855881/2sB2x2LaNf/index This snippet demonstrates how to send a POST request to check the status of an order. It requires merchant ID, invoice ID, and a signature for authentication. The response includes the order's current status and details. ```json { "merchant": 1, "invid": "test123", "signature": "sha256('login:sum:invid:apiKey')" } ``` ```curl curl --location -g '{API_URL}/orders/check-status' \ --header 'Accept: application/json' \ --data '{ \ "merchant": 4, \ "invid": "testinvid_1", \ "signature": "sha256('\''login:sum:invid:apiKey'\'')" \ }' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.