Layerbeat

Verify or recover a hosted IDR payment

POST
/v1/billing/payments/{id}/refresh

Checks the payment provider for the status of your existing Doit top-up.

Access: API key: billing:write · Session: any role, own account.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Path Parameters

id*string

The resource id.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Original personal payment after verification or checkout recovery.

application/json
  1. response
credit?
display_idr_per_usd?string

Immutable original rate for displaying this USD credit in IDR. Omitted on legacy instructions or when unconfigured.

Match^[0-9]+$
instructions_version?1

Immutable instruction snapshot version; legacy rows may omit it.

Value in1
id*string
purpose*string

New intents are top-ups. The legacy vm_purchase value remains readable for historical records.

Value in"vm_purchase""topup"
method*string

usdc_tempo is used only by MPP agent top-ups.

Value in"usdc_solana""usdc_arc""usdc_tempo"
status*string

awaiting: nothing received. partial: some received. paid: complete. expired/canceled: closed (anything received is wallet balance).

Value in"awaiting""partial""paid""expired""canceled"
vm_id*|

Null for new top-ups; retained only for historical direct-payment VM orders.

amount*
received*

What has arrived so far.

pay_to*string

The address to pay on the stated network.

reference*|

Solana only: a unique reference key that identifies this payment (already inside payment_uri).

payment_uri*string

A link/QR payload for wallets: Solana Pay on Solana, an EIP-681 request on Arc.

network*
expires_at*string

Pay before this time.

Formatdate-time
paid_at*|
Formatdate-time
created_at*string
Formatdate-time
transactions*array<>

On-chain transfers credited to this payment, oldest first. Empty until a transfer is credited.

curl -X POST 'https://layerbeat.com/v1/billing/payments/string/refresh'
{  "credit": {    "currency": "IDR",    "amount": "80001"  },  "display_idr_per_usd": "16000",  "instructions_version": 1,  "id": "pay_h3x9k2m7q4w6z8tfjn5r2bcdva",  "purpose": "topup",  "method": "usdc_solana",  "status": "awaiting",  "vm_id": "vm_gnkrp6zuxvsqki7sqxeluvsw2y",  "amount": {    "usd": "12.00",    "usdc": "12.003417"  },  "received": {    "usdc": "0.000000",    "credited_usd": "12.00"  },  "pay_to": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",  "reference": "J4Zq…",  "payment_uri": "solana:7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU?amount=12.003417&spl-token=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&reference=J4Zq…&label=VPS",  "network": {    "name": "USDC on Solana",    "network": "solana",    "asset": "USDC",    "contract": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",    "genesis_hash": "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d",    "token_account": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",    "token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",    "decimals": 6  },  "expires_at": "2026-10-01T11:00:00Z",  "paid_at": "2019-08-24T14:15:22Z",  "created_at": "2026-10-01T10:00:00Z",  "transactions": [    {      "id": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",      "explorer_url": "https://solscan.io/tx/5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"    }  ]}