XRPay Sandbox API
The Sandbox API from XRPay — 2 operation(s) for sandbox.
The Sandbox API from XRPay — 2 operation(s) for sandbox.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/xrpay:xrpay-sandbox-api"
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.
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: 3.2.0
info:
title: XRPay Cashier Sandbox API
version: '2026-08-30'
description: 'Server-to-server API for payments, consolidated balances, bank and Mobile Money payouts, payroll, refunds, and signed webhooks. Test credentials use isolated virtual balances: a successful local-currency payment simulation can fund a test payout, and executing that payout never contacts a bank or Mobile Money network. Payment-intent amounts are integer minor units; payout and payroll amounts are exact decimal strings. Provider identities and custody allocations are never exposed.'
servers:
- url: https://api.xrpay.it
security:
- bearerAuth: []
tags:
- name: Sandbox
paths:
/api/v1/payment-intents/{id}/simulate:
post:
tags:
- Sandbox
summary: Simulate a test payment outcome
description: Available only with test credentials. No external payment or ledger transaction is submitted. A successful local-currency simulation credits the connected business's isolated test payout balance exactly once; the PaymentIntent response describes that credit in test_balance_credit. Crypto-settlement simulations do not create a local-currency payout balance.
operationId: simulatePaymentIntent
x-required-scope: checkout.write
parameters:
- $ref: '#/components/parameters/ResourceId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- outcome
properties:
outcome:
enum:
- succeeded
- failed
- expired
responses:
'200':
description: Simulated
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentIntent'
'403':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
/api/v1/refunds/{id}/simulate:
post:
tags:
- Sandbox
summary: Simulate a test refund outcome
operationId: simulateRefund
x-required-scope: refund.write
parameters:
- $ref: '#/components/parameters/ResourceId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- outcome
properties:
outcome:
enum:
- completed
- failed
responses:
'200':
description: Simulated
content:
application/json:
schema:
$ref: '#/components/schemas/Refund'
'403':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
components:
responses:
Error:
description: Error response
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
TestBalanceCredit:
type: object
description: An idempotent credit to the connected business's isolated virtual payout balance. It never represents external money movement.
required:
- credited
- idempotent_replay
- amount
- currency
- livemode
- simulated
- external_money_moved
properties:
credited:
const: true
idempotent_replay:
type: boolean
description: True when the same successful simulation was replayed and no second balance entry was created.
amount:
$ref: '#/components/schemas/MoneyString'
currency:
type: string
livemode:
const: false
simulated:
const: true
external_money_moved:
const: false
Refund:
type: object
required:
- object
- id
- payment_intent_id
- status
- amount_minor
- currency
properties:
object:
const: refund
id:
type: string
payment_intent_id:
type: string
status:
enum:
- pending
- requires_action
- processing
- completed
- failed
- canceled
amount_minor:
type: integer
currency:
type: string
settlement:
$ref: '#/components/schemas/Settlement'
type:
enum:
- full
- partial
reason:
type:
- string
- 'null'
external_refund_id:
type:
- string
- 'null'
next_action:
type:
- object
- 'null'
livemode:
type: boolean
sandbox_simulated:
type: boolean
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
completed_at:
type:
- string
- 'null'
format: date-time
failed_at:
type:
- string
- 'null'
format: date-time
Settlement:
type: object
properties:
amount:
type: string
currency:
type: string
transaction_hash:
type:
- string
- 'null'
destination_address:
type:
- string
- 'null'
PaymentNextAction:
type: object
required:
- type
properties:
type:
enum:
- display_qr
- approve_on_phone
- submit_otp
- wait_for_confirmation
- simulate_payment
qr_data:
type: string
qr_image:
type: string
hosted_url:
type: string
format: uri
deep_link:
type: string
message:
type: string
confirmation_endpoint:
type: string
simulation_endpoint:
type: string
MoneyString:
type: string
pattern: ^[0-9]+(\.[0-9]{1,18})?$
description: An exact non-negative decimal amount. Never parse this as a binary floating-point number.
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- message
properties:
type:
type: string
code:
type:
- string
- 'null'
message:
type: string
PaymentIntent:
type: object
required:
- object
- id
- status
- amount_minor
- currency
- external_order_id
- livemode
- sandbox_simulated
- test_balance_credit
- created_at
- expires_at
properties:
object:
const: payment_intent
id:
type: string
status:
enum:
- requires_customer_action
- processing
- succeeded
- failed
- expired
- canceled
amount_minor:
type: integer
currency:
type: string
external_order_id:
type: string
order_number:
type:
- string
- 'null'
customer_email:
type:
- string
- 'null'
location_id:
type:
- string
- 'null'
terminal_id:
type:
- string
- 'null'
operator_id:
type:
- string
- 'null'
integration_type:
type: string
metadata:
type:
- object
- 'null'
line_items:
type:
- array
- 'null'
items:
type: object
payment_method_types:
type:
- array
- 'null'
items:
enum:
- card
- mobile_money
- bank
- xrp
- rlusd
- crypto
payment_method:
type:
- string
- 'null'
collection_mode:
enum:
- hosted
- direct
mobile_money:
anyOf:
- type: object
required:
- country
- network
- phone_last4
properties:
country:
type:
- string
- 'null'
network:
type:
- string
- 'null'
phone_last4:
type:
- string
- 'null'
- type: 'null'
refunded_amount_minor:
type: integer
minimum: 0
failure_code:
type:
- string
- 'null'
settlement:
$ref: '#/components/schemas/Settlement'
next_action:
anyOf:
- $ref: '#/components/schemas/PaymentNextAction'
- type: 'null'
estimated_fees:
anyOf:
- type: object
properties:
collection_fee_minor:
type:
- integer
- 'null'
merchant_net_minor:
type:
- integer
- 'null'
- type: 'null'
livemode:
type: boolean
sandbox_simulated:
type: boolean
test_balance_credit:
anyOf:
- $ref: '#/components/schemas/TestBalanceCredit'
- type: 'null'
description: Present after a successful local-currency test simulation. Null for live intents, unsuccessful simulations, and crypto-settlement simulations.
api_version:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
expires_at:
type: string
format: date-time
canceled_at:
type:
- string
- 'null'
format: date-time
parameters:
ResourceId:
name: id
in: path
required: true
schema:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Secret API key or XRPay Connect access token.
x-provenance:
method: harvested
publisher: XRPay
source: https://api.xrpay.it/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)