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.

Last updated