Developer center

Secure integration for
enterprise payment operations

RESTful APIs, asynchronous webhooks, sandbox testing and complete integration documentation covering payment creation, order retrieval, refunds, ledger synchronization, reconciliation validation and production launch review.

Sandbox does not move real funds

POST /v1/payments
# Create an enterprise payment request (Payment Intent)
curl https://api.goosunpay.com/v1/payments \
  -u "sk_test_xxx:" \
  -d merchant_order_no=ORDER-001 \
  -d amount=4900 \
  -d currency=USD \
  -d payment_methods[]=card \
  -d return_url=https://your-site.com/return \
  -d notify_url=https://your-site.com/webhook

# Example response
{
  "id": "pay_01HXXXXX",
  "status": "pending",
  "payment_url": "https://checkout.goosunpay.com/s/xxx",
  "amount": 4900,
  "currency": "USD"
}
Integration guide

A clear integration path that
reduces launch complexity

Engineering teams can use standard APIs to create payments, retrieve transaction status, receive webhooks, process refunds, synchronize ledger data and validate reconciliation. Unified fields, signing controls, sandbox scenarios and launch checklists help teams move safely into production.

01
Request sandbox
Submit basic information to open a test environment
02
Get API keys
Generate Test / Live keys in the merchant console
03
Integrate APIs
Implement payment creation and webhook handling
04
Switch to Live
Move to production after joint testing
API capabilities

API capabilities designed
around common payment flows

POST/v1/payments
Create payment
Create a payment order and return a payment link
GET/v1/payments/{id}
Retrieve order
Query order information by order ID
GET/v1/payments/{id}/status
Query transaction status
Get the latest transaction status
POST/v1/refunds
Create refund
Create full or partial refunds for paid orders
GET/v1/wallet/balance
Wallet balance
Query enterprise wallet and available settlement balance
GET/v1/reconciliation/statements
Reconciliation statements
Retrieve settlement statements, fund flows and reconciliation details
GET/v1/events
Webhook events
Query webhook events and replay records
Webhook

Synchronize key transaction status
with async notifications

Payment success, payment failure, refund updates, subscription changes and reconciliation events help your business system update order, ledger and follow-up actions in time.

payment.succeededPayment success
payment.failedPayment failed
refund.updatedRefund status updated
subscription.updatedSubscription status updated
POST /your-webhook
{
  "id": "evt_01HXXXXX",
  "type": "payment.succeeded",
  "created_at": 1713456789,
  "data": { "status": "succeeded" },
  // Headers include X-GoosunPay-Signature for signature verification
}
Sandbox testing

Test first,
go live later

An isolated testing environment helps engineering teams complete integration validation before production and reduce launch risk.

Isolated environment
Sandbox and production are fully isolated.
Production-like API
Fields match production so switching is straightforward.
Payment-flow testing
Simulate success, failure, refunds and other statuses.
Documentation

From the first line of code to launch,
docs are available

System operational

API and webhook services are running. Contact technical support for real-time status and historical events.