Retrieve Deposit Status
curl --request GET \
--url https://api-stg.pandablue.com/v3/deposits/{deposit_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>'import requests
url = "https://api-stg.pandablue.com/v3/deposits/{deposit_id}"
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
}
};
fetch('https://api-stg.pandablue.com/v3/deposits/{deposit_id}', 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-stg.pandablue.com/v3/deposits/{deposit_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"X-Date: <x-date>",
"X-Login: <x-login>"
],
]);
$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-stg.pandablue.com/v3/deposits/{deposit_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
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-stg.pandablue.com/v3/deposits/{deposit_id}")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v3/deposits/{deposit_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"deposit_id": 123,
"subscription_id": 123,
"invoice_id": "<string>",
"country": "<string>",
"currency": "<string>",
"local_amount": 123,
"usd_amount": 123,
"amount": 123,
"bonus_amount": 123,
"bonus_relative": true,
"payment_method": "<string>",
"payment_type": "<string>",
"status": "COMPLETED",
"status_reason": "THIRD_PARTY_PAYER",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"address": {
"city": "<string>",
"state": "<string>",
"street": "<string>",
"zip_code": "<string>"
}
},
"fee_amount": 123,
"fee_currency": "<string>",
"refunded": true,
"current_payer_verification": "MATCH",
"card_detail": {
"card_holder": "<string>",
"brand": "<string>",
"masked_card": "<string>",
"expiration": "<string>",
"card_type": "CREDIT",
"transaction_result": "<string>"
},
"financial_institution": {
"name": "<string>",
"bank_code": "<string>",
"tax_identifier": "<string>"
},
"bank_account": {
"bank_code": "<string>",
"account_number": "<string>",
"bank_branch": "<string>",
"ispb_code": 123,
"bank_name": "<string>",
"account_type": "<string>"
},
"completed_payment_method_code": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}Manage payments
Get deposit status
Retrieve the status of a previously created deposit. This endpoint allows you to retrieve the status of a deposit request.
GET
/
deposits
/
{deposit_id}
Retrieve Deposit Status
curl --request GET \
--url https://api-stg.pandablue.com/v3/deposits/{deposit_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>'import requests
url = "https://api-stg.pandablue.com/v3/deposits/{deposit_id}"
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
}
};
fetch('https://api-stg.pandablue.com/v3/deposits/{deposit_id}', 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-stg.pandablue.com/v3/deposits/{deposit_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"X-Date: <x-date>",
"X-Login: <x-login>"
],
]);
$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-stg.pandablue.com/v3/deposits/{deposit_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<x-login>")
req.Header.Add("Authorization", "<authorization>")
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-stg.pandablue.com/v3/deposits/{deposit_id}")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v3/deposits/{deposit_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"deposit_id": 123,
"subscription_id": 123,
"invoice_id": "<string>",
"country": "<string>",
"currency": "<string>",
"local_amount": 123,
"usd_amount": 123,
"amount": 123,
"bonus_amount": 123,
"bonus_relative": true,
"payment_method": "<string>",
"payment_type": "<string>",
"status": "COMPLETED",
"status_reason": "THIRD_PARTY_PAYER",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"address": {
"city": "<string>",
"state": "<string>",
"street": "<string>",
"zip_code": "<string>"
}
},
"fee_amount": 123,
"fee_currency": "<string>",
"refunded": true,
"current_payer_verification": "MATCH",
"card_detail": {
"card_holder": "<string>",
"brand": "<string>",
"masked_card": "<string>",
"expiration": "<string>",
"card_type": "CREDIT",
"transaction_result": "<string>"
},
"financial_institution": {
"name": "<string>",
"bank_code": "<string>",
"tax_identifier": "<string>"
},
"bank_account": {
"bank_code": "<string>",
"account_number": "<string>",
"bank_branch": "<string>",
"ispb_code": 123,
"bank_name": "<string>",
"account_type": "<string>"
},
"completed_payment_method_code": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
}
}Headers
Path Parameters
Response
Deposit status cancelled