GET
/
api
/
v1
/
reusable-quotes
/
{reusable_quote_id}
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/reusable-quotes/{reusable_quote_id}/ \
  --header 'Authorization: Bearer <token>'
{
  "id": "79296371-308d-455b-8233-fd77efc3a25d",
  "pair": "USDT_USD",
  "status": "PEN",
  "base_asset": "USDT",
  "quote_asset": "USD",
  "buy_rate": "1.00050000",
  "sell_rate": "1.00020000",
  "external_ref": "op1",
  "created_at": "2021-09-10T15:27:19.641160-03:00",
  "expires_at": "2021-09-10T15:27:49.640444-03:00"
}

Authorizations

Authorization
string
header
required

B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:

  • clientCredentials allows you to access your own B2B account (First-Party Integration) and performs transactions against the public API. This oauth2 flow is well suited for this API, as it allows machine-to-machine communication.

Every call to the API has to be authenticated with an OAuth2 Token. In order to request this token, you will need to have sandbox or production API Keys (client id and client secret) that will be needed to generate a credential in order to negotiate an ephemeral access token.

Every request must be accompianed by an Authorization header with a value that follows the following schema: Bearer ACCESS_TOKEN

Path Parameters

reusable_quote_id
string
required

Response

200 - application/json
Successful response
id
string
required

UUID used as quote identifier.

pair
string
required

Indicates pair name involved in the quotation.

base_asset
string
required

Indicates the base currency involved in the quotation.

quote_asset
string
required

Indicates the quote currency involved in the quotation.

buy_rate
string
required

Indicates the exchange rate used for conversion.

sell_rate
string
required

Indicates the exchange rate used for conversion.

external_ref
string
required

Arbitrary identifier issued by the partner. Serves as an external identifier for lookups.

Maximum length: 128
created_at
string
required

ISO DateTime indicating creation date.

expires_at
string
required

ISO DateTime indicating expiration date of the quote. Quote will be invalid after that date.

status
enum<string>
Available options:
COM,
PEN,
EXP,
UNA_PRICE