Loading...
Pay-ins allow you to receive stablecoin payments from your customers.
A pay-in is created when you want to receive payment from a customer. Celar generates a unique wallet address for the transaction, and once the customer sends funds, the payment is automatically processed.
curl --request POST \
--url https://api.sandbox.celar.io/api/v1/payments/pay-in \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <<your_api_key>>' \
--data '{
"customer_id": "<<customer_id>>",
"amount": 100,
"token": "USDC",
"chain": "base"
}'{
"payment_id": "pay_abc123",
"wallet_address": "0x...",
"amount": 100,
"token": "USDC",
"chain": "base",
"status": "pending",
"expires_at": "2024-01-01T12:00:00Z"
}| Status | Description |
|---|---|
pending | Waiting for customer payment |
confirmed | Payment received and confirmed on-chain |
settled | Funds settled to your Celar wallet |
expired | Payment window expired |