DianDianPay-OpenApi
  1. Acquiring
DianDianPay-OpenApi
  • Overview
  • Acquiring
    • Initiation of payments
      POST
    • Order inquiry
      POST
  1. Acquiring

Order inquiry

POST
/api/v1/payment/result

Request

Header Params

Body Params application/json

Example
{
    "id": "pi_oxlr6knx4VRS9QSeUyelrbu6",
    "merchant_id": "acct_wo0DnjcKAgtTjmmh"
}

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 --request POST '/api/v1/payment/result' \
--header 'signature: *********' \
--header 'timestamp: 1743487706607' \
--header 'timezone: Asia/Shanghai' \
--header 'Content-Type: application/json; charset=UTF-8' \
--data-raw '{
    "id": "pi_oxlr6knx4VRS9QSeUyelrbu6",
    "merchant_id": "acct_wo0DnjcKAgtTjmmh"
}'

Responses

๐ŸŸข200ๆˆๅŠŸ
application/json
Body

Example
{
    "data": {
        "order": {
            "created_at": "2025-03-19T03:28:12+00:00",
            "failure_reason": "",
            "id": "pi_HJKF8IeAFIjgKRiCzR27R57S",
            "is_dispute": false,
            "merchant_order_id": "21064044713325350732292",
            "metadata": {
                "shop": "hcimyz8gli.myshopline.com"
            },
            "payment_amount": {
                "currency": "USD",
                "value": 14409
            },
            "payment_method": {
                "billing_address": {
                    "address1": "1400 Lubbock Street",
                    "address2": "",
                    "city": "Houston",
                    "country": "US",
                    "state": "CA",
                    "zip_code": "9999"
                },
                "payment_data": {
                    "card_bin": "411111",
                    "expiry_month": "03",
                    "expiry_year": "30",
                    "last4": "1111"
                },
                "payment_type": "CARD"
            },
            "payment_status": "succeeded",
            "refunded_amount": 0,
            "shipping": {
                "email": "test@gmail.com",
                "phone": "2222",
                "shipping_address": {
                    "address1": "1400 Lubbock Street",
                    "address2": "",
                    "city": "Houston",
                    "country": "US",
                    "state": "CA",
                    "zip_code": "9999"
                },
                "shipping_name": {
                    "first_name": "demo",
                    "full_name": "D",
                    "last_name": "demo"
                }
            },
            "transaction_fee": 0,
            "update_at": "2025-03-20T03:58:08+00:00"
        },
        "result": {
            "result_status": "S"
        }
    }
}
Modified atย 2025-05-19 05:14:13
Previous
Initiation of payments
Built with