Expand the API Overview panel on the left to see every endpoint with full details.
Base URL: https://api.grain.inc
https://api.grain.inc
Common conventions:
Authentication via Bearer tokens (see Authentication & Idempotency).
Content-Type: all request bodies are JSON (application/json).
application/json
Currency: "USD" currently supported.
"USD"
Amounts: strings with two decimals (e.g., "10.00").
"10.00"
Endpoints:
Merchants — retrieve merchant profile and supported payment methods.
Payment Sessions — create and inspect payment sessions.
Connect Wallet — associate a user wallet + stablecoin with a session.
Funding Transaction — optionally record the funding transaction hash.
Captures — move funds from OTW to merchant wallet (partial/final) and inspect captures.
Last updated 4 months ago