Get deposit + payment state (poll until confirmed)
curl --request GET \
--url https://api.wizzgift.com/b2b/deposits/{depositId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/b2b/deposits/{depositId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/b2b/deposits/{depositId}"
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/deposits/{depositId}",
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;
}{
"deposit": {
"depositId": "depb_a8Xk2mQ9pL1r",
"amount": 123,
"currency": "USD",
"paymentCurrency": "<string>",
"status": "pending",
"expiresAt": 1753142400000,
"createdAt": 1753142400000,
"userId": "<string>",
"email": "<string>",
"confirmedAt": 1753142400000,
"updatedAt": 1753142400000
},
"paymentState": {
"state": "pending",
"confirmedAmount": 123,
"totalAmount": 123,
"currency": "<string>",
"payments": [
{
"paymentId": "<string>",
"method": "Bitcoin",
"amount": 123,
"status": "pending",
"createdAt": 1753142400000,
"confirmedAt": 1753142400000,
"partialPayment": {
"sentAmount": 123,
"expectedAmount": 123,
"currency": "<string>"
}
}
]
},
"availablePaymentMethods": [
{
"id": "<string>",
"name": "Bitcoin",
"type": "<string>",
"status": "active",
"description": "<string>",
"instructions": "<string>",
"imageUrl": "<string>",
"ranking": 123,
"feeInfo": "<string>",
"minAmountUSD": 123,
"tag": "Recommended",
"tagColor": "<string>",
"tagTextColor": "<string>",
"network": "Bitcoin",
"identifier": "<string>",
"symbol": "BTC",
"coinImageUrl": "<string>",
"memoRequired": true,
"refundable": true,
"minRefundAmountUSD": 123,
"refundDescription": "<string>",
"refundNotes": "<string>"
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "NOT_FOUND",
"message": "Checkout not found"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}B2B · Deposits
Get deposit + payment state (poll until confirmed)
GET
/
b2b
/
deposits
/
{depositId}
Get deposit + payment state (poll until confirmed)
curl --request GET \
--url https://api.wizzgift.com/b2b/deposits/{depositId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/b2b/deposits/{depositId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/b2b/deposits/{depositId}"
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/deposits/{depositId}",
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;
}{
"deposit": {
"depositId": "depb_a8Xk2mQ9pL1r",
"amount": 123,
"currency": "USD",
"paymentCurrency": "<string>",
"status": "pending",
"expiresAt": 1753142400000,
"createdAt": 1753142400000,
"userId": "<string>",
"email": "<string>",
"confirmedAt": 1753142400000,
"updatedAt": 1753142400000
},
"paymentState": {
"state": "pending",
"confirmedAmount": 123,
"totalAmount": 123,
"currency": "<string>",
"payments": [
{
"paymentId": "<string>",
"method": "Bitcoin",
"amount": 123,
"status": "pending",
"createdAt": 1753142400000,
"confirmedAt": 1753142400000,
"partialPayment": {
"sentAmount": 123,
"expectedAmount": 123,
"currency": "<string>"
}
}
]
},
"availablePaymentMethods": [
{
"id": "<string>",
"name": "Bitcoin",
"type": "<string>",
"status": "active",
"description": "<string>",
"instructions": "<string>",
"imageUrl": "<string>",
"ranking": 123,
"feeInfo": "<string>",
"minAmountUSD": 123,
"tag": "Recommended",
"tagColor": "<string>",
"tagTextColor": "<string>",
"network": "Bitcoin",
"identifier": "<string>",
"symbol": "BTC",
"coinImageUrl": "<string>",
"memoRequired": true,
"refundable": true,
"minRefundAmountUSD": 123,
"refundDescription": "<string>",
"refundNotes": "<string>"
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"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
Deposit id (depb_…; older deposits may use dep_…).
Pattern:
^dep[br]?_Response
Deposit detail. paymentState is null until a payment exists. availablePaymentMethods is present only while the deposit is still pending.
⌘I