curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/', 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/sellAndPays/{sell_and_pay_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "a3b2c1d0-1234-5678-90ab-cdef12345678",
"createdAt": "2024-01-26T12:45:00.078230Z",
"expiresAt": "2024-01-26T13:45:00.078230Z",
"customerId": "b6cecc1f-c90d-424b-adaa-c82b780696c1",
"trade": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"externalRef": "<string>",
"customerId": "<string>",
"quoteId": "<string>",
"txnId": "<string>",
"baseAsset": "<string>",
"quoteAsset": "<string>",
"baseAmount": "<string>",
"quoteAmount": "<string>",
"rate": "<string>",
"marketRate": "<string>",
"chargedFee": "<string>",
"cryptoChargedFee": "<string>",
"deferredChargedFee": "<string>",
"feeChargedInFiat": "<string>"
},
"paymentOrder": {
"id": "<string>",
"customerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"merchant": "<string>",
"qrCode": "<string>",
"amount": "<string>",
"currency": "<string>",
"providerTxnId": "<string>"
},
"amount": "10000.50",
"cryptoAmount": "10.25",
"paymentCurrency": "ARS",
"depositCurrency": "USDC",
"depositNetwork": "ETHEREUM",
"depositAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"cryptoDeposit": {
"id": "<string>",
"txnId": "<string>",
"hash": "<string>",
"currencyCode": "<string>",
"addressDestination": "<string>",
"confirmationDate": "2023-11-07T05:31:56Z",
"amount": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"status": "<string>",
"network": "<string>"
},
"status": "PENDING",
"refundAddress": "<string>",
"refundTxnHash": "0xdef789abc456..."
}{
"code": 40001,
"type": "NotAuthenticated",
"detail": {
"message": "Authentication credentials were not provided.",
"code": "not_authenticated"
},
"status": 401
}{
"code": 40003,
"type": "QrPaymentsNotEnabledException",
"detail": {
"message": "QR payments are not enabled for this account."
},
"status": 403
}{
"code": 40016,
"type": "SellAndPayNotFoundException",
"detail": {
"message": "Sell and Pay not found."
},
"status": 404
}Retrieve Sell and Pay transaction
Retrieves detailed information about a specific Sell and Pay transaction by its ID.
curl --request GET \
--url https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/', 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/sellAndPays/{sell_and_pay_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://skala-sandbox.ripio.com/api/v1/sellAndPays/{sell_and_pay_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "a3b2c1d0-1234-5678-90ab-cdef12345678",
"createdAt": "2024-01-26T12:45:00.078230Z",
"expiresAt": "2024-01-26T13:45:00.078230Z",
"customerId": "b6cecc1f-c90d-424b-adaa-c82b780696c1",
"trade": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"externalRef": "<string>",
"customerId": "<string>",
"quoteId": "<string>",
"txnId": "<string>",
"baseAsset": "<string>",
"quoteAsset": "<string>",
"baseAmount": "<string>",
"quoteAmount": "<string>",
"rate": "<string>",
"marketRate": "<string>",
"chargedFee": "<string>",
"cryptoChargedFee": "<string>",
"deferredChargedFee": "<string>",
"feeChargedInFiat": "<string>"
},
"paymentOrder": {
"id": "<string>",
"customerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"merchant": "<string>",
"qrCode": "<string>",
"amount": "<string>",
"currency": "<string>",
"providerTxnId": "<string>"
},
"amount": "10000.50",
"cryptoAmount": "10.25",
"paymentCurrency": "ARS",
"depositCurrency": "USDC",
"depositNetwork": "ETHEREUM",
"depositAddress": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"cryptoDeposit": {
"id": "<string>",
"txnId": "<string>",
"hash": "<string>",
"currencyCode": "<string>",
"addressDestination": "<string>",
"confirmationDate": "2023-11-07T05:31:56Z",
"amount": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"status": "<string>",
"network": "<string>"
},
"status": "PENDING",
"refundAddress": "<string>",
"refundTxnHash": "0xdef789abc456..."
}{
"code": 40001,
"type": "NotAuthenticated",
"detail": {
"message": "Authentication credentials were not provided.",
"code": "not_authenticated"
},
"status": 401
}{
"code": 40003,
"type": "QrPaymentsNotEnabledException",
"detail": {
"message": "QR payments are not enabled for this account."
},
"status": 403
}{
"code": 40016,
"type": "SellAndPayNotFoundException",
"detail": {
"message": "Sell and Pay not found."
},
"status": 404
}Authorizations
Access token obtained via /oauth2/token/. Use as Authorization: Bearer <access_token>.
Path Parameters
Response
Sell and Pay transaction details retrieved successfully
Current status of the Sell and Pay transaction. INCOMPLETE: missing required fields. PENDING: ready to execute. WAITING_DEPOSIT: executed and ready to receive crypto deposit. RECEIVED_DEPOSIT: crypto deposit detected on blockchain. CONFIRMED_DEPOSIT: crypto deposit confirmed. TRADE_COMPLETED: cryptocurrency successfully converted to fiat. QR_EXECUTION_PENDING: preparing payment to merchant. COMPLETED: payment successfully made to merchant. CANCELED: transaction cancelled. REFUND_PENDING: refund being processed. REFUNDED: funds refunded to customer.
INCOMPLETE, PENDING, WAITING_DEPOSIT, RECEIVED_DEPOSIT, CONFIRMED_DEPOSIT, TRADE_COMPLETED, QR_EXECUTION_PENDING, COMPLETED, CANCELED, REFUND_PENDING, REFUNDED "PENDING"
Was this page helpful?