R2 Transactions API
The transactions API from R2 — 3 operation(s) for transactions.
The transactions API from R2 — 3 operation(s) for transactions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/r2-transactions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
email: support@r2capital.co
name: R2 Support
description: '## Introduction
Through our REST APIs, you''ll be able to run an end-to-end capital program for your merchants.'
title: R2 Transactions API
version: '0.1'
servers:
- url: https://gateway-dev.r2capital.co:443/v2
- url: https://gateway-dev.r2capital.co/v2/
description: Development environment (DEV)
tags:
- name: Transactions
paths:
/transactions/{id}:
get:
parameters:
- description: uuid formatted ID.
in: path
name: id
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
error:
type: string
items:
items:
$ref: '#/components/schemas/transactions.Transaction'
type: array
type: object
'400':
description: Bad Request
'404':
description: Not Found
'500':
description: Internal Server Error
security:
- JWT: []
summary: Show a Transaction by its id
tags:
- Transactions
operationId: getTransactionsById
x-operation-id-source: derived
/transactions/async:
post:
description: Create a list of transactions associated to the partner.
requestBody:
$ref: '#/components/requestBodies/transactions.transactionRequestArray'
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
error:
type: string
items:
items:
$ref: '#/components/schemas/transactions.Transaction'
type: array
type: object
'400':
description: Bad Request
'500':
description: Internal Server Error
security:
- JWT: []
summary: Create transactions asynchronously
tags:
- Transactions
operationId: postTransactionsAsync
x-operation-id-source: derived
/transactions/:
post:
description: 'Important: It only allows transactions from one unique financing each time.'
requestBody:
$ref: '#/components/requestBodies/transactions.transactionRequestArray'
responses:
'201':
description: Created
content:
application/json:
schema:
properties:
error:
type: string
items:
items:
$ref: '#/components/schemas/transactions.Transaction'
type: array
type: object
'400':
description: Bad Request
'404':
description: Not Found
'500':
description: Internal Server Error
security:
- JWT: []
summary: Add one or more transactions
tags:
- Transactions
operationId: postTransactions
x-operation-id-source: derived
components:
schemas:
transactions.Transaction:
properties:
amount:
example: 100.5
type: number
category:
example: REGULAR
type: string
created_at:
example: '2023-11-01T00:00:00Z'
type: string
currency:
enum:
- MXN
- CLP
- COP
example: MXN
type: string
external_id:
example: '1234567890'
type: string
id:
example: 123e4567-e89b-12d3-a456-426614174000
type: string
metadata:
type: object
occurred_at:
example: '2023-01-25T07:00:18.00580Z'
format: date
type: string
partner_transaction_id:
example: '1234567890'
type: string
updated_at:
example: '2023-11-01T00:00:00Z'
type: string
type: object
transactions.transactionRequest:
properties:
amount:
example: 100.5
type: number
category:
default: REGULAR
enum:
- REGULAR
- CHARGE_BACK
example: REGULAR
type: string
currency:
enum:
- MXN
- CLP
- COP
example: MXN
type: string
external_id:
example: '1234567890'
type: string
metadata:
description: "Metadata represents additional data in JSON format\n\t@Example\t{\"key1\": \"value1\", \"key2\": \"123\"}"
type: object
occurred_at:
example: '2023-01-25T07:00:18.00580Z'
type: string
partner_transaction_id:
example: '1234567890'
type: string
required:
- amount
- category
- currency
- external_id
- metadata
- occurred_at
- partner_transaction_id
type: object
requestBodies:
transactions.transactionRequestArray:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/transactions.transactionRequest'
type: array
description: Transaction data
required: true
securitySchemes:
JWT:
in: header
name: Authorization
type: apiKey