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

Order inquiry

POST
/api/v1/payment/result

Request

Header Params
Content-Type
string 
required
Indicates the media type of the request message as defined in RFC2616
Example:
application/json; charset=UTF-8
signature
string 
required
Including the signature value of the request
Example:
*********
timestamp
string 
required
Unix timestamp (in milliseconds)
Example:
1743487706607
timezone
string 
required
Time zone (based on the timestamp followed by the setting)
Example:
Asia/Shanghai
Body Params application/json
merchant_id
string 
required
Merchant Unique Identifier
merchant_order_id
string 
optional
Merchant Order Number
id
string 
optional
Unique identifier of the DianDian system
Example
{
    "id": "pi_oxlr6knx4VRS9QSeUyelrbu6",
    "merchant_id": "acct_wo0DnjcKAgtTjmmh"
}

Request 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
data
object 
required
order
object 
required
result
object 
required
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