POST
/
api
/
v1
/
onrampSession
/
Create On-Ramp Session
curl --request POST \
  --url https://skala-sandbox.ripio.com/api/v1/onrampSession/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1",
  "paymentMethodType": "wire",
  "chain": "ETHEREUM_SEPOLIA",
  "currency": "USDC",
  "depositAddress": "0x4e88BBeFF059BDDF5BF90ee0816E86eDf4214b32"
}'
{
  "sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "currency": "<string>",
  "chain": "<string>",
  "depositAddress": "<string>",
  "fiatPaymentInstructions": {
    "cvu": "0000465160000000070078"
  },
  "orders": [
    {
      "transactionId": "21d8a046-3221-4b43-a301-0f9adcdd9a45",
      "createdAt": "2023-11-07T05:31:56Z",
      "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "fromCurrency": "ARS",
      "toCurrency": "USDC",
      "amount": "<string>",
      "chain": "ETHEREUM_SEPOLIA",
      "paymentMethodType": "wire",
      "depositAddress": "<string>",
      "status": "WITHDRAWAL_PENDING",
      "externalRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.

Body

application/json

Details for creating an on-ramp session.

customerId
string<uuid>
required

Unique identifier for the customer.

Example:

"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1"

paymentMethodType
string
required

The payment method used for the fiat deposit.

Example:

"wire"

chain
string
required

The blockchain network to be used for the conversion.

Example:

"ETHEREUM_SEPOLIA"

currency
string
required

The target currency for the conversion.

Example:

"USDC"

depositAddress
string
required

The customer's deposit address on the chosen blockchain network.

Example:

"0x4e88BBeFF059BDDF5BF90ee0816E86eDf4214b32"

Response

On-Ramp session created successfully.

sessionId
string<uuid>
required

Unique identifier for the created on-ramp session.

customerId
string<uuid>
required

Unique identifier for the customer associated with the session.

createdAt
string<date-time>
required

Date and time the on-ramp session was created.

currency
string
required

The target crypto currency for every on-ramp transaction performed with the created session.

chain
string
required

The blockchain network to be used for the conversion.

depositAddress
string
required

The customer's deposit address on the chosen blockchain network.

fiatPaymentInstructions
object
required

Instructions for the customer to complete the fiat deposit. Structure can vary.

Example:
{ "cvu": "0000465160000000070078" }
orders
object[]
required

A list containing every order that has been either started or completed through this session. On creation, will always be empty.