dnsofmoney-com Ap2 API

The ap2 API from dnsofmoney-com — 1 operation(s) for ap2.

Operations 1

POST /api/v1/ap2/purchase Ap2 Purchase #

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/dnsofmoney-com:dnsofmoney-com-ap2-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

dnsofmoney-com-ap2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dns://money - Financial Address Resolution Ap2 API
  version: 0.3.0
tags:
- name: ap2
paths:
  /api/v1/ap2/purchase:
    post:
      tags:
      - ap2
      summary: Ap2 Purchase
      description: 'Verify a settled XRPL payment to a pay: alias and emit the AP2 Cart + Payment mandates.'
      operationId: ap2_purchase_api_v1_ap2_purchase_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AP2PurchaseRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AP2PurchaseRequest:
      properties:
        intent:
          $ref: '#/components/schemas/IntentMandate'
        alias:
          type: string
          title: Alias
          description: 'The pay: alias being paid (the merchant/payee).'
        amount:
          anyOf:
          - type: number
          - type: string
            pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount
          description: Amount paid, in the asset's display unit (XRP).
        currency:
          type: string
          title: Currency
          description: Settlement asset. XRP (XRPL) for v1.
          default: XRP
        tx_hash:
          type: string
          title: Tx Hash
          description: The already-settled XRPL transaction hash (verified read-only).
        merchant_name:
          type: string
          title: Merchant Name
          description: Merchant name carried in the CartMandate.
          default: DNS of Money
      type: object
      required:
      - intent
      - alias
      - amount
      - tx_hash
      title: AP2PurchaseRequest
      description: 'An inbound AP2 purchase: the user''s IntentMandate + the settled-on-XRPL proof.'
    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
    IntentMandate:
      properties:
        natural_language_description:
          type: string
          title: Natural Language Description
        intent_expiry:
          type: string
          title: Intent Expiry
        user_cart_confirmation_required:
          type: boolean
          title: User Cart Confirmation Required
          default: true
        merchants:
          items:
            type: string
          type: array
          title: Merchants
        skus:
          items:
            type: string
          type: array
          title: Skus
        requires_refundability:
          type: boolean
          title: Requires Refundability
          default: false
      type: object
      required:
      - natural_language_description
      - intent_expiry
      title: IntentMandate
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key