Query Order
curl --request GET \
--url https://gateway.paybyrd.com/api/v2/orders/{orderId} \
--header 'x-api-key: <api-key>'import requests
url = "https://gateway.paybyrd.com/api/v2/orders/{orderId}"
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://gateway.paybyrd.com/api/v2/orders/{orderId}', 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://gateway.paybyrd.com/api/v2/orders/{orderId}",
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://gateway.paybyrd.com/api/v2/orders/{orderId}"
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://gateway.paybyrd.com/api/v2/orders/{orderId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.paybyrd.com/api/v2/orders/{orderId}")
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{
"orderId": "63a8a157-81c9-46ea-84b4-2bef6daad3fa",
"orderDate": "2021-08-24T17:45:27Z",
"expiresAt": "2021-08-25T17:45:27Z",
"status": "paid",
"isoAmount": 5000,
"currency": "EUR",
"orderRef": "ABC123456",
"shopper": {
"shopperId": "676b5023-9624-4d19-bdd2-c61b1be803b7",
"firstName": "JHOSH",
"lastName": "JONES",
"email": "jhoshjs@dominio.com",
"phoneCountryCode": 351,
"phoneNumber": "123123123",
"ip": "111.111.111.111"
},
"shoppingCart": [
{
"description": "Product",
"amount": 2500,
"categories": [
"Category 1",
"Category 2"
],
"shipping": {
"shippingMethod": "STD"
},
"type": "Product",
"imageUrl": "https://cdn.merchant.com/products/ticket.png"
}
],
"orderOptions": {
"redirectUrl": "https://your-site-url/payment-finished",
"culture": "en-US",
"checkoutVersion": 2,
"expiresIn": "00:15:00"
},
"paymentOptions": {
"maxAttempts": 1,
"sessionExpiresIn": "00:10:00",
"allowedPaymentMethods": [
"CARD",
"SIBS_MULTIBANCO",
"SEPA",
"IDEAL",
"MBWAY"
],
"cardOptions": {
"isPreAuth": false
},
"tokenOptions": {
"customReference": "ABC123456",
"tokenizationIsRequired": false,
"tokenizationMethod": "cardOnFile"
}
},
"index": 1,
"transactions": {
"currency": "AOA",
"orderRef": "AMZ1962",
"brand": "MULTICAIXAEXPRESS",
"operationType": "Payment",
"status": "Success",
"createdDate": "2021-05-31T22:01:57Z",
"transactionDate": "2021-05-31T22:01:57Z",
"initiatedFrom": "HostedForm",
"personId": 10,
"index": 2,
"externalSessionIdentifier": "20c7c4b3-95cc-4ead-aa0b-918b634df05a,",
"externalTransactionIdentifier": "430f4c76-4eb8-40e0-bc80-562b2960a83f,",
"externalCustomIdentifier": "c9a625d4-d968-47a0-b237-e5d4f31dfcd4",
"transactionId": "c9a625d4-d968-47a0-b237-e5d4f31dfcd4",
"amount": "300.10",
"multicaixaExpress": {
"deeplink": "mcxwallet://purchase?qrref=000201010212260700032205203742530497325406300.105802AO5908ProxyPay6006Luanda61081000-10062430532fe4eeddd078343c391d6d10721233a3207034446304F577",
"deeplinkRedirect": "https://api.sandbox.proxypay.co.ao/deeplink/LTvDt6U2WiFU0Ds_TScsbSbULbbCIbB2zrZsAS3r96hqDKVFMDAwMjAxMDEwMjEyMjYwNzAwMDMyMjA1MjAzNzQyNTMwNDk3MzI1NDA2MzAwLjEwNTgwMkFPNTkwOFByb3h5UGF5NjAwNkx1YW5kYTYxMDgxMDAwLTEwMDYyNDMwNTMyZmU0ZWVkZGQwNzgzNDNjMzkxZDZkMTA3MjEyMzNhMzIwNzAzNDQ0NjMwNEY1Nzc=",
"qrCodeUrl": "https://api.sandbox.proxypay.co.ao/qrcode/LTvDt6U2WiFU0Ds_TScsbSbULbbCIbB2zrZsAS3r96hqDKVFMDAwMjAxMDEwMjEyMjYwNzAwMDMyMjA1MjAzNzQyNTMwNDk3MzI1NDA2MzAwLjEwNTgwMkFPNTkwOFByb3h5UGF5NjAwNkx1YW5kYTYxMDgxMDAwLTEwMDYyNDMwNTMyZmU0ZWVkZGQwNzgzNDNjMzkxZDZkMTA3MjEyMzNhMzIwNzAzNDQ0NjMwNEY1Nzc=",
"expiresAt": "2026-05-19T18:00:37"
}
}
}Orders
Query Order
Query order data by order id
GET
/
api
/
v2
/
orders
/
{orderId}
Query Order
curl --request GET \
--url https://gateway.paybyrd.com/api/v2/orders/{orderId} \
--header 'x-api-key: <api-key>'import requests
url = "https://gateway.paybyrd.com/api/v2/orders/{orderId}"
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://gateway.paybyrd.com/api/v2/orders/{orderId}', 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://gateway.paybyrd.com/api/v2/orders/{orderId}",
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://gateway.paybyrd.com/api/v2/orders/{orderId}"
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://gateway.paybyrd.com/api/v2/orders/{orderId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.paybyrd.com/api/v2/orders/{orderId}")
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{
"orderId": "63a8a157-81c9-46ea-84b4-2bef6daad3fa",
"orderDate": "2021-08-24T17:45:27Z",
"expiresAt": "2021-08-25T17:45:27Z",
"status": "paid",
"isoAmount": 5000,
"currency": "EUR",
"orderRef": "ABC123456",
"shopper": {
"shopperId": "676b5023-9624-4d19-bdd2-c61b1be803b7",
"firstName": "JHOSH",
"lastName": "JONES",
"email": "jhoshjs@dominio.com",
"phoneCountryCode": 351,
"phoneNumber": "123123123",
"ip": "111.111.111.111"
},
"shoppingCart": [
{
"description": "Product",
"amount": 2500,
"categories": [
"Category 1",
"Category 2"
],
"shipping": {
"shippingMethod": "STD"
},
"type": "Product",
"imageUrl": "https://cdn.merchant.com/products/ticket.png"
}
],
"orderOptions": {
"redirectUrl": "https://your-site-url/payment-finished",
"culture": "en-US",
"checkoutVersion": 2,
"expiresIn": "00:15:00"
},
"paymentOptions": {
"maxAttempts": 1,
"sessionExpiresIn": "00:10:00",
"allowedPaymentMethods": [
"CARD",
"SIBS_MULTIBANCO",
"SEPA",
"IDEAL",
"MBWAY"
],
"cardOptions": {
"isPreAuth": false
},
"tokenOptions": {
"customReference": "ABC123456",
"tokenizationIsRequired": false,
"tokenizationMethod": "cardOnFile"
}
},
"index": 1,
"transactions": {
"currency": "AOA",
"orderRef": "AMZ1962",
"brand": "MULTICAIXAEXPRESS",
"operationType": "Payment",
"status": "Success",
"createdDate": "2021-05-31T22:01:57Z",
"transactionDate": "2021-05-31T22:01:57Z",
"initiatedFrom": "HostedForm",
"personId": 10,
"index": 2,
"externalSessionIdentifier": "20c7c4b3-95cc-4ead-aa0b-918b634df05a,",
"externalTransactionIdentifier": "430f4c76-4eb8-40e0-bc80-562b2960a83f,",
"externalCustomIdentifier": "c9a625d4-d968-47a0-b237-e5d4f31dfcd4",
"transactionId": "c9a625d4-d968-47a0-b237-e5d4f31dfcd4",
"amount": "300.10",
"multicaixaExpress": {
"deeplink": "mcxwallet://purchase?qrref=000201010212260700032205203742530497325406300.105802AO5908ProxyPay6006Luanda61081000-10062430532fe4eeddd078343c391d6d10721233a3207034446304F577",
"deeplinkRedirect": "https://api.sandbox.proxypay.co.ao/deeplink/LTvDt6U2WiFU0Ds_TScsbSbULbbCIbB2zrZsAS3r96hqDKVFMDAwMjAxMDEwMjEyMjYwNzAwMDMyMjA1MjAzNzQyNTMwNDk3MzI1NDA2MzAwLjEwNTgwMkFPNTkwOFByb3h5UGF5NjAwNkx1YW5kYTYxMDgxMDAwLTEwMDYyNDMwNTMyZmU0ZWVkZGQwNzgzNDNjMzkxZDZkMTA3MjEyMzNhMzIwNzAzNDQ0NjMwNEY1Nzc=",
"qrCodeUrl": "https://api.sandbox.proxypay.co.ao/qrcode/LTvDt6U2WiFU0Ds_TScsbSbULbbCIbB2zrZsAS3r96hqDKVFMDAwMjAxMDEwMjEyMjYwNzAwMDMyMjA1MjAzNzQyNTMwNDk3MzI1NDA2MzAwLjEwNTgwMkFPNTkwOFByb3h5UGF5NjAwNkx1YW5kYTYxMDgxMDAwLTEwMDYyNDMwNTMyZmU0ZWVkZGQwNzgzNDNjMzkxZDZkMTA3MjEyMzNhMzIwNzAzNDQ0NjMwNEY1Nzc=",
"expiresAt": "2026-05-19T18:00:37"
}
}
}Response
200 - application/json
200
Represents the status of the order. Created - Order has no payments associated to it or all payment attempts have failed. Pending - Order has a payment associated to it which is in progress but not concluded. Paid - Order has a payment associated to it with final status 'Success'. Canceled - This status can occur by system routines, shopper action by clicking on 'cancel payment' button in the hosted page or by calling the order cancel endpoint. Expired - This status occurs by system routines that checks for payment abandonment or in case an expiration date is sent in the create order request. Refunded - In case a successful payment is refunded, its order will have the 'Refunded' status.
Available options:
created, paid, pending, refunded, canceled, expired Example:
"created"

