Stripe

Collect and refund payments on your Stripe account, with exact terms and independent processor readback.

7 implemented operations

connector.yaml
account.readRead the account this credential belongs to.payment.account.read
stripe account.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
payment.account.read
Target
stripe://account
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com

Inputs: none. Any field is rejected.

Full input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Result fields account_id

Operation digest sha256:620ab6b1d81fb35c0d4d0abdfc13e81e8e1df502ea99e63bac48cdb2ddf82dbcImplementation sha256:6a37535c34bc0bdf7a8d512bc8b93d0575afdc440abaef428ec92f7a906f9ca0

payment.stripeCollect one exact payment using an existing Stripe payment method. Only a succeeded PaymentIntent independently read back with the approved terms confirms collection.payment.stripe
stripe payment.stripewrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.Each call needs approval evidence or standing approval.
  • HostedReadyRuns hosted on Runx Connect.Each call needs approval evidence or standing approval.
Runx scope
payment.stripe
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/collections/",{"$argument":"/reference"}]}
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
currencyPattern: ^[a-z]{3}$stringYes
referencePattern: ^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,199}$stringYes
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes
amount_minorMinimum 1Maximum 99999999integerYes
payment_method_idPattern: ^pm_[A-Za-z0-9_]{1,128}$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "amount_minor",
    "currency",
    "payment_method_id",
    "reference"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "pattern": "^[a-z]{3}$"
    },
    "reference": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,199}$"
    },
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    },
    "amount_minor": {
      "type": "integer",
      "maximum": 99999999,
      "minimum": 1
    },
    "payment_method_id": {
      "type": "string",
      "pattern": "^pm_[A-Za-z0-9_]{1,128}$"
    }
  },
  "additionalProperties": false
}

Result fields payment_idamount_minoramount_receivedcurrencystatuscharge_idreference

Operation digest sha256:5a947aa90c00a656f7c4c6760175842531036fc2f074e5774242d04779de8943Implementation sha256:85158b99d657ddfbeb6577c6fc690f5572b80d78971e4d7e56e9620d9814d431

payment.stripe.readRead one PaymentIntent without exposing its client secret or customer payment details.payment.stripe.read
stripe payment.stripe.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
payment.stripe.read
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/payments/",{"$argument":"/payment_id"}]}
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes
payment_idPattern: ^pi_[A-Za-z0-9]{1,128}$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "payment_id"
  ],
  "properties": {
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    },
    "payment_id": {
      "type": "string",
      "pattern": "^pi_[A-Za-z0-9]{1,128}$"
    }
  },
  "additionalProperties": false
}

Result fields payment_idamount_minoramount_receivedcurrencystatuscharge_id

Operation digest sha256:8b21c91b25459697a7c691fd6d4ffe82ec7fff268ce99763377ab123ebb91e84Implementation sha256:3728a09f5bc9bfd4a51929bcde471e543e71801638d4e4e522a80a2e9e6ce019

payment.stripe.lookupFind one PaymentIntent by the native effect key recorded for the attempted collection. Search is eventually consistent: absence never proves a payment was not submitted. Multiple matches refuse.payment.stripe.read
stripe payment.stripe.lookupread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
payment.stripe.read
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/effects/",{"$argument":"/effect_key"}]}
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes
effect_keyPattern: ^[A-Za-z0-9_:-]{1,200}$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "effect_key"
  ],
  "properties": {
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    },
    "effect_key": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_:-]{1,200}$"
    }
  },
  "additionalProperties": false
}

Result fields payment_idamount_minoramount_receivedcurrencystatuscharge_idreference

Operation digest sha256:1a90a4ad1bae410c581e39b1065aad83d6b24943cb91cf466a0dcec0163b6e7dImplementation sha256:6bdd4e5cba4855b7f10a05ea7442a2f974233c68feaecc8477e03535b896751f

payment.stripe.refundRefund one original PaymentIntent on its account and currency. Stripe atomically enforces its remaining refundable amount, including concurrent partial refunds.payment.stripe.refund
stripe payment.stripe.refundwrite#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.Each call needs approval evidence or standing approval.
  • HostedReadyRuns hosted on Runx Connect.Each call needs approval evidence or standing approval.
Runx scope
payment.stripe.refund
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/payments/",{"$argument":"/payment_id"}]}
Credentials
Any of key
Amount
Each call binds its amount to {"$argument":"/amount_minor"} smallest units of {"$argument":"/currency"}, which the run's authority must cover.
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
currencyPattern: ^[a-z]{3}$stringYes
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes
payment_idPattern: ^pi_[A-Za-z0-9]{1,128}$stringYes
amount_minorMinimum 1Maximum 99999999integerYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "payment_id",
    "amount_minor",
    "currency"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "pattern": "^[a-z]{3}$"
    },
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    },
    "payment_id": {
      "type": "string",
      "pattern": "^pi_[A-Za-z0-9]{1,128}$"
    },
    "amount_minor": {
      "type": "integer",
      "maximum": 99999999,
      "minimum": 1
    }
  },
  "additionalProperties": false
}

Result fields refund_idpayment_idamount_minorcurrencystatus

Operation digest sha256:3393485f63bf3769445146fc9ede9dc5c28df8c108cf3acd85141498ca851116Implementation sha256:4fbe9cb3f7d6cab4a6443410d1b884b17dabf41f47d4fc8039862804213e8823

payment.stripe.charge.readRead the original charge and its cumulative refunded amount before planning another partial refund.payment.stripe.read
stripe payment.stripe.charge.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
payment.stripe.read
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/charges/",{"$argument":"/charge_id"}]}
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
charge_idPattern: ^ch_[A-Za-z0-9]{1,128}$stringYes
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "charge_id"
  ],
  "properties": {
    "charge_id": {
      "type": "string",
      "pattern": "^ch_[A-Za-z0-9]{1,128}$"
    },
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    }
  },
  "additionalProperties": false
}

Result fields charge_idpayment_idamount_minoramount_refundedcurrencystatus

Operation digest sha256:2c6930ed8431e416ca1f45d8f2a6b35dde62dd37c725160a5284c1d68fe7366dImplementation sha256:c066a91335f57bd1994edaad20140c016d87905f3dc374efb56cb49f138a19af

payment.stripe.refund.readRead a Stripe refund and its actual processor status.payment.stripe.refund.read
stripe payment.stripe.refund.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
  • HostedReadyRuns hosted on Runx Connect.
Runx scope
payment.stripe.refund.read
Target
{"$concat":["stripe://",{"$argument":"/account_id"},"/refunds/",{"$argument":"/refund_id"}]}
Credentials
Any of key
Local implementation
Declared HTTP requests: api.stripe.com
Inputs
Field and constraintsType / valuesRequired
refund_idPattern: ^re_[A-Za-z0-9]{1,128}$stringYes
account_idPattern: ^acct_[A-Za-z0-9]{1,64}$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "account_id",
    "refund_id"
  ],
  "properties": {
    "refund_id": {
      "type": "string",
      "pattern": "^re_[A-Za-z0-9]{1,128}$"
    },
    "account_id": {
      "type": "string",
      "pattern": "^acct_[A-Za-z0-9]{1,64}$"
    }
  },
  "additionalProperties": false
}

Result fields refund_idpayment_idamount_minorcurrencystatus

Operation digest sha256:0836c40ef8b498b165fb66162e73e2a74fee41bb7136973ac6e25c95c46679c6Implementation sha256:1e55f0455fe64b842682a275f365b066bda3c5d3b4de64ba0e6350104465430c

Authentication

Commands here are for runx 0.11.1.

Stripe accepts a stored credential.

Stored credential key
A api_key with one field: api_key (Stripe secret or restricted key). Sent only to api.stripe.com. Supply it through standard input in the project where the skill runs; Runx stores the profile and selects it for this connector. The hosted placement can hold it in Runx Connect’s credential custody instead.
runx connector use stripe
Hosted key
Runx Connect holds the key for the hosted placement; it never returns to your machine.
runx connector use stripe --hosted

Authentication methods describe what the provider requires. They do not imply Runx supports every way the provider authenticates, and they do not grant access to your account.

Permissions

Each operation requires every Runx scope it declares. The account or key behind an instance must also reach the target on Stripe’s side; setting one up adds no Stripe permissions.

payment.account.read
account.read
payment.stripe
payment.stripe
payment.stripe.refund
payment.stripe.refund
payment.stripe.refund.read
payment.stripe.refund.read

Approval

These operations need approval evidence on every call, which a grant alone never replaces: payment.stripe, payment.stripe.refund.

A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.

Skills that use Stripe