Get Order Customer Info
curl --request GET \
--url https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info \
--header 'Partner-App-Key: <partner-app-key>'import requests
url = "https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info"
headers = {"Partner-App-Key": "<partner-app-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Partner-App-Key': '<partner-app-key>'}};
fetch('https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info', 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://pay-api.holdstation.com/partners/orders/{order_id}/customer-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Partner-App-Key: <partner-app-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Partner-App-Key", "<partner-app-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info")
.header("Partner-App-Key", "<partner-app-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Partner-App-Key"] = '<partner-app-key>'
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"success": true,
"code": 0,
"error": "",
"customer_info": {
"customer_account": "1234****7890",
"customer_bank_code": "970423",
"customer_name": "NGUYEN VAN A"
}
}
}
{
"message": "success",
"data": {
"success": false,
"code": 3,
"error": "customer info not yet available",
"customer_info": null
}
}
{
"message": "success",
"data": {
"success": false,
"code": 2,
"error": "provider does not return customer info",
"customer_info": null
}
}
Orders
Get Order Customer Info
Retrieve the customer (sender) information associated with an onramp order.
GET
/
partners
/
orders
/
{order_id}
/
customer-info
Get Order Customer Info
curl --request GET \
--url https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info \
--header 'Partner-App-Key: <partner-app-key>'import requests
url = "https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info"
headers = {"Partner-App-Key": "<partner-app-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Partner-App-Key': '<partner-app-key>'}};
fetch('https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info', 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://pay-api.holdstation.com/partners/orders/{order_id}/customer-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Partner-App-Key: <partner-app-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Partner-App-Key", "<partner-app-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info")
.header("Partner-App-Key", "<partner-app-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pay-api.holdstation.com/partners/orders/{order_id}/customer-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Partner-App-Key"] = '<partner-app-key>'
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"success": true,
"code": 0,
"error": "",
"customer_info": {
"customer_account": "1234****7890",
"customer_bank_code": "970423",
"customer_name": "NGUYEN VAN A"
}
}
}
{
"message": "success",
"data": {
"success": false,
"code": 3,
"error": "customer info not yet available",
"customer_info": null
}
}
{
"message": "success",
"data": {
"success": false,
"code": 2,
"error": "provider does not return customer info",
"customer_info": null
}
}
Retrieve the customer (sender) information associated with an onramp order. The response includes the masked bank account number, bank code, and name of the sender as provided by the payment provider during the fiat deposit callback.
This endpoint is only meaningful for onramp orders that have received a fiat deposit callback. If the provider does not return customer info, or if the callback has not yet arrived, the response indicates the reason via the
code field.
Authentication
Your partner app key.
Path Parameters
The UUID of the order.
Response Codes
code | Name | Meaning |
|---|---|---|
0 | SUCCESS | customer_info is populated. |
2 | NOT_SUPPORTED | The payment provider for this order does not return customer info. |
3 | NOT_AVAILABLE | The fiat deposit callback has not yet been received; try again later. |
{
"message": "success",
"data": {
"success": true,
"code": 0,
"error": "",
"customer_info": {
"customer_account": "1234****7890",
"customer_bank_code": "970423",
"customer_name": "NGUYEN VAN A"
}
}
}
{
"message": "success",
"data": {
"success": false,
"code": 3,
"error": "customer info not yet available",
"customer_info": null
}
}
{
"message": "success",
"data": {
"success": false,
"code": 2,
"error": "provider does not return customer info",
"customer_info": null
}
}
⌘I