GET
/
api
/
v1
/
transactions
/
{txn_id}
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/transactions/{txn_id}/ \
  --header 'Authorization: Bearer <token>'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "created_at": "2019-08-24T14:15:22Z",
  "end_user": "string",
  "op_type": "BUY",
  "trade": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "txn_id": "string",
    "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
    "end_user_id": "string",
    "rate": "string",
    "charged_fee": "string",
    "base_amount": "string",
    "quote_amount": "string",
    "base_asset": "string",
    "quote_asset": "string",
    "created_at": "2019-08-24T14:15:22Z"
  }
}

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

txn_id
string
required

Response

200 - application/json
Successful response
id
string
required

UUID used as txn identifier.

created_at
string
required

ISO DateTime indicating creation date of txn.

end_user
string
required

Indicates which end user was involved in the transaction.

op_type
enum<string>
required

Indicates whether the transaction is for BUY, SELL, SWAP, DEPOSIT or WITHDRAWAL.

Available options:
BUY,
SELL,
SWAP
trade
object

If the transaction represents a BUY, SELL or SWAP operation, this object will detail the trade operation information.