Skip to main content

Overview

Query the real-time status of an order, including success, failure, or pending, helping you track progress accurately.

Function

  • Query order status by order number.
  • Only orders within the last six months can be queried.

Flow Chart

Check Order Status

  1. The merchant server calls the order status query function and submits the required parameters.
curl -X POST '/service/check/normal'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'account=995149'
-d 'terminal=99514901'
-d 'signValue=6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b'
-d 'order_number=NO12345678'

Response

<?xml version="1.0" encoding="UTF-8"?>
<response>
<paymentInfo>
<account>995149</account>
<terminal>99514901</terminal>
<signValue>C011ED98B1D5181F66C800DB7A3A72EDE59583279D30ED40850C9D3E340B704C</signValue>
<order_number>NO12345678</order_number>
<order_currency>USD</order_currency>
<order_amount>0.01</order_amount>
<order_sourceUrl>https://example.com</order_sourceUrl>
<order_notes />
<methods>Credit Card</methods>
<payment_id>221111141453082445074</payment_id>
<payment_results>1</payment_results>
<payment_details>89999:Contact Customer Service</payment_details>
<payment_risk>Smart=20.0(R000002=20.0%,)</payment_risk>
<payment_authCode />
<payment_eci />
<payment_dateTime>2022-11-11 14:15:29</payment_dateTime>
<auth_status>0</auth_status>
<payment_debitTime>2022-11-11 14:15:29</payment_debitTime>
<pay_barCode />
<refund_status>0</refund_status>
<refundList />
<chargeBack_status>0</chargeBack_status>
<chargeBackList />
<duplicate_status>0</duplicate_status>
<transactionList />
<update_status>0</update_status>
<networkToken>
<create_status>3</create_status>
<recurring_type>0</recurring_type>
</networkToken>
</paymentInfo>
</response>

Payment Status

ParameterDescription
payment_resultsPayment status:
  • -1: Pending (not a final state; wait for Oceanpayment callback)
  • 1: Payment successful
  • 0 or other: Payment failed / not processed
payment_detailsPayment details

View full list of order status response parameters