Invoice pay

Bind one invoice to exact buyer payment terms, then use pay with native authority, approval and independent readback.

You’re reading version 0.6.3. Go to the current version

Overview

Use this for an invoice whose reference, payee, amount and currency are already known. Choose a held buyer connector: wallet/evm for its supported x402 method, or link for a Stripe MPP charge with an approved one-time spend request. There is no universal EVM address requirement, USD conversion or implicit provider selection. Each method must actually support the invoice currency.

Supply invoice_id, positive whole amount_minor, explicit currency, payee.payment_url, the selected connector's public request, the original parent_payment_authority and a stable idempotency_seed. Inspect the connector to construct the exact request. For x402 the request is its payment_signal; for Link it is the payment.mpp input with the original challenge and approved spend request. Put wallet keys, SPTs, card data and bearer tokens in none of these fields; credential custody belongs to the connector.

The deterministic invoice check binds the requested amount, currency and exact payment URL to the supplied invoice. pay then checks its parent mandate and owns payment execution. Native admission remains authoritative for capability, run budget, human approval, effect custody and provider confirmation. A supplied invoice or mandate never creates permission to spend. Invoice authenticity and procurement approval must come from the caller's evidence or procurement lane.

In the manual

Runner

  • invoice-pay

Declared by its execution profile. Read the profile

SKILL.md

Invoice Pay

Use this for an invoice whose reference, payee, amount and currency are already known. Choose a held buyer connector: wallet/evm for its supported x402 method, or link for a Stripe MPP charge with an approved one-time spend request. There is no universal EVM address requirement, USD conversion or implicit provider selection. Each method must actually support the invoice currency.

Supply invoice_id, positive whole amount_minor, explicit currency, payee.payment_url, the selected connector's public request, the original parent_payment_authority and a stable idempotency_seed. Inspect the connector to construct the exact request. For x402 the request is its payment_signal; for Link it is the payment.mpp input with the original challenge and approved spend request. Put wallet keys, SPTs, card data and bearer tokens in none of these fields; credential custody belongs to the connector.

The deterministic invoice check binds the requested amount, currency and exact payment URL to the supplied invoice. pay then checks its parent mandate and owns payment execution. Native admission remains authoritative for capability, run budget, human approval, effect custody and provider confirmation. A supplied invoice or mandate never creates permission to spend. Invoice authenticity and procurement approval must come from the caller's evidence or procurement lane.

Composes

  • pay#pay

Completion and recovery

The result is pay's original payment evidence. For x402, completion includes confirmed payment and the paid resource's 2xx response. For Link, it confirms the exact original paid amount and transaction; it does not publish a merchant HTTP body or prove delivery. The outer receipt binds this evidence to the caller-supplied invoice reference, not a claim that the processor authenticated the invoice or fulfilled a separate contract.

Stop on mismatched invoice terms, unsupported method/currency, missing wallet authority, denied approval or uncertain readback. Reuse the original invoice, provider identifiers and request key. Resume the original effect or schedule its readback; never pay again under a new identity. This skill does not mark an accounting record paid, send a message or approve a purchase on the caller's behalf. Those remain separate governed actions.

Published execution profile

The execution profile published with 0.6.3, shown as its exact bytes.

Runner
  • invoice-pay
Profile digestsha256:769cb8c221f2d0fd147da5a9aa59120f9175786cce397301132b50dc2649d102
skill: invoice-pay
version: "0.6.3"
catalog:
  kind: graph
  audience: operator
  visibility: public
  role: canonical
  execution: execute
  completion: provider_readback
  approval: required
  category: payments
runners:
  invoice-pay:
    default: true
    inputs:
      invoice_id:
        type: string
        required: true
        description: The invoice's own reference.
        schema:
          minLength: 1
          maxLength: 256
      amount_minor:
        type: integer
        required: true
        description: The amount due in minor units.
        schema:
          minimum: 1
          maximum: 9007199254740991
      currency:
        type: string
        required: true
        description: ISO 4217 code of the amount due.
        schema:
          pattern: ^[A-Z]{3}$
      payee:
        type: object
        required: true
        description: The invoice payee exact HTTPS payment endpoint. Provider-specific payment addresses
          belong to the request.
        schema:
          required:
            - payment_url
          additionalProperties: false
          properties:
            payment_url:
              type: string
              format: uri
              pattern: ^https://
              maxLength: 2048
      parent_payment_authority:
        type: json
        required: true
        description: Original parent payment mandate passed unchanged to pay; it grants no native authority.
      idempotency_seed:
        type: string
        required: true
        description: Stable settlement idempotency material.
        schema:
          minLength: 16
          maxLength: 500
      connector:
        type: string
        required: true
        description: The held buyer connector that settles this invoice.
        schema:
          enum:
            - wallet/evm
            - link
      request:
        type: json
        required: true
        description: Exact pay request of the selected buyer method, carrying this invoice amount/currency
          and payment endpoint. Inspect that connector; no reusable credentials.
    result_from:
      - settle
    steps:
      - id: admit
        inputs:
          invoice_id: $input.invoice_id
          amount_minor: $input.amount_minor
          currency: $input.currency
          payee: $input.payee
          connector: $input.connector
          request: $input.request
        tool:
          module: invoice.mjs
          export: admitInvoice
          timeout_seconds: 5
        outputs:
          payment_request: object
      - id: settle
        skill: ../pay
        runner: pay
        inputs:
          connector: $input.connector
          request: $steps.admit.payment_request
          parent_payment_authority: $input.parent_payment_authority
          idempotency_seed: $input.idempotency_seed
    examples:
      - invoice_id: INV-2026-0042
        amount_minor: 4200
        currency: USD
        payee:
          payment_url: https://payee.example/v1/invoices/pay
        parent_payment_authority:
          term_id: invoice-authority-1
          currency: USD
          max_amount_minor: 5000
          resource_url: https://payee.example/v1/invoices/pay
        idempotency_seed: invoice-pay-test-0042
        connector: wallet/evm
        request:
          resource:
            url: https://payee.example/v1/invoices/pay
            method: POST
            body:
              invoice_id: INV-2026-0042
          amount_minor: 4200
          pay_to: "0x00000000000000000000000000000000000000a1"
harness:
  files:
    - fixtures/support/composed.graph
  cases: []

Published package and test evidence.

This exact version passed its recorded harness run: 6 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.6.3
Recorded result6 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:2af6fe9573601e19a1226af756e42776517d43c93322df9d4c1fef1d1999dfb9sha256:99c52ee209c97afb89bf2e9ac42dcf934a2f509e0b932ac023d7e474a55d32b5sha256:d24999acd5393263440eda944153d174c8a69413f74c6cef831480a6cca9cae6sha256:492287df54047504e52118321ef3e2e118c478ebb493f2f88c7183dfe14dd785sha256:68711a6be276ed972413face4ab4567022cbc7b5b73006551bd0e5216e47aec8sha256:6fd08d424e3f39c9d728a245a1c27903f62010968d4ca8c11b257c3579b78f9e

Package identity

Published revision0.6.3
Content digestsha256:1fb5f7862dd4786a9b15341ebae3c29a89ff5ebad32d876db85017b5031ad394
SKILL.md digestsha256:2770961ddd97911245e9bf9ae1ccae98a2251d145892f085e4b26fe4eed81afd
Execution profile digestsha256:769cb8c221f2d0fd147da5a9aa59120f9175786cce397301132b50dc2649d102
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.6.3ViewingContent digest sha256:1fb5f7862dd4786a9b15341ebae3c29a89ff5ebad32d876db85017b5031ad394
  2. sha-1ae24e3df21bContent digest sha256:1ae24e3df21bb704accb82cfcea121db68f0a279b28e7ce1f2386d4d150424db