Get order status, fulfillment details and card codes
curl --request GET \
--url https://api.wizzgift.com/b2b/orders/{checkoutId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/b2b/orders/{checkoutId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/b2b/orders/{checkoutId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/b2b/orders/{checkoutId}",
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;
}{
"checkoutId": "<string>",
"status": "pending",
"totalAmount": 123,
"paymentCurrency": "<string>",
"items": [
{
"id": "<string>",
"productId": "<string>",
"productName": "<string>",
"unitAmount": 123,
"unitPrice": 123,
"costCurrency": "<string>",
"quantity": 123,
"status": "pending",
"fulfillments": [
{
"index": 123,
"status": "<string>",
"cardCode": "<string>",
"cardPin": "<string>",
"cardUrl": "<string>",
"vendorOrderId": "<string>",
"TxId": "<string>",
"errorMessage": "<string>",
"fulfilledAt": 1753142400000
}
]
}
],
"createdAt": 1753142400000,
"externalRef": "<string>",
"appliedDiscountPercent": 123,
"completedAt": 1753142400000
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "FORBIDDEN",
"message": "Retailer API access is disabled for this account"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "NOT_FOUND",
"message": "Checkout not found"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}B2B · Orders
Get order status, fulfillment details and card codes
Poll this after creating an order. When status is completed (or
partial), read codes from items[].fulfillments[]. Vendor errors are
mapped to customer-safe messages. Orders belonging to another account
(or to the retailer surface) return 404.
GET
/
b2b
/
orders
/
{checkoutId}
Get order status, fulfillment details and card codes
curl --request GET \
--url https://api.wizzgift.com/b2b/orders/{checkoutId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/b2b/orders/{checkoutId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/b2b/orders/{checkoutId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/b2b/orders/{checkoutId}",
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;
}{
"checkoutId": "<string>",
"status": "pending",
"totalAmount": 123,
"paymentCurrency": "<string>",
"items": [
{
"id": "<string>",
"productId": "<string>",
"productName": "<string>",
"unitAmount": 123,
"unitPrice": 123,
"costCurrency": "<string>",
"quantity": 123,
"status": "pending",
"fulfillments": [
{
"index": 123,
"status": "<string>",
"cardCode": "<string>",
"cardPin": "<string>",
"cardUrl": "<string>",
"vendorOrderId": "<string>",
"TxId": "<string>",
"errorMessage": "<string>",
"fulfilledAt": 1753142400000
}
]
}
],
"createdAt": 1753142400000,
"externalRef": "<string>",
"appliedDiscountPercent": 123,
"completedAt": 1753142400000
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "FORBIDDEN",
"message": "Retailer API access is disabled for this account"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "NOT_FOUND",
"message": "Checkout not found"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Authorizations
API key (wg_live_…) created in the dashboard (Account → API Keys).
Shown once at creation; only a hash is stored server-side.
Path Parameters
Checkout/order id.
Response
Order with per-unit fulfillment results.
Order lifecycle. partial = some items fulfilled, some failed. expired = never paid.
Available options:
pending, processing, completed, partial, failed, expired Total charged to your balance, in paymentCurrency.
Show child attributes
Show child attributes
Unix timestamp in milliseconds (UTC).
Example:
1753142400000
Your negotiated discount applied to this order.
Unix timestamp in milliseconds (UTC).
Example:
1753142400000