cURL
curl --request POST \
--url https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees \
--header 'Content-Type: application/json' \
--data '
{
"fee_id": "<string>",
"settlement_currency": "<string>",
"created": "<string>",
"fee_details": {
"fee_name": "<string>",
"fee_category": "<string>",
"interchange_qualification": "<string>"
},
"fee_amount_details": {
"fee_amount": 1,
"unit_quantity": 1,
"unit_fee": 1,
"unit_volume": 1,
"percent_rate": 50
},
"transaction_details": {
"presentment_currency": "<string>",
"amount": 1
},
"pagos_codes": {},
"payment_method_details": {
"payment_method_type": "<string>",
"card": {
"attributes": {
"network": "<string>",
"type": "<string>"
}
}
},
"additional_data": {
"merchant_account_id": "<string>",
"metadata": {}
}
}
'import requests
url = "https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees"
payload = {
"fee_id": "<string>",
"settlement_currency": "<string>",
"created": "<string>",
"fee_details": {
"fee_name": "<string>",
"fee_category": "<string>",
"interchange_qualification": "<string>"
},
"fee_amount_details": {
"fee_amount": 1,
"unit_quantity": 1,
"unit_fee": 1,
"unit_volume": 1,
"percent_rate": 50
},
"transaction_details": {
"presentment_currency": "<string>",
"amount": 1
},
"pagos_codes": {},
"payment_method_details": {
"payment_method_type": "<string>",
"card": { "attributes": {
"network": "<string>",
"type": "<string>"
} }
},
"additional_data": {
"merchant_account_id": "<string>",
"metadata": {}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
fee_id: '<string>',
settlement_currency: '<string>',
created: '<string>',
fee_details: {
fee_name: '<string>',
fee_category: '<string>',
interchange_qualification: '<string>'
},
fee_amount_details: {fee_amount: 1, unit_quantity: 1, unit_fee: 1, unit_volume: 1, percent_rate: 50},
transaction_details: {presentment_currency: '<string>', amount: 1},
pagos_codes: {},
payment_method_details: {
payment_method_type: '<string>',
card: {attributes: {network: '<string>', type: '<string>'}}
},
additional_data: {merchant_account_id: '<string>', metadata: {}}
})
};
fetch('https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees', 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.sandbox.nest.pagosapi.com/v1/{account_id}/fees",
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([
'fee_id' => '<string>',
'settlement_currency' => '<string>',
'created' => '<string>',
'fee_details' => [
'fee_name' => '<string>',
'fee_category' => '<string>',
'interchange_qualification' => '<string>'
],
'fee_amount_details' => [
'fee_amount' => 1,
'unit_quantity' => 1,
'unit_fee' => 1,
'unit_volume' => 1,
'percent_rate' => 50
],
'transaction_details' => [
'presentment_currency' => '<string>',
'amount' => 1
],
'pagos_codes' => [
],
'payment_method_details' => [
'payment_method_type' => '<string>',
'card' => [
'attributes' => [
'network' => '<string>',
'type' => '<string>'
]
]
],
'additional_data' => [
'merchant_account_id' => '<string>',
'metadata' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.sandbox.nest.pagosapi.com/v1/{account_id}/fees"
payload := strings.NewReader("{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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.sandbox.nest.pagosapi.com/v1/{account_id}/fees")
.header("Content-Type", "application/json")
.body("{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_bodyData Ingestion
Fees
POST
/
v1
/
{account_id}
/
fees
cURL
curl --request POST \
--url https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees \
--header 'Content-Type: application/json' \
--data '
{
"fee_id": "<string>",
"settlement_currency": "<string>",
"created": "<string>",
"fee_details": {
"fee_name": "<string>",
"fee_category": "<string>",
"interchange_qualification": "<string>"
},
"fee_amount_details": {
"fee_amount": 1,
"unit_quantity": 1,
"unit_fee": 1,
"unit_volume": 1,
"percent_rate": 50
},
"transaction_details": {
"presentment_currency": "<string>",
"amount": 1
},
"pagos_codes": {},
"payment_method_details": {
"payment_method_type": "<string>",
"card": {
"attributes": {
"network": "<string>",
"type": "<string>"
}
}
},
"additional_data": {
"merchant_account_id": "<string>",
"metadata": {}
}
}
'import requests
url = "https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees"
payload = {
"fee_id": "<string>",
"settlement_currency": "<string>",
"created": "<string>",
"fee_details": {
"fee_name": "<string>",
"fee_category": "<string>",
"interchange_qualification": "<string>"
},
"fee_amount_details": {
"fee_amount": 1,
"unit_quantity": 1,
"unit_fee": 1,
"unit_volume": 1,
"percent_rate": 50
},
"transaction_details": {
"presentment_currency": "<string>",
"amount": 1
},
"pagos_codes": {},
"payment_method_details": {
"payment_method_type": "<string>",
"card": { "attributes": {
"network": "<string>",
"type": "<string>"
} }
},
"additional_data": {
"merchant_account_id": "<string>",
"metadata": {}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
fee_id: '<string>',
settlement_currency: '<string>',
created: '<string>',
fee_details: {
fee_name: '<string>',
fee_category: '<string>',
interchange_qualification: '<string>'
},
fee_amount_details: {fee_amount: 1, unit_quantity: 1, unit_fee: 1, unit_volume: 1, percent_rate: 50},
transaction_details: {presentment_currency: '<string>', amount: 1},
pagos_codes: {},
payment_method_details: {
payment_method_type: '<string>',
card: {attributes: {network: '<string>', type: '<string>'}}
},
additional_data: {merchant_account_id: '<string>', metadata: {}}
})
};
fetch('https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees', 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.sandbox.nest.pagosapi.com/v1/{account_id}/fees",
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([
'fee_id' => '<string>',
'settlement_currency' => '<string>',
'created' => '<string>',
'fee_details' => [
'fee_name' => '<string>',
'fee_category' => '<string>',
'interchange_qualification' => '<string>'
],
'fee_amount_details' => [
'fee_amount' => 1,
'unit_quantity' => 1,
'unit_fee' => 1,
'unit_volume' => 1,
'percent_rate' => 50
],
'transaction_details' => [
'presentment_currency' => '<string>',
'amount' => 1
],
'pagos_codes' => [
],
'payment_method_details' => [
'payment_method_type' => '<string>',
'card' => [
'attributes' => [
'network' => '<string>',
'type' => '<string>'
]
]
],
'additional_data' => [
'merchant_account_id' => '<string>',
'metadata' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.sandbox.nest.pagosapi.com/v1/{account_id}/fees"
payload := strings.NewReader("{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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.sandbox.nest.pagosapi.com/v1/{account_id}/fees")
.header("Content-Type", "application/json")
.body("{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nest.pagosapi.com/v1/{account_id}/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"fee_id\": \"<string>\",\n \"settlement_currency\": \"<string>\",\n \"created\": \"<string>\",\n \"fee_details\": {\n \"fee_name\": \"<string>\",\n \"fee_category\": \"<string>\",\n \"interchange_qualification\": \"<string>\"\n },\n \"fee_amount_details\": {\n \"fee_amount\": 1,\n \"unit_quantity\": 1,\n \"unit_fee\": 1,\n \"unit_volume\": 1,\n \"percent_rate\": 50\n },\n \"transaction_details\": {\n \"presentment_currency\": \"<string>\",\n \"amount\": 1\n },\n \"pagos_codes\": {},\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"card\": {\n \"attributes\": {\n \"network\": \"<string>\",\n \"type\": \"<string>\"\n }\n }\n },\n \"additional_data\": {\n \"merchant_account_id\": \"<string>\",\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_bodyPath Parameters
Body
application/json
A unique value that identifies the fee. Maximum 255 characters.
Required string length:
1 - 255The settlement currency of the fee, represented by the 3-letter ISO-4217 currency code. Must be three characters.
Required string length:
3The date when the fee was created, represented in ISO 8601 format (e.g. 2023-09-04T16:13:05Z).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
201 - undefined
⌘I

