Greenly Purchase Categories API

The Purchase Categories API from Greenly — 2 operation(s) for purchase categories.

Operations 2

GET /purchaseCategories Get all purchase categories #
GET /purchaseCategories/{purchaseCategoryId} Get purchase category #

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/greenly-earth-purchase-categories-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

greenly-earth-purchase-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Greenly Carbon Analytics Purchase Categories API
  version: '1.5'
  description: '# Introduction

    The Greenly Carbon Analytics API is a set of RESTful services which enable the enrichment of bank transactions with carbon footprint analytics.'
  contact:
    email: contact@greenly.earth
servers:
- url: https://api.greenly.earth/v1.5
tags:
- name: Purchase Categories
paths:
  /purchaseCategories:
    get:
      operationId: GetPurchaseCategories
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PurchaseCategoryOutput'
                type: array
        '401':
          description: Authentication Failed
        '500':
          description: An unexpected error occurred while processing the request
      description: Retrieve the details of all purchase categories.
      summary: Get all purchase categories
      tags:
      - Purchase Categories
      security: []
      parameters:
      - in: query
        name: countryId
        required: false
        schema:
          type: string
  /purchaseCategories/{purchaseCategoryId}:
    get:
      operationId: GetPurchaseCategory
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/PurchaseCategoryOutput'
                - {}
        '401':
          description: Authentication Failed
        '404':
          description: Resource not found
        '500':
          description: An unexpected error occurred while processing the request
      description: Retrieve the details of one purchase category.
      summary: Get purchase category
      tags:
      - Purchase Categories
      security: []
      parameters:
      - in: path
        name: purchaseCategoryId
        required: true
        schema:
          type: string
      - in: query
        name: countryId
        required: false
        schema:
          type: string
components:
  schemas:
    PurchaseCategoryNameTranslations:
      $ref: '#/components/schemas/Translations'
      description: Name of the purchase category in multilingual format
    TagType:
      enum:
      - boolean
      - number
      - enum
      type: string
    Translations:
      $ref: '#/components/schemas/Record_Language.string_'
    EnumValueTranslated:
      properties:
        translations:
          $ref: '#/components/schemas/Translations'
          description: Translations of the enum value
        id:
          type: string
          description: Id of the enum value
      required:
      - translations
      - id
      type: object
    Record_Language.string_:
      properties:
        en:
          type: string
        fr:
          type: string
        es:
          type: string
        it:
          type: string
        sv:
          type: string
        de:
          type: string
      type: object
      description: Construct a type with a set of properties K of type T
    PurchaseCategoryOutput:
      properties:
        possibleTags:
          items:
            $ref: '#/components/schemas/Tag'
          type: array
          description: 'Possible tags that can be applied to transactions in this purchase category.

            In case of enum, the list of potential values is available.'
        translations:
          $ref: '#/components/schemas/PurchaseCategoryNameTranslations'
        parentPurchaseCategory:
          $ref: '#/components/schemas/ParentPurchaseCategoryId'
          description: Parent purchase category which defines the larger type of the purchase (food, housing, transport, etc)
        methodology:
          $ref: '#/components/schemas/PurchaseCategoryMethodologyTranslations'
        id:
          type: string
          description: Unique identifier of the purchase category
      required:
      - possibleTags
      - translations
      - parentPurchaseCategory
      - methodology
      - id
      type: object
    ParentPurchaseCategoryId:
      enum:
      - Transport
      - Food
      - Shopping
      - Services
      - Housing
      - Uncategorized
      type: string
    PurchaseCategoryMethodologyTranslations:
      $ref: '#/components/schemas/Translations'
      description: 'Methodology used to calculate the carbon footprint of transactions belonging to this purchase category.

        In case of tags applied to the transaction, a methodology is also available within the tag definition.'
    Tag:
      properties:
        translations:
          $ref: '#/components/schemas/Translations'
          description: Translations of the tag description
        enumValues:
          items:
            $ref: '#/components/schemas/EnumValueTranslated'
          type: array
          description: Possible values for the tag in case of enum
        type:
          $ref: '#/components/schemas/TagType'
          description: Type of the tag
        id:
          type: string
          description: Id of the tag
      required:
      - translations
      - type
      - id
      type: object
  securitySchemes:
    api_key:
      type: apiKey
      name: api-key
      in: header