1. WPay
WPay
  • Introduction
  • Signature
  • API Keys
  • Get Started
  • Webhook Service
  • Api Reference
    • Authentication
      • Get Access Token
      • Refresh Access Token
    • WPay
      • Hosted Payment Page
        POST
      • List Payment History
        POST
      • Get Payment Detail
        POST
      • Refund
        POST
      • List Subscriptions
        POST
      • Get Subscription Detail
        POST
      • Cancel Subscription
        POST
      • Get Subscription Bills
        POST
    • Webhook
      • Simulate a Event Call
  • Schemas
    • Schemas
      • RefundOrderDTO
      • RefundPageReq
      • ApiPageApiPageRefundOrderDTO
      • ApiResponseApiPageRefundOrderDTO
      • CancelReq
  1. WPay

Get Payment Detail

Developing
POST
/checkout/w-payment/payments/detail
Get full payment detail by transaction number, including fee breakdown and payment method info.

Request

Body Params application/jsonRequired

Example
{
  "trxNo": "TRX1714012345678"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/checkout/w-payment/payments/detail' \
--header 'Content-Type: application/json' \
--data '{
  "trxNo": "TRX1714012345678"
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
  "retcode": "200",
  "retmsg": null,
  "retdata": {
    "id": 1001,
    "trxNo": "TRX1714012345678",
    "gatewayOrderNo": "cs_xxx",
    "channelId": "STRIPE",
    "status": "PAID",
    "payMode": "ONETIME",
    "mchOrderNo": "ORD-20240423-001",
    "mchSubscriptionNo": null,
    "amount": 99.99,
    "currency": "USD",
    "description": "Order payment",
    "customerEmail": "user@example.com",
    "createTime": "2026-04-23T10:00:00",
    "payTime": "2026-04-23T10:01:30",
    "processingFee": 2.99,
    "netAmount": 97.00,
    "gatewayAvailableOn": "2026-04-25T00:00:00",
    "paymentMethodLast4": "4242",
    "paymentMethodBrand": "visa",
    "paymentMethodType": "Visa credit card",
    "paymentMethodExpiry": "05/2032",
    "paymentMethodFingerprint": "abc123xyz",
    "cvcCheck": "Passed",
    "zipCheck": "Passed",
    "billingZip": "10001",
    "billingCountry": "US",
    "statementDescriptor": "WPAY*ORDER",
    "source": "Manually entered from Dashboard",
    "redirectUrl": null,
    "errMsg": null
  }
}
Modified at 2026-05-17 23:40:15
Previous
List Payment History
Next
Refund
Built with