Invoice settlement

Check one invoice against the authority that may pay it, then pay it through pay with approval and readback.

You’re reading version sha-1ae24e3df21b. Go to the current version

Overview

invoice-pay turns one invoice into one bounded payment. It checks the invoice first: a positive amount in minor units, a currency a payment method settles, the payee's exact HTTPS payment endpoint and address, and a parent authority that covers the amount and names that payee. Only then does it compose pay, which settles the payment once and reads the paid resource back.

The check is deterministic and runs before anything is approved or paid. A payment method settles USD today, so an invoice in another currency is refused, never converted. Everything after the check is pay's: hosted wallet custody, approval, idempotency, recovery and finality.

In the manual

Runner

  • invoice-pay

Declared by its execution profile. Read the profile

SKILL.md

Invoice Pay

invoice-pay turns one invoice into one bounded payment. It checks the invoice first: a positive amount in minor units, a currency a payment method settles, the payee's exact HTTPS payment endpoint and address, and a parent authority that covers the amount and names that payee. Only then does it compose pay, which settles the payment once and reads the paid resource back.

The check is deterministic and runs before anything is approved or paid. A payment method settles USD today, so an invoice in another currency is refused, never converted. Everything after the check is pay's: hosted wallet custody, approval, idempotency, recovery and finality.

Composes

  • pay#pay

Operator guide

Pass the invoice reference, the amount and currency due, the payee's payment_url and pay_to, the parent's authority, and a stable idempotency seed. Stop on malformed invoice data, a non-positive amount, an unsupported currency, a payee the authority does not name, an amount over the authority, missing approval, or inconsistent readback. Accept the payee's public payment endpoint and address only; never account, routing, card, wallet, or provider credential material.

Published execution profile

The execution profile published with sha-1ae24e3df21b, shown as its exact bytes.

Runner
  • invoice-pay
Profile digestsha256:6697c7b0ff03ed559ebdd3f7d0fe5ea8a2fb5b529396579856be68443505eaf2
skill: invoice-pay
version: "0.6.1"
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_ref: { 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. }
      currency: { type: string, required: true, description: ISO 4217 code of the amount due. }
      payee: { type: object, required: true, description: "The payee's HTTPS payment endpoint (payment_url) and EVM address (pay_to)." }
      parent_payment_authority: { type: json, required: true, description: The parent's USD authority to pay this payee. }
      idempotency_seed: { type: string, required: true, description: Stable settlement idempotency material., schema: { minLength: 16, maxLength: 500 } }
    result_from: [settle]
    steps:
      - id: admit
        inputs: { invoice_ref: $input.invoice_ref, amount_minor: $input.amount_minor, currency: $input.currency, payee: $input.payee, parent_payment_authority: $input.parent_payment_authority }
        tool: { module: invoice.mjs, export: admitInvoice, timeout_seconds: 5 }
        outputs: { payment_signal: object }
      - id: settle
        skill: ../pay
        runner: pay
        inputs:
          payment_signal: $steps.admit.payment_signal
          parent_payment_authority: $input.parent_payment_authority
          idempotency_seed: $input.idempotency_seed

harness:
  files: [fixtures/support/composed.graph]
  cases: []

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-1ae24e3df21b
Recorded result3 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:9bd24f68a52771da78d590cb5237aabfda7301c8a455b2f2e3f26b89987cab38sha256:9ec413bf501f6dfc3caff29eee0005c954c8c6f008272b6c97b8a25d382a1537sha256:b6c4f64f30ee1011115b8f03a90bcddd4433a6fc500ce0b09424495848e58be2

Package identity

Published revisionsha-1ae24e3df21b
Content digestsha256:1ae24e3df21bb704accb82cfcea121db68f0a279b28e7ce1f2386d4d150424db
SKILL.md digestsha256:3c38cf38cb8d7c98a82976c6440d7f3a8fa89dc65b61c6251410286f5916022e
Execution profile digestsha256:6697c7b0ff03ed559ebdd3f7d0fe5ea8a2fb5b529396579856be68443505eaf2
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 18 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.6.3Content digest sha256:1fb5f7862dd4786a9b15341ebae3c29a89ff5ebad32d876db85017b5031ad394
  2. sha-1ae24e3df21bViewingContent digest sha256:1ae24e3df21bb704accb82cfcea121db68f0a279b28e7ce1f2386d4d150424db