APITaraPay
Merchant Console

Quick start

Collect → verified webhook → payout. Same /v1 contract for every market and rail.

End-to-end

  1. Create a test API key in Console → API (Developers).
  2. POST /v1/payments/intents with Idempotency-Key; redirect the customer to checkoutUrl.
  3. On verified payment_intent.succeeded webhook, credit the customer on your side (never trust returnUrl alone).
  4. For payouts: POST /v1/payouts when your TaraPay balance allows; mark paid only after verified payout webhook or GET status.
1) Collect — PIX (Brazil)
curl -sS -X POST '$BASE/v1/payments/intents' \
  -H 'Authorization: Bearer $TP_TEST_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: brand-dep-1001' \
  -d '{
    "amountMinor": "10000",
    "currency": "BRL",
    "rail": "redirect_apm",
    "paymentMethod": "pix",
    "merchantOrderRef": "brand-dep-1001",
    "merchantCustomerRef": "customer-42",
    "returnUrl": "https://brand.example/checkout/return"
  }'
2) Collect — BD wallet (same shape)
curl -sS -X POST '$BASE/v1/payments/intents' \
  -H 'Authorization: Bearer $TP_TEST_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: brand-dep-1002' \
  -d '{
    "amountMinor": "10000",
    "currency": "BDT",
    "rail": "redirect_apm",
    "paymentMethod": "bkash",
    "merchantOrderRef": "brand-dep-1002",
    "returnUrl": "https://brand.example/checkout/return"
  }'
3) Payout — send funds out
curl -sS -X POST '$BASE/v1/payouts' \
  -H 'Authorization: Bearer $TP_TEST_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: brand-wd-2001' \
  -d '{
    "amountMinor": "5000",
    "currency": "BDT",
    "paymentMethod": "bkash",
    "beneficiaryRef": "01XXXXXXXXX",
    "merchantOrderRef": "brand-wd-2001"
  }'
Change currency + paymentMethod for the market; keep the same endpoints. TaraPay picks the upstream rail. You never call Agent or FirePay APIs.