REST API overview

A consistent API for the complete payment lifecycle.

Create payment intents, confirm customer actions, route transactions, handle asynchronous events, and reconcile final outcomes through clear resource models.

Global schemes · digital wallets · local payment methods
VISAGlobal card scheme
MastercardGlobal card scheme
UnionPay 銀聯Global card scheme
Alipay 支付寶Digital wallet
WeChat Pay 微信支付Digital wallet
Local walletsMarket-specific methods
VISAGlobal card scheme
MastercardGlobal card scheme
UnionPay 銀聯Global card scheme
Alipay 支付寶Digital wallet
WeChat Pay 微信支付Digital wallet
Local walletsMarket-specific methods
Example request

Create a payment intent

Use a consistent resource model for authorization, routing policy, merchant context, and reconciliation across providers.

Idempotent requestExplicit merchant contextPolicy-aware routing
curl https://sandbox.anvor.com/v1/payment_intents \
  -H "Authorization: Bearer $ANVOR_KEY" \
  -H "Idempotency-Key: order_84721" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 12500,
    "currency": "USD",
    "merchant_id": "mrc_global_01",
    "payment_method": "card",
    "routing_policy": "maximize_approval"
  }'
01

Core resources

The API is organized around durable business objects rather than provider-specific endpoints.

01

Payment intents

Represent the requested amount, currency, merchant context, payment method, and current status.

02

Payment attempts

Track each route, provider interaction, response, and follow-up action.

03

Refunds and reversals

Manage post-payment operations with explicit states and references.

02

Integration principles

The interface is designed for reliability in distributed systems.

01

Idempotency keys

Prevent duplicate operations when clients retry requests.

02

Request signatures

Verify server-to-server calls and webhook authenticity.

03

Expandable responses

Retrieve related objects when needed without overloading every request.

Next step

Build the payment stack your growth deserves.

Talk with Anvor about your markets, payment methods, routing goals, and compliance requirements.

Contact sales