The v2 API tops up your wallet. Create a payment with a method, show the returned QR / checkout to the payer, then poll until it confirms. All calls need your API key.

Methods

GET /api/v2/methods

Returns { success, methods, usd_to_vnd }. The enabled rails are oxapay (crypto) and payos (VietQR). Use usd_to_vnd to show a VND amount.

Create a payment

POST /api/v2/payment/create
FieldTypeNotes
amountnumberUSD, between $1 and $10,000.
methodstringoxapay or payos.
descriptionstringOptional label (max 80 chars).

Returns the order: { success, id, status, method, amount, amount_vnd, payment }. payment holds the rail's QR / checkout URL and account details.

curl -X POST "https://tools.eimted.us/api/v2/payment/create" \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"amount":10,"method":"payos","description":"Wallet top-up"}'

Poll until paid

GET /api/v2/payment/status?id=...

Also GET /api/v2/payment/:id. status moves through:

statusMeaning
pending / awaitingCreated, waiting for the transfer.
paid / deliveredConfirmed - the wallet is credited.
expiredNo payment arrived in time.
cancelledThe order was cancelled.
List your payments

GET /api/v2/payment returns your recent orders.