List orders (provider)
curl --request GET \
--url https://api.paycrest.io/v1/provider/orders \
--header 'API-Key: <api-key>'import requests
url = "https://api.paycrest.io/v1/provider/orders"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.paycrest.io/v1/provider/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.paycrest.io/v1/provider/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 => [
"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.paycrest.io/v1/provider/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.paycrest.io/v1/provider/orders")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paycrest.io/v1/provider/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Operation successful",
"data": {
"total": 123,
"page": 123,
"pageSize": 123,
"orders": [
{
"id": "<string>",
"token": "<string>",
"gatewayId": "<string>",
"amount": "<string>",
"amountInUsd": "<string>",
"rate": "<string>",
"blockNumber": 123,
"txHash": "<string>",
"institution": "<string>",
"accountIdentifier": "<string>",
"accountName": "<string>",
"providerId": "<string>",
"memo": "<string>",
"network": "ethereum",
"orderType": "<string>",
"status": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"transactionLogs": [
{
"id": "<string>",
"gateway_id": "<string>",
"status": "<string>",
"tx_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"cancellationReasons": [
"<string>"
]
}
]
}
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}Provider
List Orders
Returns the orders assigned to the authenticated provider.
Search. search matches the order ID, account number or account name. A numeric term such as 1500
or 1,500.50 also matches the crypto amount or the fiat amount (to 2 decimal places). Search ignores the
other filters.
Search pagination is opt-in. Without page, pageSize or limit, a search returns every match in
one response, and returns 400 when more than 10,000 orders match. Send any of them to get one page
instead (pageSize default 10, max 100), with total counting every match.
GET
/
provider
/
orders
List orders (provider)
curl --request GET \
--url https://api.paycrest.io/v1/provider/orders \
--header 'API-Key: <api-key>'import requests
url = "https://api.paycrest.io/v1/provider/orders"
headers = {"API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-Key': '<api-key>'}};
fetch('https://api.paycrest.io/v1/provider/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.paycrest.io/v1/provider/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 => [
"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.paycrest.io/v1/provider/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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.paycrest.io/v1/provider/orders")
.header("API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paycrest.io/v1/provider/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Operation successful",
"data": {
"total": 123,
"page": 123,
"pageSize": 123,
"orders": [
{
"id": "<string>",
"token": "<string>",
"gatewayId": "<string>",
"amount": "<string>",
"amountInUsd": "<string>",
"rate": "<string>",
"blockNumber": 123,
"txHash": "<string>",
"institution": "<string>",
"accountIdentifier": "<string>",
"accountName": "<string>",
"providerId": "<string>",
"memo": "<string>",
"network": "ethereum",
"orderType": "<string>",
"status": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"transactionLogs": [
{
"id": "<string>",
"gateway_id": "<string>",
"status": "<string>",
"tx_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"cancellationReasons": [
"<string>"
]
}
]
}
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"status": "error",
"message": "Error message",
"data": [
{
"field": "<string>",
"message": "<string>"
}
]
}Retrieve a list of orders assigned to the provider.