GET
/
api
/
v1
/
end-users
/
{end_user_id}
/
limits
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/end-users/{end_user_id}/limits/ \
  --header 'Authorization: Bearer <token>'
[
  {
    "type": "BUY",
    "currency": "ARS",
    "period": "YEARLY",
    "allowed_frequency": "1000",
    "allowed_amount": "5000000.00",
    "consumed_frequency": "5",
    "consumed_amount": "10.00"
  },
  {
    "type": "SELL",
    "currency": "ARS",
    "period": "YEARLY",
    "allowed_frequency": "5000000.00",
    "allowed_amount": "5.00",
    "consumed_frequency": "10",
    "consumed_amount": "200.00"
  },
  {
    "type": "BUY",
    "currency": "ARS",
    "period": "MONTHLY",
    "allowed_frequency": "4",
    "allowed_amount": "4.00",
    "consumed_frequency": "0",
    "consumed_amount": "0.00"
  },
  {
    "type": "SELL",
    "currency": "ARS",
    "period": "MONTHLY",
    "allowed_frequency": "4",
    "allowed_amount": "4.00",
    "consumed_frequency": "0",
    "consumed_amount": "0.00"
  },
  {
    "type": "BUY",
    "currency": "ARS",
    "period": "DAILY",
    "allowed_frequency": "3",
    "allowed_amount": "3.00",
    "consumed_frequency": "0",
    "consumed_amount": "0.00"
  },
  {
    "type": "SELL",
    "currency": "ARS",
    "period": "DAILY",
    "allowed_frequency": "3",
    "allowed_amount": "3.00",
    "consumed_frequency": "0",
    "consumed_amount": "0.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

end_user_id
string
required

Response

200 - application/json
OK
type
enum<string>
required

Indicates limit type.

Available options:
BUY,
SELL
currency
enum<string>
required

Indicates the currency in which the limit has been expressed.

Available options:
ARS,
USD
period
enum<string>
required

Indicates the period in which the limit applies.

Available options:
DAILY,
MONTHLY,
YEARLY
allowed_frequency
string
required

Indicates the maximum frequency allowed per period for a given operation type and currency.

allowed_amount
string
required

Indicates the maximum tradable amount allowed per period for a given operation type and currency.

consumed_frequency
string
required

Indicates the spent frequency related to the allowed_frequency declared. It must comply with the following invariant: allowed_frequency >= consumed_frequency.

consumed_amount
string
required

Indicates the spent tradable amount related to the allowed_frequency declared. It must comply with the following invariant: allowed_amount >= consumed_amount.