PayPal
Create checkout orders, collect approved payments and refund original captures with exact merchant binding and independent processor readback.
7 implemented operations
connector.yamlpayment.paypalCapture one buyer-approved, single-unit order on the selected merchant. Confirmation requires independent order and capture reads matching the approved identity, amount and currency.payment.paypal
- 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.paypal- Target
{"$concat":["paypal://",{"$argument":"/api_host"},"/",{"$argument":"/account_id"},"/orders/",{"$argument":"/order_id"}]}- Credentials
- Any of
app - Idempotency key
uuidformat- Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
}
} | ||
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
currency | "AUD" · "BRL" · "CAD" · "CNY" · "CZK" · "DKK" · "EUR" · "HKD" · "HUF" · "ILS" · "JPY" · "MYR" · "MXN" · "TWD" · "NZD" · "NOK" · "PHP" · "PLN" · "GBP" · "RUB" · "SGD" · "SEK" · "CHF" · "THB" · "USD" | Yes |
order_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
precision | 0 · 2 | Yes |
referencePattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,126}$ | string | Yes |
account_idPattern: ^[A-Z0-9]{13}$ | string | Yes |
amount_decimalMin. 1 characterMax. 16 characters | string | Yes |
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
} | ||
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"allOf": [
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
}
}
],
"required": [
"api_host",
"account_id",
"order_id",
"amount_decimal",
"currency",
"precision",
"reference"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"currency": {
"enum": [
"AUD",
"BRL",
"CAD",
"CNY",
"CZK",
"DKK",
"EUR",
"HKD",
"HUF",
"ILS",
"JPY",
"MYR",
"MXN",
"TWD",
"NZD",
"NOK",
"PHP",
"PLN",
"GBP",
"RUB",
"SGD",
"SEK",
"CHF",
"THB",
"USD"
],
"type": "string"
},
"order_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
},
"precision": {
"enum": [
0,
2
],
"type": "integer"
},
"reference": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,126}$"
},
"account_id": {
"type": "string",
"pattern": "^[A-Z0-9]{13}$"
},
"amount_decimal": {
"not": {
"pattern": "^0(?:\\.0+)?$"
},
"type": "string",
"maxLength": 16,
"minLength": 1
}
},
"additionalProperties": false
}Result fields payment_idorder_idaccount_idamount_decimalcurrencystatusreference
Operation digest sha256:175ebd008dbe4322b646e7e80741e4ea4d61e0e1873a0b0776115054c3d7e20cImplementation sha256:92defa1bdf00f3c36e0500fd88688da3cd0693afacda4ad0bfe8b40e7cb475bd
payment.paypal.readRead one capture and report its actual merchant, order, amount, currency and processor state without payer details.payment.paypal.read
- LocalReadyThe runtime sends the operation's declared HTTP requests.
- HostedReadyRuns hosted on Runx Connect.
- Runx scope
payment.paypal.read- Target
{"$concat":["paypal://captures/",{"$argument":"/payment_id"}]}- Credentials
- Any of
app - Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
payment_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"api_host",
"payment_id"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"payment_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
}
},
"additionalProperties": false
}Result fields payment_idorder_idaccount_idamount_decimalcurrencystatus
Operation digest sha256:87d03bfd52f963de54512e363737f7a347771cf75958a6601d73df1fb0c38afaImplementation sha256:3d5bd09e458eea7042c99be88c23b73115cb2ee9d1d3802c90f410b50d43326a
payment.paypal.lookupObserve the capture already recorded on one single-unit order after an uncertain submission. A missing capture never proves the order was not captured; this operation never submits a payment.payment.paypal.lookup
- LocalReadyThe runtime sends the operation's declared HTTP requests.
- HostedReadyRuns hosted on Runx Connect.
- Runx scope
payment.paypal.lookup- Target
{"$concat":["paypal://orders/",{"$argument":"/order_id"}]}- Credentials
- Any of
app - Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
order_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"api_host",
"order_id"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"order_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
}
},
"additionalProperties": false
}Result fields order_idorder_statusaccount_idpayment_idamount_decimalcurrencystatusreference
Operation digest sha256:bf6175499b7781df9bccb242a478bd39be67dc1f74a5da9232294e208273e765Implementation sha256:e29f9c180f6c46afc4947a0cd5153263e93579f66f82a27ff0d4bb49434ac24d
payment.paypal.refundRefund an original capture on its merchant and currency. PayPal enforces the remaining balance; independent readback must confirm the refund terms and its exact original-capture relationship.payment.paypal.refund
- 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.paypal.refund- Target
{"$concat":["paypal://",{"$argument":"/api_host"},"/",{"$argument":"/account_id"},"/captures/",{"$argument":"/payment_id"}]}- Credentials
- Any of
app - Amount
- Each call binds its amount to
{"$minor_units":{"scale":{"$argument":"/precision"},"decimal":{"$argument":"/amount_decimal"}}}smallest units of{"$argument":"/currency"}, which the run's authority must cover. - Idempotency key
uuidformat- Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
}
} | ||
reasonMin. 1 characterMax. 255 characters | string | No |
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
currency | "AUD" · "BRL" · "CAD" · "CNY" · "CZK" · "DKK" · "EUR" · "HKD" · "HUF" · "ILS" · "JPY" · "MYR" · "MXN" · "TWD" · "NZD" · "NOK" · "PHP" · "PLN" · "GBP" · "RUB" · "SGD" · "SEK" · "CHF" · "THB" · "USD" | Yes |
precision | 0 · 2 | Yes |
account_idPattern: ^[A-Z0-9]{13}$ | string | Yes |
payment_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
amount_decimalMin. 1 characterMax. 16 characters | string | Yes |
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
} | ||
original_status | "COMPLETED" · "PARTIALLY_REFUNDED" | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"allOf": [
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
}
}
],
"required": [
"api_host",
"account_id",
"payment_id",
"amount_decimal",
"currency",
"precision",
"original_status"
],
"properties": {
"reason": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"currency": {
"enum": [
"AUD",
"BRL",
"CAD",
"CNY",
"CZK",
"DKK",
"EUR",
"HKD",
"HUF",
"ILS",
"JPY",
"MYR",
"MXN",
"TWD",
"NZD",
"NOK",
"PHP",
"PLN",
"GBP",
"RUB",
"SGD",
"SEK",
"CHF",
"THB",
"USD"
],
"type": "string"
},
"precision": {
"enum": [
0,
2
],
"type": "integer"
},
"account_id": {
"type": "string",
"pattern": "^[A-Z0-9]{13}$"
},
"payment_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
},
"amount_decimal": {
"not": {
"pattern": "^0(?:\\.0+)?$"
},
"type": "string",
"maxLength": 16,
"minLength": 1
},
"original_status": {
"enum": [
"COMPLETED",
"PARTIALLY_REFUNDED"
],
"type": "string"
}
},
"additionalProperties": false
}Result fields refund_idamount_decimalcurrencystatusrelationships
Operation digest sha256:6474f2eaf5d8b82bac0d9507aade5d1fdb4dd03c6e49583f93ae7819c5b42ab9Implementation sha256:202542f66f62d7bae2c14e25febdcae1db02ea76510b1bb3c51975ec5ee21872
payment.paypal.order.readRead the state, merchant and exact terms of one single-unit order. An order awaiting buyer action is not payment confirmation.payment.paypal.order.read
- LocalReadyThe runtime sends the operation's declared HTTP requests.
- HostedReadyRuns hosted on Runx Connect.
- Runx scope
payment.paypal.order.read- Target
{"$concat":["paypal://orders/",{"$argument":"/order_id"}]}- Credentials
- Any of
app - Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
order_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"api_host",
"order_id"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"order_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
}
},
"additionalProperties": false
}Result fields order_idorder_statusintentaccount_idamount_decimalcurrencyreferencelinks
Operation digest sha256:6d756e59a702b85c4369432ae53d8449f8e0c62de575cf0ccd316c50f8061addImplementation sha256:93a3e08408810dc3546bf2f0b6bda63a5c4a117dae091eb7d54bb4afc5a62809
payment.paypal.refund.readRead one refund, its processor state and original-capture relationship. A pending refund is not completed.payment.paypal.refund.read
- LocalReadyThe runtime sends the operation's declared HTTP requests.
- HostedReadyRuns hosted on Runx Connect.
- Runx scope
payment.paypal.refund.read- Target
{"$concat":["paypal://refunds/",{"$argument":"/refund_id"}]}- Credentials
- Any of
app - Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
refund_idPattern: ^[A-Z0-9]{1,64}$ | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"api_host",
"refund_id"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"refund_id": {
"type": "string",
"pattern": "^[A-Z0-9]{1,64}$"
}
},
"additionalProperties": false
}Result fields refund_idamount_decimalcurrencystatusrelationships
Operation digest sha256:2a73cd395b66a139f1e006ab31eadf992715d45836f79fe68be4ead2df4ecc54Implementation sha256:90de4c34f734e0120346e6790529e58951b5991942d1babd48ea238e900301eb
payment.paypal.order.createCreate one merchant checkout order and read its exact terms back. Creating an order does not approve or collect a payment; return the provider approval link to the buyer.payment.paypal.order.create
- 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.paypal.order.create- Target
{"$concat":["paypal://",{"$argument":"/api_host"},"/",{"$argument":"/account_id"},"/orders/",{"$argument":"/reference"}]}- Credentials
- Any of
app - Idempotency key
uuidformat- Local implementation
- Declared HTTP requests:
api-m.paypal.com, api-m.sandbox.paypal.com
| Field and constraints | Type / values | Required |
|---|---|---|
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
}
} | ||
api_hostExplicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback. | "api-m.paypal.com" · "api-m.sandbox.paypal.com" | Yes |
currency | "AUD" · "BRL" · "CAD" · "CNY" · "CZK" · "DKK" · "EUR" · "HKD" · "HUF" · "ILS" · "JPY" · "MYR" · "MXN" · "TWD" · "NZD" · "NOK" · "PHP" · "PLN" · "GBP" · "RUB" · "SGD" · "SEK" · "CHF" · "THB" · "USD" | Yes |
precision | 0 · 2 | Yes |
referencePattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,126}$ | string | Yes |
account_idPattern: ^[A-Z0-9]{13}$ | string | Yes |
cancel_urlFormat: uriPattern: ^https://Max. 2048 characters | string | Yes |
return_urlFormat: uriPattern: ^https://Max. 2048 characters | string | Yes |
amount_decimalMin. 1 characterMax. 16 characters | string | Yes |
{
"not": {
"pattern": "^0(?:\\.0+)?$"
}
} | ||
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"allOf": [
{
"if": {
"required": [
"currency"
],
"properties": {
"currency": {
"enum": [
"HUF",
"JPY",
"TWD"
]
}
}
},
"else": {
"properties": {
"precision": {
"const": 2
},
"amount_decimal": {
"pattern": "^(?:0|[1-9][0-9]{0,11})\\.[0-9]{2}$"
}
}
},
"then": {
"properties": {
"precision": {
"const": 0
},
"amount_decimal": {
"pattern": "^[1-9][0-9]{0,13}$"
}
}
}
}
],
"required": [
"api_host",
"account_id",
"amount_decimal",
"currency",
"precision",
"reference",
"return_url",
"cancel_url"
],
"properties": {
"api_host": {
"enum": [
"api-m.paypal.com",
"api-m.sandbox.paypal.com"
],
"type": "string",
"description": "Explicit PayPal API environment. Use a matching app credential; sandbox is never an implicit live fallback."
},
"currency": {
"enum": [
"AUD",
"BRL",
"CAD",
"CNY",
"CZK",
"DKK",
"EUR",
"HKD",
"HUF",
"ILS",
"JPY",
"MYR",
"MXN",
"TWD",
"NZD",
"NOK",
"PHP",
"PLN",
"GBP",
"RUB",
"SGD",
"SEK",
"CHF",
"THB",
"USD"
],
"type": "string"
},
"precision": {
"enum": [
0,
2
],
"type": "integer"
},
"reference": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,126}$"
},
"account_id": {
"type": "string",
"pattern": "^[A-Z0-9]{13}$"
},
"cancel_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2048
},
"return_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2048
},
"amount_decimal": {
"not": {
"pattern": "^0(?:\\.0+)?$"
},
"type": "string",
"maxLength": 16,
"minLength": 1
}
},
"additionalProperties": false
}Result fields order_idorder_statusintentaccount_idamount_decimalcurrencyreferencelinks
Operation digest sha256:676e7f0dae1cac79817c9f3d75506cffa5b32c263a8b26df1257bec43b9b3cb3Implementation sha256:288309740fc620ce28697aa3e3867de883f65a4c795b5b7de3c1ee987150cc10
Authentication
Commands here are for runx 0.11.1.
PayPal accepts a stored credential.
- Stored credential
app - A
client_credentialswith 2 fields:client_id(PayPal REST app client ID),client_secret(PayPal REST app client secret). Sent only toapi-m.paypal.com,api-m.sandbox.paypal.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 paypal
- Hosted key
- Runx Connect holds the key for the hosted placement; it never returns to your machine.
runx connector use paypal --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 PayPal’s side; setting one up adds no PayPal permissions.
Approval
These operations need approval evidence on every call, which a grant alone never replaces: payment.paypal, payment.paypal.refund, payment.paypal.order.create.
A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.