API documentation
  • Documention
    • Common information
      • Authorization in API
      • Currency
    • Services
    • Order management
      • Order list reception
      • Placing an order
      • Order changes
      • Order payment
      • Order operations
    • Network tools
      • Checker
      • Free proxies
Powered by GitBook
On this page
  1. Documention
  2. Order management

Order payment

PreviousOrder changesNextOrder operations

Last updated 1 year ago

Using API you can make a new order or extend the old one.

You can get the link to pay with your card or crypto wallet or make automatic payment using API balance which can be replanished in personal account.

API balance replenishment: . To pay through API balance balanceis to be passed in merchant field.

Available payment methods reception

Order cost calculations

Order extension

You can always extend your order making payment for the needed extending period through #user-orders-order_id-charge .

If the orders validity period has already expired you can also change proxies quantity in it through Order changes.

https://proxy-solutions.net/lk/api

List of payment methods

get

The request returns a list of currently available payment methods. Each payment method has its own supported currencies.

Responses
200
OK
application/json
get
GET /api/merchants HTTP/1.1
Host: v3.proxy-solutions.net
Accept: */*
200

OK

{
  "merchants": [
    {
      "code": "interkassa",
      "name": "Interkassa",
      "currencies": [
        "UAH",
        "USD",
        "EUR"
      ]
    }
  ]
}
  • POSTOrder payment
  • Available payment methods reception
  • GETList of payment methods
  • Order cost calculations
  • POSTOrder cost calculation
  • Order extension

Order payment

post

The request allows you to pay for a new order or extend an existing one.

Authorizations
Path parameters
order_idintegerRequiredExample: 10000
Body
merchantstringRequired

Payment system code

Example: freekassa
periodintegerOptional

Payment period in days. If not specified, the current order period will be used.

Example: 60
currencystringRequired

Payment system currency code

Example: RUB
promocodestringOptional

Promocode

Example: PSPromo
Responses
200
OK
application/json
401
Unauthorized
404
Order not found
422
Validation error
application/json
post
POST /api/user/orders/{order_id}/charge HTTP/1.1
Host: v3.proxy-solutions.net
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "merchant": "freekassa",
  "period": 60,
  "currency": "RUB",
  "promocode": "PSPromo"
}
{
  "payment": {
    "discount": 10,
    "merchant": "freekassa",
    "payer_currency": "RUB",
    "payer_amount": 90,
    "url": "https://pay.freekassa.ru?m=545&oa=250.00&currency=RUB&o=53951&s=9e9607935d6c6567f731118931070455"
  }
}

Order cost calculation

post

Calculation of the cost of an order with specified parameters and the amount to be paid. If a valid promocode is specified, the corresponding discount will be applied.

Path parameters
service_idintegerRequiredExample: 4
Query parameters
langstring ยท enumOptional

Language code

Default: ENPossible values:
Body
location_idintegerOptional

Location (if the tariff requires)

Example: 8
quantityintegerOptional

Number of addresses/channels

Default: 1
periodintegerOptional

Period in days

Default: 30
multiportbooleanOptional

Allow the client to change equipment (only for mobile proxies)

Default: true
promocodestringOptional

Promocode

Example: vk-top10
merchantstringOptional

Merchant code

Example: freekassa
currencystringOptional

Currency code

Example: RUB
Responses
200
OK
application/json
404
Service not found
422
Validation error
application/json
post
POST /api/services/{service_id}/price HTTP/1.1
Host: v3.proxy-solutions.net
Content-Type: application/json
Accept: */*
Content-Length: 121

{
  "location_id": 8,
  "quantity": 1,
  "period": 1,
  "multiport": true,
  "promocode": "vk-top10",
  "merchant": "freekassa",
  "currency": "RUB"
}
{
  "lang": "EN",
  "discount": 10,
  "amount": 1.81,
  "converted_amount": 100,
  "merchant": "freekassa",
  "payer_amount": 90,
  "payer_currency": "RUB"
}