Stabledrop Settle API

The Settle API from Stabledrop — 1 operation(s) for settle.

GitHub OpenAPI

Operations 1

POST /settle Create a payment contract around a payment and attest to it #

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/stabledrop-me:stabledrop-me-settle-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

stabledrop-me-settle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stabledrop Me Settle API
  version: 0.1.0
  termsOfService: https://stabledrop.me/terms-of-service/
  description: 'Operations tagged Settle across 2 of this provider''s published API definitions: openapi.json, stabledrop-me-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Settle
paths:
  /settle:
    post:
      summary: Create a payment contract around a payment and attest to it
      operationId: settle_settle_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SettleBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettleResponse'
        '400':
          description: '**Something about the request, which will never work.** Do not retry it. An authorization paying elsewhere, a payer who cannot cover it, a maturity nobody chose, an amount below the floor. The reason is always stated.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: No session, API access key or merchant API key; or one that is unknown, expired, revoked, or made for terms that have since changed. `detail.error` is `api_access_required`, `detail.reason` says which (`missing`, `invalid`, `terms_changed`, `terms_not_accepted`), `detail.access_url` is where to get a key, and `detail.docs_url` is this reference's section on sending one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: '**Refused on sanctions grounds — final.** A party to the payment contract scored above 0 when the money arrived, or it was refused before. Any money sent is frozen at its address; do not retry, and do not offer any way to pay more into it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: '**Something WE depend on refused or could not be reached.** Retry this; the payload was fine. Reported separately from 400 on purpose — calling our own outage an invalid request sends you auditing a payload that was always correct while the actual fault goes unmentioned to the only people who can fix it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - Bearer: []
      - Session cookie: []
      tags:
      - Settle
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SettleBody:
      properties:
        seller:
          type: string
          title: Seller
          description: 'Where the payment contract pays out to: a wallet address, or an email address. An email resolves to the wallet Privy holds for that person — made for them if they have never logged in — and the same email always resolves to the same wallet.'
        token:
          type: string
          title: Token
          description: The ERC-20 the payment contract will hold
        amount:
          type: integer
          title: Amount
          description: In the TOKEN's own base units, not fiat minor units. The payer needed this exact figure to derive the payment address before they could sign a destination for it.
        expiry_timestamp:
          anyOf:
          - type: integer
          - type: 'null'
          title: Expiry Timestamp
          description: Unix timestamp the dispute window closes at. 0 settles instantly with no recourse. Omitted is refused — say which, because the two differ in whether anyone can get their money back.
        external_id:
          type: string
          title: External Id
          description: Any opaque string that keeps two otherwise-identical payment contracts apart. Use your checkout's hash and you get one-checkout-one-payment for free, verifiable by anyone holding the mandate.
        eip3009:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Eip3009
          description: The payer's signed EIP-3009 authorization, for us to relay so they need no gas. Omit it if you have already funded the payment address yourself.
        buyer_claims:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Buyer Claims
          description: UCP Buyer object. Carry stabledrop.nominal_buyer_account to name who may dispute — a CAIP-10 account, or the person's email address; without it the payer holds those rights.
        creator_fee:
          type: integer
          title: Creator Fee
          default: 0
        arbiter:
          anyOf:
          - type: string
          - type: 'null'
          title: Arbiter
        description:
          type: string
          title: Description
          default: Protected payment
        mandate_chain:
          anyOf:
          - type: string
          - type: 'null'
          title: Mandate Chain
          description: An AP2 payment mandate chain. Optional, and NEVER verified — it is hashed into the receipt's `reference` so you can tie this settlement to your checkout. Verify it yourself against a key you trust; we make no claim about it.
        brand_id:
          anyOf:
          - type: string
            pattern: ^[a-z0-9-]{2,32}$
          - type: 'null'
          title: Brand Id
          description: The white-label partner this payment was made under (the `?b=` id, e.g. `escrow-me`). Recorded on the contract for attribution. Not a term of the payment contract — it does not change the address — and never used to authorise anything.
        seller_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Seller Email
          description: 'Display only: the seller''s email, recorded so the payment contract reads on their dashboard like a request made on the site. Not a term. Used automatically when `seller` is itself an email.'
        buyer_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Buyer Email
          description: 'Display only: the nominal buyer''s email. Not a term. Used automatically when `buyer_claims` names the buyer by email.'
        product_name:
          anyOf:
          - type: string
            maxLength: 160
          - type: 'null'
          title: Product Name
          description: 'Display only: what is being paid for, as shown on the dashboard. Not a term.'
      type: object
      required:
      - seller
      - token
      - amount
      - external_id
      title: SettleBody
      description: 'The payment contract''s terms, plus whatever is funding it.


        Everything down to `arbiter` is in the payment contract''s CREATE2 salt — these values ARE its address.

        Which is why they are accepted from the wire without ceremony: alter one and the address

        moves, and the payer''s signed destination no longer matches it.'
      examples:
      - amount: 1000000
        buyer_claims:
          stabledrop.nominal_buyer_account: eip155:8453:0x39C3236A2F7FCE4Cc215a24fFb32aC48646b2288
        description: Agent-relayed protected payment
        eip3009:
          authorization:
            from: '0x39C3236A2F7FCE4Cc215a24fFb32aC48646b2288'
            nonce: '0xabababababababababababababababababababababababababababababababab'
            to: '0x412Ce881Eb968F82C465c09C2f6df289AEDd4Bb8'
            validAfter: 0
            validBefore: 1789659706
            value: 1000000
          signature: '0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd'
        expiry_timestamp: 1789659706
        external_id: agent-1f04862cde10387c
        seller: '0xc9D0602A87E55116F633b1A1F95D083Eb115f942'
        token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
    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
    TermsNotice:
      properties:
        notice:
          type: string
          title: Notice
          description: That using the API constitutes acceptance of the terms
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
          description: This deployment's `<site>/terms-of-service/`; null only if the site could not be named
      type: object
      required:
      - notice
      - url
      title: TermsNotice
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: What was wrong, in terms a machine can branch on.
      type: object
      required:
      - detail
      title: ErrorResponse
    SettleResponse:
      properties:
        terms:
          $ref: '#/components/schemas/TermsNotice'
          description: The Terms of Service this call was made under
        payment_receipt:
          type: string
          title: Payment Receipt
          description: 'The authoritative copy: an AP2 PaymentReceipt as a compact ES256 JWT. Verify it against the key published at `https://{iss}/.well-known/jwks.json` — resolved from the receipt''s own `iss`, not from whoever handed it to you.'
        receipt_claims:
          additionalProperties: true
          type: object
          title: Receipt Claims
          description: The same claims decoded, so you need not unpack the JWT to act on them. The JWT is authoritative; nothing should verify against this.
      type: object
      required:
      - terms
      - payment_receipt
      - receipt_claims
      title: SettleResponse
      description: What a successful settlement returns.
  securitySchemes:
    Bearer:
      type: http
      description: An API access key (`sd_access_…`, from the site's /myAPIAccessCode page), a merchant API key (`sd_live_…`, created on the site under API keys), or a signed-in user's session token.
      scheme: bearer
    Session_cookie:
      type: apiKey
      description: A signed-in user's session, as the site's browser sends it.
      in: cookie
      name: AUTH-TOKEN
x-refined-from:
- openapi.json
- stabledrop-me-openapi.json