Create one
A positive decimal string within the asset’s precision, for example
"25" or "12.5". Never a
float.An asset id from
useroutr.assets.list() whose entry has destination: true, such as
asset_usdc_stellar. An asset your users can only pay with is refused with
UNSUPPORTED_ASSET. See Assets and networks.Where the value settles:
{ network, asset, address }. Defaults to your application’s default
destination. It must be on the asset’s own network and for the same asset. A Stellar account
must already exist and, for an issued asset such as USDC, hold a trustline for it; otherwise the
request is refused with INVALID_DESTINATION rather than taking a payment that could not be
delivered.409 IDEMPOTENCY_REQUEST_IN_PROGRESS retry with the
same key until the original intent comes back.
Lifecycle
PAYMENT_DETECTED and ROUTING happen inside the steps that confirm a payment and create a
settlement, so you never observe them. CANCELLED, REFUND_PENDING and REFUNDED are defined
for flows that are not live yet; no intent reaches them today.
Funding instructions
Every intent gets a deposit account: a Stellar account Useroutr creates for that intent alone. It is not your destination; your destination receives the value once the payment settles. While the intent isAWAITING_PAYMENT or PARTIALLY_FUNDED, funding_instructions tells your
user exactly what to send:
Partial payments and overpayments
Payments add up. A smaller payment moves the intent toPARTIALLY_FUNDED and the instructions
ask for the remainder. Once the total reaches the amount, the intent is PAYMENT_CONFIRMED.
Anything above the amount is never credited. It is recorded as a refund with reason
OVERPAYMENT and paid back to the payer. Payments that do not match, such as the wrong asset or
a payment after expiry, are recorded as rejected and fire payment.rejected, and the intent
keeps waiting. See Refunds.
Read
payment and settlement once they exist, hosted_funding_url for the
payer, and while a quote is locked, its source, quote and route.