List all orders
curl --request GET \
--url https://api.kyrenpay.com/v1/orders \
--header 'x-api-key: <api-key>'import requests
url = "https://api.kyrenpay.com/v1/orders"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.kyrenpay.com/v1/orders', 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.kyrenpay.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-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://api.kyrenpay.com/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-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://api.kyrenpay.com/v1/orders")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"items": [
{
"id": "order_def456",
"productId": "prod_abc123",
"customerEmail": "customer@example.com",
"customerName": null,
"amount": "9.99",
"currency": "USD",
"platformFeeRate": "0.04",
"platformFee": "0.40",
"netAmount": "9.59",
"settledAmount": "9.59",
"settledCurrency": "USD",
"exchangeRate": "1",
"hkdExchangeRate": null,
"paymentMethod": "CREDIT_CARD",
"status": "PAID",
"paidAt": 1736932500000,
"settledAt": null,
"metadata": {
"userId": "user_456"
},
"createdAt": 1736932200000
}
],
"pagination": {
"page": 1,
"size": 20,
"total": 1,
"totalPages": 1
}
}
}{
"code": 42901,
"message": "Too many requests"
}Orders
List all orders
Returns a paginated list of your orders. An order may exist before payment completes; use its status to decide whether to fulfill.
GET
/
v1
/
orders
List all orders
curl --request GET \
--url https://api.kyrenpay.com/v1/orders \
--header 'x-api-key: <api-key>'import requests
url = "https://api.kyrenpay.com/v1/orders"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.kyrenpay.com/v1/orders', 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.kyrenpay.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-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://api.kyrenpay.com/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-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://api.kyrenpay.com/v1/orders")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kyrenpay.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"items": [
{
"id": "order_def456",
"productId": "prod_abc123",
"customerEmail": "customer@example.com",
"customerName": null,
"amount": "9.99",
"currency": "USD",
"platformFeeRate": "0.04",
"platformFee": "0.40",
"netAmount": "9.59",
"settledAmount": "9.59",
"settledCurrency": "USD",
"exchangeRate": "1",
"hkdExchangeRate": null,
"paymentMethod": "CREDIT_CARD",
"status": "PAID",
"paidAt": 1736932500000,
"settledAt": null,
"metadata": {
"userId": "user_456"
},
"createdAt": 1736932200000
}
],
"pagination": {
"page": 1,
"size": 20,
"total": 1,
"totalPages": 1
}
}
}{
"code": 42901,
"message": "Too many requests"
}Authorizations
Query Parameters
Filter by order status
CREATING— Order is being created while waiting for gateway resultPENDING— Order created, awaiting payment confirmationPAID— Payment confirmedSETTLED— Funds settled to merchant balanceREFUNDED— Order has been refundedDISPUTED— Order is under disputeCHARGEBACK— Card payment was charged backFAILED— Payment failedCLOSED— Order closed (expired or unpaid)REVOKED— Order has been revoked
Available options:
CREATING, PENDING, PAID, SETTLED, REFUNDED, DISPUTED, CHARGEBACK, FAILED, CLOSED, REVOKED 