R2

R2 Collections API

The collections API from R2 — 2 operation(s) for collections.

Operations 3

GET /collections/{id} Show a collection by its id as filtering key #
GET /collections/ Show all collections #
POST /collections/ Add one or more collections #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/r2-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

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 Specification

r2-collections-api-openapi.yml Raw ↑
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 Collections 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: Collections
paths:
  /collections/{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/domain.Collection'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Show a collection by its id as filtering key
      tags:
      - Collections
      operationId: getCollectionsById
      x-operation-id-source: derived
  /collections/:
    get:
      description: Show a list of collections associated to the partner using the given filtering params.
      parameters:
      - in: query
        name: financing_id
        schema:
          type: string
      - in: query
        name: kind
        schema:
          type: string
          enum:
          - REGULAR
          - DIRECT
          - RETURNED
      - in: query
        name: partner_collection_id
        schema:
          type: string
      - in: query
        name: status
        schema:
          type: string
          enum:
          - PROCESSED
          - NOT_PROCESSED
      - in: query
        name: page
        schema:
          type: integer
      - in: query
        name: per_page
        schema:
          type: integer
      - in: query
        name: sort
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/domain.Collection'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Show all collections
      tags:
      - Collections
      operationId: getCollections
      x-operation-id-source: derived
    post:
      description: 'Important: It only allows collections from one unique financing each time.'
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/domain.CollectionRequest'
              type: array
        description: collection data
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/domain.CollectionResponse'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Add one or more collections
      tags:
      - Collections
      operationId: postCollections
      x-operation-id-source: derived
components:
  schemas:
    domain.CollectionRequest:
      properties:
        collected_at:
          example: '2025-06-03T15:30:00Z'
          type: string
        financing_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        gross_sales_amount:
          example: 1000
          type: number
        kind:
          default: REGULAR
          enum:
          - REGULAR
          - DIRECT
          - RETURNED
          example: REGULAR
          type: string
        metadata:
          description: "Metadata represents additional data in JSON format\n\t@Example\t{\"key1\": \"value1\", \"key2\": \"123\"}"
          type: object
        partner_collection_id:
          example: '123456789'
          type: string
        repayment_amount:
          example: 1000
          type: number
      required:
      - collected_at
      - financing_id
      - gross_sales_amount
      - kind
      - partner_collection_id
      - repayment_amount
      type: object
    domain.CollectionResponse:
      properties:
        collection_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        data:
          $ref: '#/components/schemas/domain.Data'
        financing_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        message:
          example: Financing 550e8400-e29b-41d4-a716-446655440000 cap reached
          type: string
        partner_collection_id:
          example: '123456789'
          type: string
        success:
          example: true
          type: boolean
      type: object
    domain.Collection:
      properties:
        amount_to_dismiss:
          example: 12.4
          type: number
        collected_at:
          example: '2025-06-03T15:30:00Z'
          type: string
        created_at:
          example: '2023-11-06T18:07:50.093514-03:00'
          type: string
        deposited_amount:
          example: 57.7
          type: number
        dismiss_reasons:
          example:
          - '[FINANCING_PAID]'
          items:
            type: string
          type: array
        financing_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        gross_sales_amount:
          example: 500
          type: number
        id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        kind:
          default: REGULAR
          enum:
          - REGULAR
          - DIRECT
          - RETURNED
          example: REGULAR
          type: string
        metadata:
          description: "Metadata represents additional data in JSON format\n\t@Example\t{\"key1\": \"value1\", \"key2\": 123, \"key3\": true, \"key4\": {\"subkey\": \"subvalue\"}}"
          type: object
        original_repayment_amount:
          example: 70.1
          type: number
        parent_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        partner_collection_id:
          example: '123456789'
          type: string
        partner_id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        processed_at:
          example: '2023-11-06T18:07:59.533338-03:00'
          type: string
        reason:
          example:
          - REFILL_INTEREST_RETURNED
          items:
            enum:
            - REFILL_INTEREST_RETURNED
            - ' RETURN_FROM_DIRECT_PAYMENT'
            - ' CANCELLATION_REFUND'
            - ' ADJUSTMENT_REFUND'
            - ' COMPLEMENTARY_DIRECT_DEBIT'
            type: string
          type: array
        remaining_balance:
          example: 1000
          type: number
        repayment_amount:
          example: 70.1
          type: number
        status:
          default: PROCESSED
          enum:
          - PROCESSED
          - NOT_PROCESSED
          example: PROCESSED
          type: string
        total_paid:
          example: 1000
          type: number
        updated_at:
          example: '2023-11-06T18:07:58.590313-03:00'
          type: string
      type: object
    domain.Data:
      properties:
        amount_to_dismiss:
          example: 12.4
          type: number
        charged_amount:
          example: 57.7
          type: number
        dismiss_reasons:
          example:
          - '[FINANCING_PAID]'
          items:
            type: string
          type: array
        repayment_amount:
          example: 70.1
          type: number
      type: object
  securitySchemes:
    JWT:
      in: header
      name: Authorization
      type: apiKey