Rutter Commerce API

Unified commerce API: orders, fulfilments, products, collections, customers, customer groups, inventory events, stores and commerce metrics, plus Agentic Commerce (ACP) and Universal Commerce Protocol (UCP) checkout sessions (34 operations).

GitHub OpenAPI

Operations 1

GET /commerce/metrics/{metricName} Fetch commerce metric #

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/rutter:rutter-commerce-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rutter-commerce-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rutter Commerce API
  version: '2024-08-31'
  description: The Universal API for all major e-commerce platforms, accounting systems, and payment processors.
servers:
- url: https://production.rutterapi.com/versioned
  description: Production server
- url: https://sandbox.rutterapi.com/versioned
  description: Sandbox server
tags:
- name: Commerce
paths:
  /commerce/metrics/{metricName}:
    get:
      summary: Fetch commerce metric
      operationId: fetchCommerceMetric
      parameters:
      - name: metricName
        in: path
        required: true
        description: The path of the commerce metric.
        schema:
          $ref: '#/components/schemas/CommerceMetricPathParam/properties/metricName'
      - name: access_token
        in: query
        required: true
        description: The access token of the connection.
        schema:
          $ref: '#/components/schemas/CommerceMetricsQueryParams/properties/access_token'
      - name: start_date
        in: query
        required: false
        description: ISO 8601 date or datetime the first bucket starts at, floored to the start of its bucket. Defaults to the last 30 days for `day` granularity, or the last 13 months for `month`.
        schema:
          $ref: '#/components/schemas/CommerceMetricsQueryParams/properties/start_date'
      - name: end_date
        in: query
        required: false
        description: ISO 8601 date or datetime the last bucket ends at. A date without a time covers the whole day. Defaults to now. A window may span at most 90 `day` buckets or 13 `month` buckets.
        schema:
          $ref: '#/components/schemas/CommerceMetricsQueryParams/properties/end_date'
      - name: granularity
        in: query
        required: false
        description: The size of each bucket in the response. Defaults to `month`. Buckets are aligned to UTC, so a `day` bucket runs from 00:00:00Z to 23:59:59.999Z.
        schema:
          $ref: '#/components/schemas/CommerceMetricsQueryParams/properties/granularity'
      - name: force_fetch
        in: query
        required: false
        description: Used to force a response even if the underlying connection has not finished its initial sync.
        schema:
          $ref: '#/components/schemas/CommerceMetricsQueryParams/properties/force_fetch'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AggregateCommerceMetricResponse'
      x-supported-platforms:
      - AMAZON
      - BIG_COMMERCE
      - EBAY
      - LAZADA
      - MAGENTO
      - PAYPAL
      - SHOPEE
      - SHOPIFY
      - SQUARE
      x-sandbox-supported-platforms: []
      tags:
      - Commerce
      x-summary-source: derived
components:
  schemas:
    AggregateCommerceMetricResponse:
      type: object
      properties:
        checkpoint:
          type: string
          description: The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp for the date at which the metric was last updated.
        active_customers:
          type: array
          items:
            $ref: '#/components/schemas/AggregateMetric'
          description: The metric value and important metadata that defines the method of calculation.
        refund_rate:
          type: array
          items:
            $ref: '#/components/schemas/AggregateMetric'
          description: The metric value and important metadata that defines the method of calculation.
        total_orders:
          type: array
          items:
            $ref: '#/components/schemas/AggregateMetric'
          description: The metric value and important metadata that defines the method of calculation.
        total_revenue:
          type: array
          items:
            $ref: '#/components/schemas/AggregateMetric'
          description: The metric value and important metadata that defines the method of calculation.
        connection:
          $ref: '#/components/schemas/Connection'
      required:
      - checkpoint
      - connection
    CommerceMetricsQueryParams:
      type: object
      properties:
        start_date:
          type: string
          description: ISO 8601 date or datetime the first bucket starts at, floored to the start of its bucket. Defaults to the last 30 days for `day` granularity, or the last 13 months for `month`.
        end_date:
          type: string
          description: ISO 8601 date or datetime the last bucket ends at. A date without a time covers the whole day. Defaults to now. A window may span at most 90 `day` buckets or 13 `month` buckets.
        access_token:
          type: string
          format: uuid
          description: The access token of the connection.
        granularity:
          type: string
          enum:
          - day
          - month
          description: The size of each bucket in the response. Defaults to `month`. Buckets are aligned to UTC, so a `day` bucket runs from 00:00:00Z to 23:59:59.999Z.
        force_fetch:
          type: string
          enum:
          - 'true'
          - 'false'
          description: Used to force a response even if the underlying connection has not finished its initial sync.
      required:
      - access_token
    Platform:
      type: string
      enum:
      - AMAZON
      - EBAY
      - ETSY
      - FNAC
      - WALMART
      - SHOPEE
      - LAZADA
      - MERCADOLIBRE
      - ALIBABA
      - WAYFAIR
      - SHEIN
      - NOON
      - SHOPLINE
      - PRESTASHOP
      - SHOPIFY
      - MAGENTO
      - WOO_COMMERCE
      - SQUARESPACE
      - WIX
      - SHOPER
      - SHOPLAZZA
      - BIG_COMMERCE
      - SALLA
      - ZID
      - TIKTOKSHOP
      - COMMERCELAYER
      - WEBFLOW
      - GUMROAD
      - ECWID
      - PAYPAL
      - SQUARE
      - STRIPE
      - CLOVER
      - MOLLIE
      - PAYNL
      - AUTHORIZENET
      - RECHARGE
      - CHARGIFY
      - CHARGEBEE
      - RECURLY
      - KASHFLOW
      - SAGE_INTACCT
      - SAGE_INTACCT_V2
      - DYNAMICS365
      - DYNAMICS365FO
      - ZOHOBOOKS
      - EXACTONLINE
      - FREEAGENT
      - QUICKBOOKS
      - QUICKBOOKS_DESKTOP
      - FRESHBOOKS
      - XERO
      - SAGE_BUSINESS_CLOUD
      - SAGE_50
      - VISTA
      - NETSUITE
      - WAVE
      - DUALENTRY
      - CAMPFIRE
      - RILLET
      - SOFTLEDGER
      - VISMA
      - SPIRIS
      - LEXWARE
      - MONEYBIRD
      - SAGE200CLOUD
      - MX
      - PLAID
      - TELLER
      - RAMP
      - ODOO
      - ACUMATICA
      - FULFIL
      - TALLY
      - SAPBUSINESSONE
      - SAPS4HANA
      - WORKDAY
      - ANFIX
      - ORACLEFUSION
      - HOLDED
      - MYOBBUSINESS
      - FORTNOX
      - GOOGLE
      - FACEBOOK
      - TIKTOK
      - INTUIT_BANK_FEEDS
      - PLAID_BANK_FEEDS
      - SAGE
      - SAGE_BANK_FEEDS
      - YODLEE_BANK_FEEDS
      - QUICKBOOKS_HRIS
      - BAMBOO_HR
      - GUSTO
      - DEEL
      - RIPPLING
      description: The underlying platform.
    CommerceMetricPathParam:
      type: object
      properties:
        metricName:
          type: string
          enum:
          - total_revenue
          - total_orders
          - active_customers
          - refund_rate
          description: The path of the commerce metric.
      required:
      - metricName
    Connection:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The UUID of the connection. Generated by Rutter.
        orgId:
          type: string
          format: uuid
          description: Your organization id.
        platform:
          $ref: '#/components/schemas/Platform'
      required:
      - id
      - orgId
      - platform
      examples:
      - Connection_Example:
          $ref: '#/components/examples/Connection_Example'
    AggregateMetric:
      type: object
      properties:
        start_date:
          type: string
          description: The starting date from which we start aggregating activity (revenue, expenses, etc).
        end_date:
          type: string
          description: The date at which we stop aggregating activity (revenue, expenses, etc).
        currency:
          type: string
          description: If applicable, the currency used for the value returned.
        value:
          type: string
          description: The value of the requested metric for the time range described by the start and end date.
      required:
      - start_date
      - end_date
      - currency
      - value
      examples:
      - AggregateMetric_Example:
          $ref: '#/components/examples/AggregateMetric_Example'
  examples:
    Connection_Example:
      value:
        id: 00000000-0000-0000-0000-000000000000
        orgId: 00000000-0000-0000-0000-000000000000
        platform: SHOPIFY
    AggregateMetric_Example:
      value:
        start_date: '2022-05-01T00:00:00.000Z'
        end_date: '2022-05-31T23:59:59.999Z'
        currency: USD
        value: '-1149613.2900'