Checkout (public)
Report a transaction hash
Reports the transaction hash of a transfer to a deposit address: the payment named by payment_id, or the latest one. Solverr passes the hash to NEAR Intents, which then detects the payment sooner. Returns the current checkout state.
Rate limits: 20 per minute per IP address, 80 per network and 5 per invoice.
id*stringInvoice id, starting with inv_.
application/json- body
tx_hash*string^[A-Za-z0-9:_\-.]+$8 <= length <= 200payment_id?stringThe payment (deposit address) the transaction was sent to. Leave it out to use the latest one.
1 <= length <= 60The checkout state after the report.
application/json- response
The public view of an invoice used by the checkout page.
id*stringobject*stringmode*ModeAlways live on the objects your API key creates and reads. Only demo store invoices, seen through the public checkout endpoints, are test.
"live""test"status*InvoiceStatus"created""awaiting_payment""detected""processing""paid""underpaid""refunded""failed""expired"merchant*amount*stringcurrency*Currency"USD""EUR""INR"description*string|nullorder_id*string|nullsettlement*late*booleanextra_payment*booleanexpires_at*stringdate-timepaid_at*|When the invoice was paid, or null before that.
date-timeretry_allowed*booleanTrue when the invoice can take a new payment attempt (status created, awaiting_payment, refunded or failed) and more than 2 minutes of its lifetime are left.
redirect_url*|Set only once the invoice is paid.
payment*|The payment attempt that paid the invoice, else one whose payment is in flight, else the newest; null before a coin is chosen.
payments_delayed*booleanTrue when the worker's NEAR Intents health check is failing. Always false for demo store invoices.
email_receipts*booleanTrue when the server can send receipt emails. Always false for demo store (test mode) invoices.
receipt_email_set*booleancurl -X POST 'https://example.com/api/v1/invoices/string/deposit' \ -H 'Content-Type: application/json' \ -d '{ "tx_hash": "stringst"}'{ "id": "string", "object": "checkout", "mode": "live", "status": "created", "merchant": { "name": "string", "logo_url": "string" }, "amount": "string", "currency": "USD", "description": "string", "order_id": "string", "settlement": { "symbol": "string", "blockchain": "string", "amount": "string" }, "late": true, "extra_payment": true, "expires_at": "2019-08-24T14:15:22Z", "paid_at": "2019-08-24T14:15:22Z", "retry_allowed": true, "redirect_url": "string", "payment": { "id": "quo_4kT9mW2xQpL7vN3rB8sZ", "object": "payment", "status": "pending_deposit", "coin": { "asset_id": "string", "symbol": "string", "blockchain": "string", "chain_name": "string", "decimals": 0 }, "amount_in": "string", "amount_in_base": "string", "min_amount_in_base": "string", "amount_in_usd": "string", "deposit_address": "string", "deposit_memo": "string", "refund_address": "string", "confidential": true, "deadline": "2019-08-24T14:15:22Z", "time_estimate_seconds": 0, "deposited_amount": "string", "refunded_amount": "string", "refund_fee": "string", "refund_reason": "string", "origin_transactions": [ { "hash": "string", "url": "string" } ], "destination_transactions": [ { "hash": "string", "url": "string" } ], "correlation_id": "string", "quote_signature": "string", "created_at": "2019-08-24T14:15:22Z", "state": "active", "reported": true }, "payments_delayed": true, "email_receipts": true, "receipt_email_set": true}