Create a deposit request
curl --request POST \
--url https://api-stg.pandablue.com/v3/deposits \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"amount": 123,
"invoice_id": "<string>",
"currency": "<string>",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"id": "<string>",
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>"
},
"phone": "<string>",
"birth_date": "<string>"
},
"payment_method": "<string>",
"token_requested": "<string>",
"card_identifier": "<string>",
"allow_installments": true,
"sub_merchant_id": 123,
"back_url": "<string>",
"success_url": "<string>",
"error_url": "<string>",
"notification_url": "<string>",
"payment_types": [
"<string>"
],
"request_payer_data_on_validation_failure": true,
"bonus_amount": 123,
"bonus_relative": true,
"strikethrough_price": 123,
"description": "<string>",
"client_ip": "<string>",
"device_id": "<string>",
"language": "<string>",
"logo": "<string>",
"test": true,
"mobile": true,
"expiration": 123,
"early_release": true,
"fee_on_payer": true
}
'import requests
url = "https://api-stg.pandablue.com/v3/deposits"
payload = {
"country": "<string>",
"amount": 123,
"invoice_id": "<string>",
"currency": "<string>",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"id": "<string>",
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>"
},
"phone": "<string>",
"birth_date": "<string>"
},
"payment_method": "<string>",
"token_requested": "<string>",
"card_identifier": "<string>",
"allow_installments": True,
"sub_merchant_id": 123,
"back_url": "<string>",
"success_url": "<string>",
"error_url": "<string>",
"notification_url": "<string>",
"payment_types": ["<string>"],
"request_payer_data_on_validation_failure": True,
"bonus_amount": 123,
"bonus_relative": True,
"strikethrough_price": 123,
"description": "<string>",
"client_ip": "<string>",
"device_id": "<string>",
"language": "<string>",
"logo": "<string>",
"test": True,
"mobile": True,
"expiration": 123,
"early_release": True,
"fee_on_payer": True
}
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
},
body: JSON.stringify({
country: '<string>',
amount: 123,
invoice_id: '<string>',
currency: '<string>',
payer: {
document: '<string>',
document_type: '<string>',
email: '[email protected]',
first_name: '<string>',
last_name: '<string>',
id: '<string>',
address: {street: '<string>', city: '<string>', state: '<string>', zip_code: '<string>'},
phone: '<string>',
birth_date: '<string>'
},
payment_method: '<string>',
token_requested: '<string>',
card_identifier: '<string>',
allow_installments: true,
sub_merchant_id: 123,
back_url: '<string>',
success_url: '<string>',
error_url: '<string>',
notification_url: '<string>',
payment_types: ['<string>'],
request_payer_data_on_validation_failure: true,
bonus_amount: 123,
bonus_relative: true,
strikethrough_price: 123,
description: '<string>',
client_ip: '<string>',
device_id: '<string>',
language: '<string>',
logo: '<string>',
test: true,
mobile: true,
expiration: 123,
early_release: true,
fee_on_payer: true
})
};
fetch('https://api-stg.pandablue.com/v3/deposits', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => '<string>',
'amount' => 123,
'invoice_id' => '<string>',
'currency' => '<string>',
'payer' => [
'document' => '<string>',
'document_type' => '<string>',
'email' => '[email protected]',
'first_name' => '<string>',
'last_name' => '<string>',
'id' => '<string>',
'address' => [
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip_code' => '<string>'
],
'phone' => '<string>',
'birth_date' => '<string>'
],
'payment_method' => '<string>',
'token_requested' => '<string>',
'card_identifier' => '<string>',
'allow_installments' => true,
'sub_merchant_id' => 123,
'back_url' => '<string>',
'success_url' => '<string>',
'error_url' => '<string>',
'notification_url' => '<string>',
'payment_types' => [
'<string>'
],
'request_payer_data_on_validation_failure' => true,
'bonus_amount' => 123,
'bonus_relative' => true,
'strikethrough_price' => 123,
'description' => '<string>',
'client_ip' => '<string>',
'device_id' => '<string>',
'language' => '<string>',
'logo' => '<string>',
'test' => true,
'mobile' => true,
'expiration' => 123,
'early_release' => true,
'fee_on_payer' => true
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-stg.pandablue.com/v3/deposits"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api-stg.pandablue.com/v3/deposits")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v3/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}"
response = http.request(request)
puts response.read_body{
"checkout_type": "<string>",
"redirect_url": "<string>",
"deposit_id": 123,
"user_id": "<string>",
"merchant_invoice_id": "<string>",
"payment_info": {
"type": "<string>",
"payment_method": "<string>",
"payment_method_name": "<string>",
"amount": 123,
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {
"payer_document": "<string>",
"payer_document_type": "<string>",
"reference": "<string>",
"show_terms_conditions": true,
"digitable_line": "<string>",
"qr_code": "<string>"
}
}
}{
"code": 123,
"description": "<string>",
"details": [
"<string>"
]
}Manage payments
Create deposit
Create a deposit request collecting and sending the information needed. We will return you with the information required to create the checkout on your own website or redirect the user to the checkout page .
POST
/
v3
/
deposits
Create a deposit request
curl --request POST \
--url https://api-stg.pandablue.com/v3/deposits \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <x-login>' \
--data '
{
"country": "<string>",
"amount": 123,
"invoice_id": "<string>",
"currency": "<string>",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"id": "<string>",
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>"
},
"phone": "<string>",
"birth_date": "<string>"
},
"payment_method": "<string>",
"token_requested": "<string>",
"card_identifier": "<string>",
"allow_installments": true,
"sub_merchant_id": 123,
"back_url": "<string>",
"success_url": "<string>",
"error_url": "<string>",
"notification_url": "<string>",
"payment_types": [
"<string>"
],
"request_payer_data_on_validation_failure": true,
"bonus_amount": 123,
"bonus_relative": true,
"strikethrough_price": 123,
"description": "<string>",
"client_ip": "<string>",
"device_id": "<string>",
"language": "<string>",
"logo": "<string>",
"test": true,
"mobile": true,
"expiration": 123,
"early_release": true,
"fee_on_payer": true
}
'import requests
url = "https://api-stg.pandablue.com/v3/deposits"
payload = {
"country": "<string>",
"amount": 123,
"invoice_id": "<string>",
"currency": "<string>",
"payer": {
"document": "<string>",
"document_type": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"id": "<string>",
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>"
},
"phone": "<string>",
"birth_date": "<string>"
},
"payment_method": "<string>",
"token_requested": "<string>",
"card_identifier": "<string>",
"allow_installments": True,
"sub_merchant_id": 123,
"back_url": "<string>",
"success_url": "<string>",
"error_url": "<string>",
"notification_url": "<string>",
"payment_types": ["<string>"],
"request_payer_data_on_validation_failure": True,
"bonus_amount": 123,
"bonus_relative": True,
"strikethrough_price": 123,
"description": "<string>",
"client_ip": "<string>",
"device_id": "<string>",
"language": "<string>",
"logo": "<string>",
"test": True,
"mobile": True,
"expiration": 123,
"early_release": True,
"fee_on_payer": True
}
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<x-login>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<x-login>',
Authorization: '<authorization>'
},
body: JSON.stringify({
country: '<string>',
amount: 123,
invoice_id: '<string>',
currency: '<string>',
payer: {
document: '<string>',
document_type: '<string>',
email: '[email protected]',
first_name: '<string>',
last_name: '<string>',
id: '<string>',
address: {street: '<string>', city: '<string>', state: '<string>', zip_code: '<string>'},
phone: '<string>',
birth_date: '<string>'
},
payment_method: '<string>',
token_requested: '<string>',
card_identifier: '<string>',
allow_installments: true,
sub_merchant_id: 123,
back_url: '<string>',
success_url: '<string>',
error_url: '<string>',
notification_url: '<string>',
payment_types: ['<string>'],
request_payer_data_on_validation_failure: true,
bonus_amount: 123,
bonus_relative: true,
strikethrough_price: 123,
description: '<string>',
client_ip: '<string>',
device_id: '<string>',
language: '<string>',
logo: '<string>',
test: true,
mobile: true,
expiration: 123,
early_release: true,
fee_on_payer: true
})
};
fetch('https://api-stg.pandablue.com/v3/deposits', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => '<string>',
'amount' => 123,
'invoice_id' => '<string>',
'currency' => '<string>',
'payer' => [
'document' => '<string>',
'document_type' => '<string>',
'email' => '[email protected]',
'first_name' => '<string>',
'last_name' => '<string>',
'id' => '<string>',
'address' => [
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip_code' => '<string>'
],
'phone' => '<string>',
'birth_date' => '<string>'
],
'payment_method' => '<string>',
'token_requested' => '<string>',
'card_identifier' => '<string>',
'allow_installments' => true,
'sub_merchant_id' => 123,
'back_url' => '<string>',
'success_url' => '<string>',
'error_url' => '<string>',
'notification_url' => '<string>',
'payment_types' => [
'<string>'
],
'request_payer_data_on_validation_failure' => true,
'bonus_amount' => 123,
'bonus_relative' => true,
'strikethrough_price' => 123,
'description' => '<string>',
'client_ip' => '<string>',
'device_id' => '<string>',
'language' => '<string>',
'logo' => '<string>',
'test' => true,
'mobile' => true,
'expiration' => 123,
'early_release' => true,
'fee_on_payer' => true
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-stg.pandablue.com/v3/deposits"
payload := strings.NewReader("{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api-stg.pandablue.com/v3/deposits")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<x-login>")
.header("Authorization", "<authorization>")
.body("{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-stg.pandablue.com/v3/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<x-login>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"country\": \"<string>\",\n \"amount\": 123,\n \"invoice_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"payer\": {\n \"document\": \"<string>\",\n \"document_type\": \"<string>\",\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"id\": \"<string>\",\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip_code\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"birth_date\": \"<string>\"\n },\n \"payment_method\": \"<string>\",\n \"token_requested\": \"<string>\",\n \"card_identifier\": \"<string>\",\n \"allow_installments\": true,\n \"sub_merchant_id\": 123,\n \"back_url\": \"<string>\",\n \"success_url\": \"<string>\",\n \"error_url\": \"<string>\",\n \"notification_url\": \"<string>\",\n \"payment_types\": [\n \"<string>\"\n ],\n \"request_payer_data_on_validation_failure\": true,\n \"bonus_amount\": 123,\n \"bonus_relative\": true,\n \"strikethrough_price\": 123,\n \"description\": \"<string>\",\n \"client_ip\": \"<string>\",\n \"device_id\": \"<string>\",\n \"language\": \"<string>\",\n \"logo\": \"<string>\",\n \"test\": true,\n \"mobile\": true,\n \"expiration\": 123,\n \"early_release\": true,\n \"fee_on_payer\": true\n}"
response = http.request(request)
puts response.read_body{
"checkout_type": "<string>",
"redirect_url": "<string>",
"deposit_id": 123,
"user_id": "<string>",
"merchant_invoice_id": "<string>",
"payment_info": {
"type": "<string>",
"payment_method": "<string>",
"payment_method_name": "<string>",
"amount": 123,
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {
"payer_document": "<string>",
"payer_document_type": "<string>",
"reference": "<string>",
"show_terms_conditions": true,
"digitable_line": "<string>",
"qr_code": "<string>"
}
}
}{
"code": 123,
"description": "<string>",
"details": [
"<string>"
]
}This deposit creation endpoint is used for
- 💳 Credit and debit card deposits with the following integrations:
- ✔️ Fragments all-in-one solution
- ✔️ OneShot redirect
- 💵 Alternative payment methods.
Error codes
For more information regarding error codes, please visit API Codes pageHeaders
Body
application/json
Response
Deposit successfully initiated. The response structure varies based on the checkout type (e.g., HOSTED or ONE_SHOT).
- Option 1
- Option 2
Response structure for a successfully initiated deposit with a ONE_SHOT checkout type, including payment information.