Debit My Data Payments API

Payment status and transaction references.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /v1/payments/{payment_intent_id} Payment status: detection, confirmations, settlement, refunds #
POST /v1/payments/{payment_intent_id}/references Tell the gateway the transaction reference of a broadcast payment (a hint only) #

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/debitmydata:debitmydata-payments-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

debitmydata-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Debitmydata Payments API
  version: 0.55.27
  description: 'Operations tagged payments across 2 of this provider''s published API definitions: debitmydata-openapi.json, debitmydata-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Payments
  description: Payment status and transaction references.
paths:
  /v1/payments/{payment_intent_id}:
    get:
      tags:
      - Payments
      summary: 'Payment status: detection, confirmations, settlement, refunds'
      operationId: payment_status_v1_payments__payment_intent_id__get
      parameters:
      - name: payment_intent_id
        in: path
        required: true
        schema:
          type: string
          pattern: ^dmd_payment_intent_[0-9A-HJKMNP-TV-Z]{26}$
          description: '`payment_intent_id` from the quote (it starts with `dmd_payment_intent_`).'
          title: Payment Intent Id
        description: '`payment_intent_id` from the quote (it starts with `dmd_payment_intent_`).'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentStatusResponse'
        '404':
          description: Unknown payment intent.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/payments/{payment_intent_id}/references:
    post:
      tags:
      - Payments
      summary: Tell the gateway the transaction reference of a broadcast payment (a hint only)
      operationId: submit_payment_reference_v1_payments__payment_intent_id__references_post
      parameters:
      - name: payment_intent_id
        in: path
        required: true
        schema:
          type: string
          pattern: ^dmd_payment_intent_[0-9A-HJKMNP-TV-Z]{26}$
          description: '`payment_intent_id` from the quote (it starts with `dmd_payment_intent_`).'
          title: Payment Intent Id
        description: '`payment_intent_id` from the quote (it starts with `dmd_payment_intent_`).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReferenceRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceResponse'
        '200':
          description: This reference was already recorded.
        '404':
          description: Unknown payment intent.
        '409':
          description: The payment is no longer open.
        '422':
          description: Not a valid reference for the payment's network.
        '429':
          description: Too many references for this payment.
components:
  schemas:
    PaymentStatus:
      type: string
      enum:
      - created
      - awaiting_payment
      - detected
      - confirming
      - verified
      - settled
      - failed
      - expired
      - underpaid
      - overpaid
      - reorged
      - reversed
      - refunded
      - disputed
      title: PaymentStatus
    PaymentStatusResponse:
      properties:
        payment_intent_id:
          type: string
          title: Payment Intent Id
        registration_intent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Registration Intent Id
        purchase_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Purchase Id
        payment_option:
          type: string
          title: Payment Option
        status:
          $ref: '#/components/schemas/PaymentStatus'
        asset:
          type: string
          title: Asset
        network:
          type: string
          title: Network
        amount_due:
          type: string
          title: Amount Due
        amount_received:
          type: string
          title: Amount Received
        confirmations:
          anyOf:
          - type: integer
          - type: 'null'
          title: Confirmations
        required_confirmations:
          anyOf:
          - type: integer
          - type: 'null'
          title: Required Confirmations
        transactions:
          items:
            type: string
          type: array
          title: Transactions
        refund_due:
          anyOf:
          - type: string
          - type: 'null'
          title: Refund Due
        expires_at:
          type: string
          format: date-time
          title: Expires At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        next_action:
          type: string
          title: Next Action
        payment_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Url
      type: object
      required:
      - payment_intent_id
      - registration_intent_id
      - payment_option
      - status
      - asset
      - network
      - amount_due
      - amount_received
      - confirmations
      - required_confirmations
      - transactions
      - refund_due
      - expires_at
      - updated_at
      - next_action
      title: PaymentStatusResponse
    ReferenceRequest:
      properties:
        transaction_reference:
          type: string
          maxLength: 128
          minLength: 8
          title: Transaction Reference
          description: Transaction ID / hash of the broadcast payment. Used only as a hint.
      additionalProperties: false
      type: object
      required:
      - transaction_reference
      title: ReferenceRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ReferenceResponse:
      properties:
        payment_intent_id:
          type: string
          title: Payment Intent Id
        transaction_reference:
          type: string
          title: Transaction Reference
        status:
          type: string
          title: Status
        note:
          type: string
          title: Note
      type: object
      required:
      - payment_intent_id
      - transaction_reference
      - status
      - note
      title: ReferenceResponse
x-refined-from:
- debitmydata-openapi.json
- debitmydata-openapi.json
x-provenance:
  method: harvested
  publisher: Debit My Data
  source: https://id.debitmydata.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)