Documentation Index
Fetch the complete documentation index at: https://docs.starkfi.io/llms.txt
Use this file to discover all available pages before exploring further.
Your StarkNode API key. You can find it in your dashboard.
Caller identifier for this template (e.g. api_transaction).
Source fiat symbol enabled for your account (validated server-side), e.g. BRL, USD.
Amount in the source currency (decimal string), e.g. "100.00".
Destination crypto symbol, e.g. USDT, USDC.
Whether this order represents an on-ramp flow.
Processing mode: direct (one-off) or subs (subscription-capable template).
Optional flags; when provided, at least one must be true: crypto, pixcrypto, cardcrypto, cardfiat, cryptofiat.Show payment_method_allowed
Optional line items.
Positive integer quantity.
Optional split configuration.Show split_payment_config[]
Wallet receiving a share.
Optional Pagarme recipient id.
Charge processing fee on this leg.
subscription_payment_config
Optional subscription defaults.Show subscription_payment_config
weekly, monthly, or yearly.
Optional Unix timestamp for next charge.
Whether to charge immediately (default false).
curl --request POST \
--url https://api.starknode.io/order/create \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"executor_id": "api_transaction",
"from_currency_symbol": "BRL",
"amount_from": "100.00",
"to_currency_symbol": "USDT",
"on_ramp": false,
"gateway_method": "direct",
"payment_method_allowed": {
"crypto": true,
"pixcrypto": true
}
}'
{
"statusCode": 200,
"success": true,
"status": "order_created",
"message": "Order created successfully.",
"data": {
"order_id": "clxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
Response
HTTP status mirrored in the body (200 on success).
Whether the request succeeded.
Machine-readable code, e.g. order_created.
Present on success.
CUID of the new payment_orders row. A payment_session_link is stored on the order by the server.