Order inquiry
curl --request POST \
--url https://api.example.com/api/v1/order/inquiry \
--header 'Content-Type: application/json' \
--data '
{
"paymentRequestId": "<string>",
"acquiringOrderId": "<acquiringOrderId>"
}
'import requests
url = "https://api.example.com/api/v1/order/inquiry"
payload = {
"paymentRequestId": "<string>",
"acquiringOrderId": "<acquiringOrderId>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({paymentRequestId: '<string>', acquiringOrderId: '<acquiringOrderId>'})
};
fetch('https://api.example.com/api/v1/order/inquiry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/order/inquiry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentRequestId' => '<string>',
'acquiringOrderId' => '<acquiringOrderId>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/order/inquiry"
payload := strings.NewReader("{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/order/inquiry")
.header("Content-Type", "application/json")
.body("{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/order/inquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "success",
"data": {
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"acquiringOrderId": "<string>",
"orderStatus": "PAY_IN_PROGRESS",
"orderCurrency": "<string>",
"orderAmount": "<string>",
"finalDealAmount": "<string>",
"orderDescription": "<string>",
"orderAction": "<string>",
"originalAmount": "<string>",
"merchantInfo": {
"merchantId": "<string>",
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"goodsInfo": {
"goodsName": "GameXXX-001",
"goodsUrl": "https://www.merchant123.com/goods123",
"appName": "<string>",
"goodsId": 10001,
"skuName": "GameXXX",
"goodsUniquePrice": 100,
"goodsQuantity": 1,
"goodsCategory": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"payMethodResponse": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"payOption": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": true
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
},
"orderRequestedAt": "<string>",
"orderExpiredAt": "<string>",
"orderUpdatedAt": "<string>",
"orderCompletedAt": "<string>",
"refundExpiryAt": "<string>",
"cancelRedirectUrl": "<string>",
"orderFailedReason": "<string>",
"extendInfo": "<string>",
"userCurrency": "<string>",
"x402Info": {
"x402Request": true,
"paymentSignatureHeader": "<string>",
"x402Response": "<string>"
},
"subscriptionInfo": {
"subscriptionId": "<string>",
"merchantRequest": "<string>",
"subscriptionRequest": "<string>",
"subscriptionEvent": "<string>",
"period": "<string>"
}
}
}One-time Payment
Order inquiry
POST
/
api
/
v1
/
order
/
inquiry
Order inquiry
curl --request POST \
--url https://api.example.com/api/v1/order/inquiry \
--header 'Content-Type: application/json' \
--data '
{
"paymentRequestId": "<string>",
"acquiringOrderId": "<acquiringOrderId>"
}
'import requests
url = "https://api.example.com/api/v1/order/inquiry"
payload = {
"paymentRequestId": "<string>",
"acquiringOrderId": "<acquiringOrderId>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({paymentRequestId: '<string>', acquiringOrderId: '<acquiringOrderId>'})
};
fetch('https://api.example.com/api/v1/order/inquiry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/order/inquiry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentRequestId' => '<string>',
'acquiringOrderId' => '<acquiringOrderId>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/order/inquiry"
payload := strings.NewReader("{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/order/inquiry")
.header("Content-Type", "application/json")
.body("{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/order/inquiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentRequestId\": \"<string>\",\n \"acquiringOrderId\": \"<acquiringOrderId>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "success",
"data": {
"paymentRequestId": "<string>",
"merchantOrderId": "<string>",
"acquiringOrderId": "<string>",
"orderStatus": "PAY_IN_PROGRESS",
"orderCurrency": "<string>",
"orderAmount": "<string>",
"finalDealAmount": "<string>",
"orderDescription": "<string>",
"orderAction": "<string>",
"originalAmount": "<string>",
"merchantInfo": {
"merchantId": "<string>",
"subMerchantId": "<string>"
},
"userInfo": {
"userId": "0001",
"userEmail": "0001@examples.com",
"userTerminal": "WEB",
"userCreatedAt": "2021-05-16T08:00:00.000Z",
"userPhone": "<string>",
"userCountryCode": "<string>",
"userFirstName": "<string>",
"userLastName": "<string>",
"userBrowserIp": "<string>",
"userAgent": "<string>",
"userReceiptUrl": "<string>"
},
"goodsInfo": {
"goodsName": "GameXXX-001",
"goodsUrl": "https://www.merchant123.com/goods123",
"appName": "<string>",
"goodsId": 10001,
"skuName": "GameXXX",
"goodsUniquePrice": 100,
"goodsQuantity": 1,
"goodsCategory": "<string>"
},
"paymentInfo": {
"productName": "ONE_TIME_PAYMENT",
"payMethodType": "EWALLET",
"payMethodName": "DANA",
"payMethodProperties": "<string>",
"payMethodResponse": "<string>",
"userPaymentAccessToken": "<string>",
"payMethodUserAccountNo": "<string>",
"payMethodUserAccountType": "<string>",
"payOption": "<string>",
"cashierLanguage": "<string>",
"receiptTemplateId": "<string>",
"cashierAppearance": "<string>",
"payMethodCountry": "<string>",
"captureMode": "<string>",
"merchantInitiatedMode": "<string>",
"setupFutureUsage": true
},
"addressInfo": {
"address": "street 123 ...",
"city": "city123",
"region": "region or state or province 123",
"postcode": 112233,
"addressCountryCode": "IDN"
},
"orderRequestedAt": "<string>",
"orderExpiredAt": "<string>",
"orderUpdatedAt": "<string>",
"orderCompletedAt": "<string>",
"refundExpiryAt": "<string>",
"cancelRedirectUrl": "<string>",
"orderFailedReason": "<string>",
"extendInfo": "<string>",
"userCurrency": "<string>",
"x402Info": {
"x402Request": true,
"paymentSignatureHeader": "<string>",
"x402Response": "<string>"
},
"subscriptionInfo": {
"subscriptionId": "<string>",
"merchantRequest": "<string>",
"subscriptionRequest": "<string>",
"subscriptionEvent": "<string>",
"period": "<string>"
}
}
}Body
application/json
provide paymentRequestId or acquirerOrderId
Was this page helpful?