Create a transaction

Move a wallet's stablecoin to an address, another wallet, or a bank account.

Returns the transaction awaiting_authorization, carrying the authorizations your signing key signs: verify the payload, then post your signature to its authorization within its short window and it moves. A virtual account moves its deposits without this call, through its standing destination.

curl -X POST "https://sandbox.rasto.co/api/transactions" \
  -H "Content-Type: application/json" \
  -H "Api-Version: 2026-08-01" \
  -H "Idempotency-Key: 6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63" \
  -H "Api-Key: YOUR_API_KEY" \
  -d '{
  "amount": "5",
  "destination": {
    "address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
    "kind": "address"
  },
  "partner_reference_id": "payout-1042",
  "source": {
    "currency": "usdc",
    "kind": "wallet",
    "wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
  }
}'
{
  "authorizations": [
    {
      "action_id": null,
      "chain": "solana",
      "created_at": "2026-11-29T18:01:00.553601+00:00",
      "expires_at": "2026-11-29T18:01:36.020479+00:00",
      "id": "wau_03567gwkZVJCZEBa2EOojp",
      "kind": "transaction",
      "network": "testnet",
      "object": "wallet_authorization",
      "partner_reference_id": "payout-1042",
      "payload": {
        "format": "solana_message",
        "message": "eyJhY2NvdW50IjogIjVZWU5BY1cxdHk3eWJwVFVValVTZ1dCaGF6b2JnUlU1cnNhMVBoejNzQTE1IiwgImFtb3VudCI6ICI1...",
        "message_version": "legacy"
      },
      "signer": {
        "key": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr",
        "role": "signing"
      },
      "status": "pending",
      "summary": {},
      "supersedes": null,
      "transaction_id": "txn_03567gp0y9r0USMPkVcuVs",
      "wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
    }
  ],
  "bank_reference": null,
  "completed_at": null,
  "conversion": null,
  "created_at": "2026-11-29T18:01:00.553601+00:00",
  "customer_id": "cus_03567dbmmINi56C3sJCM7O",
  "destination": {
    "address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
    "amount": null,
    "chain": "solana",
    "currency": "usdc",
    "kind": "address",
    "network": "testnet"
  },
  "documents": [],
  "failure_code": null,
  "fees": {
    "currency": "usdc",
    "lines": [],
    "total": "0"
  },
  "id": "txn_03567gp0y9r0USMPkVcuVs",
  "object": "transaction",
  "partner_reference_id": "payout-1042",
  "purpose": null,
  "required_documents": [],
  "scheme": null,
  "source": {
    "amount": "5",
    "chain": "solana",
    "currency": "usdc",
    "kind": "wallet",
    "network": "testnet",
    "wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
  },
  "status": "awaiting_authorization",
  "transaction_hash": null,
  "virtual_account_id": null
}
POST
/api/transactions
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.

Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Content-Typestring
Required

The media type of the request body

Options: application/json
header
Api-Versionstring

The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.

header
Idempotency-Keystring
Required

A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.

sourceobject
Required

Required. What funds the transaction: the wallet and the currency sent.

destinationobject
Required

Required. Where the transaction delivers.

amountstring
Required

Required. How much of source.currency to send, before fees, as a decimal string greater than 0. An amount finer than the currency's decimals (6 for USDC) returns 400 invalid_amount.

Pattern: ^\d+(\.\d+)?$
purposestring

Why the money is sent: family_support, own_account, gift, education, medical, professional_services, software_services, goods or salary. Required when the destination is an external account, and refused on a send to an address or a wallet. A purpose the corridor does not take for the account holder returns 422 purpose_not_allowed.

Options: family_support, own_account, gift, education, medical, professional_services, software_services, goods, salary
documentsarray

The documents behind a payment to a bank account, 1 to 10 of them. A corridor names the kinds each purpose requires in required_documents (GET /api/corridors): a payment for goods or services must carry its invoice, otherwise 422 documents_required. Further documents can be attached later with POST /api/transactions/{transaction_id}/documents. Refused on a send to an address or a wallet.

partner_fee_bpsstring

Your own fee on this transaction, in bps of the amount, as a decimal string from 0 to 1000 with up to 3 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.

Pattern: ^\d+(\.\d+)?$
partner_fee_flatstring

The flat part of your fee on this transaction, added to the bps part: a decimal string in the source currency from 0 to 1000 with up to 2 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.

Pattern: ^\d+(\.\d+)?$
partner_reference_idstring

Required for a send from a wallet (422 partner_reference_id_required otherwise). Your own id for this transaction, 1 to 255 characters and unique per environment. Every authorization of the transaction carries it, so your signer can find the payment in your records.

Min length: 1 • Max length: 255 • Pattern: ^[^\x00]*$
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Api-Keystring
Required

API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.

Headers

Api-Versionstring

The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.

Example:
2026-08-01
Idempotency-Keystring
Required

A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.

Example:
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63

Body

application/json
sourceobject
Required

Required. What funds the transaction: the wallet and the currency sent.

destinationobject
Required

Required. Where the transaction delivers.

amountstring
Required

Required. How much of source.currency to send, before fees, as a decimal string greater than 0. An amount finer than the currency's decimals (6 for USDC) returns 400 invalid_amount.

Example:
10.5
purposestring

Why the money is sent: family_support, own_account, gift, education, medical, professional_services, software_services, goods or salary. Required when the destination is an external account, and refused on a send to an address or a wallet. A purpose the corridor does not take for the account holder returns 422 purpose_not_allowed.

documentsstring

The documents behind a payment to a bank account, 1 to 10 of them. A corridor names the kinds each purpose requires in required_documents (GET /api/corridors): a payment for goods or services must carry its invoice, otherwise 422 documents_required. Further documents can be attached later with POST /api/transactions/{transaction_id}/documents. Refused on a send to an address or a wallet.

partner_fee_bpsstring

Your own fee on this transaction, in bps of the amount, as a decimal string from 0 to 1000 with up to 3 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.

Example:
10.5
partner_fee_flatstring

The flat part of your fee on this transaction, added to the bps part: a decimal string in the source currency from 0 to 1000 with up to 2 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.

Example:
10.5
partner_reference_idstring

Required for a send from a wallet (422 partner_reference_id_required otherwise). Your own id for this transaction, 1 to 255 characters and unique per environment. Every authorization of the transaction carries it, so your signer can find the payment in your records.

Responses