v1

latestSwagger 2.02026-07-1798126172.4 KB
Order

Create order

Takes the given data and tries to create a new payment order in the pilvytis service.

post/v2/identities/{id}/{gw}/payment-order

Path parameters

idstring required

Identity for which to create an order

gwstring required

Gateway for which a payment order is created

Request body

amount_usdstring
countrystring
gateway_caller_dataobject
myst_amountstring
pay_currencystring
project_idstring
statestring

Example request

{
  "amount_usd": "20",
  "country": "US",
  "gateway_caller_data": {},
  "myst_amount": "3.14",
  "pay_currency": "EUR",
  "project_id": "mysteriumvpn, mystnodes",
  "state": "MO"
}

Response

Payment order

chain_idinteger
channel_addressstring
countrystring
currencystring
gateway_namestring
idstring
identitystring
items_sub_totalstring
order_totalstring
pay_amountstring
pay_currencystring
public_gateway_dataobject
receive_myststring
statestring
statusstring
tax_ratestring
tax_sub_totalstring