curl --request POST \
--url https://skala-sandbox.ripio.com/api/v1/offrampSession/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fiatAccountId": "fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1"
}
'import requests
url = "https://skala-sandbox.ripio.com/api/v1/offrampSession/"
payload = { "fiatAccountId": "fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fiatAccountId: 'fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1'})
};
fetch('https://skala-sandbox.ripio.com/api/v1/offrampSession/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://skala-sandbox.ripio.com/api/v1/offrampSession/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fiatAccountId' => 'fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://skala-sandbox.ripio.com/api/v1/offrampSession/"
payload := strings.NewReader("{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://skala-sandbox.ripio.com/api/v1/offrampSession/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/offrampSession/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"toCurrency": "<string>",
"paymentMethodType": "<string>",
"fiatAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"depositAddresses": [
{
"chain": "ETHEREUM",
"address": "0x1234567890AbCdEf1234567890AbCdEf1234567890"
}
],
"transactions": [
{
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromCurrency": "USDC",
"toCurrency": "ARS",
"amount": "<string>",
"chain": "ETHEREUM",
"metadata": {},
"txnHash": null,
"providerId": "<string>",
"finishedAt": "<string>",
"fiatAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refundAddress": "<string>",
"refundable": false,
"refundDestinationRequired": false,
"latestRefund": {
"refundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"rejectionReason": "",
"initiatedBy": "PARTNER",
"requestedAt": "2023-11-07T05:31:56Z"
},
"refundedTxnHash": null
}
]
}{
"code": 123,
"type": "<string>",
"detail": {
"message": "<string>"
},
"status": 123
}{
"code": 40001,
"type": "NotAuthenticated",
"detail": {
"message": "Authentication credentials were not provided.",
"code": "not_authenticated"
},
"status": 401
}{
"code": 40004,
"type": "NotFound",
"detail": {
"message": "Not found.",
"code": "not_found"
},
"status": 404
}Create Off-Ramp Session
Initiates an off-ramp session for a customer, specifying their fiat account. Returns session details and cryptocurrency deposit addresses.
curl --request POST \
--url https://skala-sandbox.ripio.com/api/v1/offrampSession/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fiatAccountId": "fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1"
}
'import requests
url = "https://skala-sandbox.ripio.com/api/v1/offrampSession/"
payload = { "fiatAccountId": "fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fiatAccountId: 'fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1'})
};
fetch('https://skala-sandbox.ripio.com/api/v1/offrampSession/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://skala-sandbox.ripio.com/api/v1/offrampSession/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fiatAccountId' => 'fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://skala-sandbox.ripio.com/api/v1/offrampSession/"
payload := strings.NewReader("{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://skala-sandbox.ripio.com/api/v1/offrampSession/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/offrampSession/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fiatAccountId\": \"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1\"\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"toCurrency": "<string>",
"paymentMethodType": "<string>",
"fiatAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"depositAddresses": [
{
"chain": "ETHEREUM",
"address": "0x1234567890AbCdEf1234567890AbCdEf1234567890"
}
],
"transactions": [
{
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromCurrency": "USDC",
"toCurrency": "ARS",
"amount": "<string>",
"chain": "ETHEREUM",
"metadata": {},
"txnHash": null,
"providerId": "<string>",
"finishedAt": "<string>",
"fiatAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refundAddress": "<string>",
"refundable": false,
"refundDestinationRequired": false,
"latestRefund": {
"refundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"rejectionReason": "",
"initiatedBy": "PARTNER",
"requestedAt": "2023-11-07T05:31:56Z"
},
"refundedTxnHash": null
}
]
}{
"code": 123,
"type": "<string>",
"detail": {
"message": "<string>"
},
"status": 123
}{
"code": 40001,
"type": "NotAuthenticated",
"detail": {
"message": "Authentication credentials were not provided.",
"code": "not_authenticated"
},
"status": 401
}{
"code": 40004,
"type": "NotFound",
"detail": {
"message": "Not found.",
"code": "not_found"
},
"status": 404
}Authorizations
Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.
Body
Details for creating an off-ramp session.
Unique identifier for the customer's chosen fiat account.
"fca6d32f-2f7e-4f7e-b224-8be0b92fa3f1"
Response
Off-Ramp session created successfully.
Unique identifier for the created off-ramp session.
Unique identifier for the customer associated with the session.
Date and time the off-ramp session was created.
The target fiat currency for every off-ramp transaction performed with the created session.
The fiat payment method through which the transactions will be performed.
Unique identifier for the customer's chosen fiat account.
A list containing cryptocurrency deposit addresses for supported blockchains.
Show child attributes
Show child attributes
A list containing every transaction that has been either started or completed through this session. On creation, will always be empty.
Show child attributes
Show child attributes
Was this page helpful?