For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Quick Start (Merchant)

Accept a USDC payment into your merchant account in two calls: create a payment, then poll for its status.

App ID: your merchant appId. You can try the examples below with our test merchant pos_rozostudio, then join our discord to get your own.

API Host: https://intentapiv4.rozo.ai/functions/v1

1. Create a payment

POST /payment-api/payments

Base chain ID: 8453

# Curl
curl --location --request POST 'https://intentapiv4.rozo.ai/functions/v1/payment-api/payments' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "pos_rozostudio",
    "orderId": "order-'"$(date +%s)"'",
    "type": "exactIn",
    "display": {
        "title": "Your POS test",
        "currency": "USD"
    },
    "source": {
        "chainId": "8453",
        "tokenSymbol": "USDC",
        "amount": "0.10"
    }
}'

The response returns a payment id and a receiverAddress on the source chain — show the customer this address (or its QR) to pay.

2. Check payment status

GET /payment-api/payments/{id}

Poll this endpoint until status becomes payment_completed. Common statuses:

Status
Meaning

payment_unpaid

Waiting for the customer to send funds

payment_started

Funds detected on chain, confirming

payment_completed

Settled — fulfill the order

Tip: instead of polling, configure a Webhook to get notified when the payment completes.

Merchant info and supported tokens

Create (including ?dryrun=true) and get order responses carry the merchant shown to the buyer and what that merchant accepts:

  • supportedTokens.native lists only the native coins this merchant has enabled (empty when none). Native coins are a beta feature for invited merchants only; stablecoins are always accepted for every merchant. The same object is returned at the top level for orders that have no merchant block. Render the checkout coin picker from this field instead of a hardcoded list. See Supported Tokens and Chains.

Last updated