curl --request POST \
--url https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions \
--header 'Content-Type: application/json' \
--data '
{
"transaction_id": "<string>",
"amount": 1,
"currency": "<string>",
"created": "<string>",
"status": "<string>",
"verification": true,
"payment_method_details": {
"payment_method_type": "<string>",
"id": "<string>",
"card": {
"bin": "<string>",
"last4": "<string>",
"expiry_month": "<string>",
"expiry_year": "<string>",
"fingerprint": "<string>",
"vaulted": "<string>",
"validation": {
"avs_address_result": "<string>",
"avs_postal_code_result": "<string>",
"avs_error_response_code": "<string>",
"cvc_result": "<string>"
},
"attributes": {
"network": "<string>",
"product_id": "<string>",
"category": "<string>",
"issuer_bank": "<string>",
"issuer_country": "<string>",
"payroll": true,
"healthcare": true,
"durbin_regulated": true,
"commercial": true
}
},
"paypal": {
"pp_payer_status": "<string>",
"pp_seller_protection_status": "<string>"
},
"bank": {
"customer_bank_routing_bic_number": "<string>",
"customer_bank_swift_code": "<string>",
"customer_bank_branch_code": "<string>",
"pm_bank_reference": "<string>"
},
"non_card_attributes": {
"pm_expiry_days": "<string>",
"debit_mandate_reference": "<string>"
}
},
"transaction_response": {
"processor_response_code": "<string>",
"processor_response_text": "<string>",
"additional_processor_response": "<string>",
"network_response_code": "<string>",
"network_response_text": "<string>"
},
"pagos_codes": {},
"stored_credential": "<string>",
"order": {
"id": "<string>",
"description": "<string>",
"descriptor": "<string>"
},
"customer": {
"customer_id": "<string>",
"shopper_country": "<string>",
"postal_code": "<string>"
},
"3dSecure": {
"result": "<string>",
"version": "<string>",
"liability_shift": true,
"metadata": {},
"exemption_requested": "<string>"
},
"merchant": {
"merchant_id": "<string>",
"merchant_account_id": "<string>"
},
"additional_data": {
"network_transaction_id": "<string>",
"processor_authorization_code": "<string>",
"acquirer_reference": "<string>",
"is_network_tokenized": true,
"metadata": {}
}
}
'import requests
url = "https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions"
payload = {
"transaction_id": "<string>",
"amount": 1,
"currency": "<string>",
"created": "<string>",
"status": "<string>",
"verification": True,
"payment_method_details": {
"payment_method_type": "<string>",
"id": "<string>",
"card": {
"bin": "<string>",
"last4": "<string>",
"expiry_month": "<string>",
"expiry_year": "<string>",
"fingerprint": "<string>",
"vaulted": "<string>",
"validation": {
"avs_address_result": "<string>",
"avs_postal_code_result": "<string>",
"avs_error_response_code": "<string>",
"cvc_result": "<string>"
},
"attributes": {
"network": "<string>",
"product_id": "<string>",
"category": "<string>",
"issuer_bank": "<string>",
"issuer_country": "<string>",
"payroll": True,
"healthcare": True,
"durbin_regulated": True,
"commercial": True
}
},
"paypal": {
"pp_payer_status": "<string>",
"pp_seller_protection_status": "<string>"
},
"bank": {
"customer_bank_routing_bic_number": "<string>",
"customer_bank_swift_code": "<string>",
"customer_bank_branch_code": "<string>",
"pm_bank_reference": "<string>"
},
"non_card_attributes": {
"pm_expiry_days": "<string>",
"debit_mandate_reference": "<string>"
}
},
"transaction_response": {
"processor_response_code": "<string>",
"processor_response_text": "<string>",
"additional_processor_response": "<string>",
"network_response_code": "<string>",
"network_response_text": "<string>"
},
"pagos_codes": {},
"stored_credential": "<string>",
"order": {
"id": "<string>",
"description": "<string>",
"descriptor": "<string>"
},
"customer": {
"customer_id": "<string>",
"shopper_country": "<string>",
"postal_code": "<string>"
},
"3dSecure": {
"result": "<string>",
"version": "<string>",
"liability_shift": True,
"metadata": {},
"exemption_requested": "<string>"
},
"merchant": {
"merchant_id": "<string>",
"merchant_account_id": "<string>"
},
"additional_data": {
"network_transaction_id": "<string>",
"processor_authorization_code": "<string>",
"acquirer_reference": "<string>",
"is_network_tokenized": True,
"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({
transaction_id: '<string>',
amount: 1,
currency: '<string>',
created: '<string>',
status: '<string>',
verification: true,
payment_method_details: {
payment_method_type: '<string>',
id: '<string>',
card: {
bin: '<string>',
last4: '<string>',
expiry_month: '<string>',
expiry_year: '<string>',
fingerprint: '<string>',
vaulted: '<string>',
validation: {
avs_address_result: '<string>',
avs_postal_code_result: '<string>',
avs_error_response_code: '<string>',
cvc_result: '<string>'
},
attributes: {
network: '<string>',
product_id: '<string>',
category: '<string>',
issuer_bank: '<string>',
issuer_country: '<string>',
payroll: true,
healthcare: true,
durbin_regulated: true,
commercial: true
}
},
paypal: {pp_payer_status: '<string>', pp_seller_protection_status: '<string>'},
bank: {
customer_bank_routing_bic_number: '<string>',
customer_bank_swift_code: '<string>',
customer_bank_branch_code: '<string>',
pm_bank_reference: '<string>'
},
non_card_attributes: {pm_expiry_days: '<string>', debit_mandate_reference: '<string>'}
},
transaction_response: {
processor_response_code: '<string>',
processor_response_text: '<string>',
additional_processor_response: '<string>',
network_response_code: '<string>',
network_response_text: '<string>'
},
pagos_codes: {},
stored_credential: '<string>',
order: {id: '<string>', description: '<string>', descriptor: '<string>'},
customer: {customer_id: '<string>', shopper_country: '<string>', postal_code: '<string>'},
'3dSecure': {
result: '<string>',
version: '<string>',
liability_shift: true,
metadata: {},
exemption_requested: '<string>'
},
merchant: {merchant_id: '<string>', merchant_account_id: '<string>'},
additional_data: {
network_transaction_id: '<string>',
processor_authorization_code: '<string>',
acquirer_reference: '<string>',
is_network_tokenized: true,
metadata: {}
}
})
};
fetch('https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions', 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}/transactions",
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([
'transaction_id' => '<string>',
'amount' => 1,
'currency' => '<string>',
'created' => '<string>',
'status' => '<string>',
'verification' => true,
'payment_method_details' => [
'payment_method_type' => '<string>',
'id' => '<string>',
'card' => [
'bin' => '<string>',
'last4' => '<string>',
'expiry_month' => '<string>',
'expiry_year' => '<string>',
'fingerprint' => '<string>',
'vaulted' => '<string>',
'validation' => [
'avs_address_result' => '<string>',
'avs_postal_code_result' => '<string>',
'avs_error_response_code' => '<string>',
'cvc_result' => '<string>'
],
'attributes' => [
'network' => '<string>',
'product_id' => '<string>',
'category' => '<string>',
'issuer_bank' => '<string>',
'issuer_country' => '<string>',
'payroll' => true,
'healthcare' => true,
'durbin_regulated' => true,
'commercial' => true
]
],
'paypal' => [
'pp_payer_status' => '<string>',
'pp_seller_protection_status' => '<string>'
],
'bank' => [
'customer_bank_routing_bic_number' => '<string>',
'customer_bank_swift_code' => '<string>',
'customer_bank_branch_code' => '<string>',
'pm_bank_reference' => '<string>'
],
'non_card_attributes' => [
'pm_expiry_days' => '<string>',
'debit_mandate_reference' => '<string>'
]
],
'transaction_response' => [
'processor_response_code' => '<string>',
'processor_response_text' => '<string>',
'additional_processor_response' => '<string>',
'network_response_code' => '<string>',
'network_response_text' => '<string>'
],
'pagos_codes' => [
],
'stored_credential' => '<string>',
'order' => [
'id' => '<string>',
'description' => '<string>',
'descriptor' => '<string>'
],
'customer' => [
'customer_id' => '<string>',
'shopper_country' => '<string>',
'postal_code' => '<string>'
],
'3dSecure' => [
'result' => '<string>',
'version' => '<string>',
'liability_shift' => true,
'metadata' => [
],
'exemption_requested' => '<string>'
],
'merchant' => [
'merchant_id' => '<string>',
'merchant_account_id' => '<string>'
],
'additional_data' => [
'network_transaction_id' => '<string>',
'processor_authorization_code' => '<string>',
'acquirer_reference' => '<string>',
'is_network_tokenized' => true,
'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}/transactions"
payload := strings.NewReader("{\n \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\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}/transactions")
.header("Content-Type", "application/json")
.body("{\n \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions")
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 \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_bodyTransactions
curl --request POST \
--url https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions \
--header 'Content-Type: application/json' \
--data '
{
"transaction_id": "<string>",
"amount": 1,
"currency": "<string>",
"created": "<string>",
"status": "<string>",
"verification": true,
"payment_method_details": {
"payment_method_type": "<string>",
"id": "<string>",
"card": {
"bin": "<string>",
"last4": "<string>",
"expiry_month": "<string>",
"expiry_year": "<string>",
"fingerprint": "<string>",
"vaulted": "<string>",
"validation": {
"avs_address_result": "<string>",
"avs_postal_code_result": "<string>",
"avs_error_response_code": "<string>",
"cvc_result": "<string>"
},
"attributes": {
"network": "<string>",
"product_id": "<string>",
"category": "<string>",
"issuer_bank": "<string>",
"issuer_country": "<string>",
"payroll": true,
"healthcare": true,
"durbin_regulated": true,
"commercial": true
}
},
"paypal": {
"pp_payer_status": "<string>",
"pp_seller_protection_status": "<string>"
},
"bank": {
"customer_bank_routing_bic_number": "<string>",
"customer_bank_swift_code": "<string>",
"customer_bank_branch_code": "<string>",
"pm_bank_reference": "<string>"
},
"non_card_attributes": {
"pm_expiry_days": "<string>",
"debit_mandate_reference": "<string>"
}
},
"transaction_response": {
"processor_response_code": "<string>",
"processor_response_text": "<string>",
"additional_processor_response": "<string>",
"network_response_code": "<string>",
"network_response_text": "<string>"
},
"pagos_codes": {},
"stored_credential": "<string>",
"order": {
"id": "<string>",
"description": "<string>",
"descriptor": "<string>"
},
"customer": {
"customer_id": "<string>",
"shopper_country": "<string>",
"postal_code": "<string>"
},
"3dSecure": {
"result": "<string>",
"version": "<string>",
"liability_shift": true,
"metadata": {},
"exemption_requested": "<string>"
},
"merchant": {
"merchant_id": "<string>",
"merchant_account_id": "<string>"
},
"additional_data": {
"network_transaction_id": "<string>",
"processor_authorization_code": "<string>",
"acquirer_reference": "<string>",
"is_network_tokenized": true,
"metadata": {}
}
}
'import requests
url = "https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions"
payload = {
"transaction_id": "<string>",
"amount": 1,
"currency": "<string>",
"created": "<string>",
"status": "<string>",
"verification": True,
"payment_method_details": {
"payment_method_type": "<string>",
"id": "<string>",
"card": {
"bin": "<string>",
"last4": "<string>",
"expiry_month": "<string>",
"expiry_year": "<string>",
"fingerprint": "<string>",
"vaulted": "<string>",
"validation": {
"avs_address_result": "<string>",
"avs_postal_code_result": "<string>",
"avs_error_response_code": "<string>",
"cvc_result": "<string>"
},
"attributes": {
"network": "<string>",
"product_id": "<string>",
"category": "<string>",
"issuer_bank": "<string>",
"issuer_country": "<string>",
"payroll": True,
"healthcare": True,
"durbin_regulated": True,
"commercial": True
}
},
"paypal": {
"pp_payer_status": "<string>",
"pp_seller_protection_status": "<string>"
},
"bank": {
"customer_bank_routing_bic_number": "<string>",
"customer_bank_swift_code": "<string>",
"customer_bank_branch_code": "<string>",
"pm_bank_reference": "<string>"
},
"non_card_attributes": {
"pm_expiry_days": "<string>",
"debit_mandate_reference": "<string>"
}
},
"transaction_response": {
"processor_response_code": "<string>",
"processor_response_text": "<string>",
"additional_processor_response": "<string>",
"network_response_code": "<string>",
"network_response_text": "<string>"
},
"pagos_codes": {},
"stored_credential": "<string>",
"order": {
"id": "<string>",
"description": "<string>",
"descriptor": "<string>"
},
"customer": {
"customer_id": "<string>",
"shopper_country": "<string>",
"postal_code": "<string>"
},
"3dSecure": {
"result": "<string>",
"version": "<string>",
"liability_shift": True,
"metadata": {},
"exemption_requested": "<string>"
},
"merchant": {
"merchant_id": "<string>",
"merchant_account_id": "<string>"
},
"additional_data": {
"network_transaction_id": "<string>",
"processor_authorization_code": "<string>",
"acquirer_reference": "<string>",
"is_network_tokenized": True,
"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({
transaction_id: '<string>',
amount: 1,
currency: '<string>',
created: '<string>',
status: '<string>',
verification: true,
payment_method_details: {
payment_method_type: '<string>',
id: '<string>',
card: {
bin: '<string>',
last4: '<string>',
expiry_month: '<string>',
expiry_year: '<string>',
fingerprint: '<string>',
vaulted: '<string>',
validation: {
avs_address_result: '<string>',
avs_postal_code_result: '<string>',
avs_error_response_code: '<string>',
cvc_result: '<string>'
},
attributes: {
network: '<string>',
product_id: '<string>',
category: '<string>',
issuer_bank: '<string>',
issuer_country: '<string>',
payroll: true,
healthcare: true,
durbin_regulated: true,
commercial: true
}
},
paypal: {pp_payer_status: '<string>', pp_seller_protection_status: '<string>'},
bank: {
customer_bank_routing_bic_number: '<string>',
customer_bank_swift_code: '<string>',
customer_bank_branch_code: '<string>',
pm_bank_reference: '<string>'
},
non_card_attributes: {pm_expiry_days: '<string>', debit_mandate_reference: '<string>'}
},
transaction_response: {
processor_response_code: '<string>',
processor_response_text: '<string>',
additional_processor_response: '<string>',
network_response_code: '<string>',
network_response_text: '<string>'
},
pagos_codes: {},
stored_credential: '<string>',
order: {id: '<string>', description: '<string>', descriptor: '<string>'},
customer: {customer_id: '<string>', shopper_country: '<string>', postal_code: '<string>'},
'3dSecure': {
result: '<string>',
version: '<string>',
liability_shift: true,
metadata: {},
exemption_requested: '<string>'
},
merchant: {merchant_id: '<string>', merchant_account_id: '<string>'},
additional_data: {
network_transaction_id: '<string>',
processor_authorization_code: '<string>',
acquirer_reference: '<string>',
is_network_tokenized: true,
metadata: {}
}
})
};
fetch('https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions', 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}/transactions",
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([
'transaction_id' => '<string>',
'amount' => 1,
'currency' => '<string>',
'created' => '<string>',
'status' => '<string>',
'verification' => true,
'payment_method_details' => [
'payment_method_type' => '<string>',
'id' => '<string>',
'card' => [
'bin' => '<string>',
'last4' => '<string>',
'expiry_month' => '<string>',
'expiry_year' => '<string>',
'fingerprint' => '<string>',
'vaulted' => '<string>',
'validation' => [
'avs_address_result' => '<string>',
'avs_postal_code_result' => '<string>',
'avs_error_response_code' => '<string>',
'cvc_result' => '<string>'
],
'attributes' => [
'network' => '<string>',
'product_id' => '<string>',
'category' => '<string>',
'issuer_bank' => '<string>',
'issuer_country' => '<string>',
'payroll' => true,
'healthcare' => true,
'durbin_regulated' => true,
'commercial' => true
]
],
'paypal' => [
'pp_payer_status' => '<string>',
'pp_seller_protection_status' => '<string>'
],
'bank' => [
'customer_bank_routing_bic_number' => '<string>',
'customer_bank_swift_code' => '<string>',
'customer_bank_branch_code' => '<string>',
'pm_bank_reference' => '<string>'
],
'non_card_attributes' => [
'pm_expiry_days' => '<string>',
'debit_mandate_reference' => '<string>'
]
],
'transaction_response' => [
'processor_response_code' => '<string>',
'processor_response_text' => '<string>',
'additional_processor_response' => '<string>',
'network_response_code' => '<string>',
'network_response_text' => '<string>'
],
'pagos_codes' => [
],
'stored_credential' => '<string>',
'order' => [
'id' => '<string>',
'description' => '<string>',
'descriptor' => '<string>'
],
'customer' => [
'customer_id' => '<string>',
'shopper_country' => '<string>',
'postal_code' => '<string>'
],
'3dSecure' => [
'result' => '<string>',
'version' => '<string>',
'liability_shift' => true,
'metadata' => [
],
'exemption_requested' => '<string>'
],
'merchant' => [
'merchant_id' => '<string>',
'merchant_account_id' => '<string>'
],
'additional_data' => [
'network_transaction_id' => '<string>',
'processor_authorization_code' => '<string>',
'acquirer_reference' => '<string>',
'is_network_tokenized' => true,
'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}/transactions"
payload := strings.NewReader("{\n \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\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}/transactions")
.header("Content-Type", "application/json")
.body("{\n \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\n \"metadata\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nest.pagosapi.com/v1/{account_id}/transactions")
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 \"transaction_id\": \"<string>\",\n \"amount\": 1,\n \"currency\": \"<string>\",\n \"created\": \"<string>\",\n \"status\": \"<string>\",\n \"verification\": true,\n \"payment_method_details\": {\n \"payment_method_type\": \"<string>\",\n \"id\": \"<string>\",\n \"card\": {\n \"bin\": \"<string>\",\n \"last4\": \"<string>\",\n \"expiry_month\": \"<string>\",\n \"expiry_year\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"vaulted\": \"<string>\",\n \"validation\": {\n \"avs_address_result\": \"<string>\",\n \"avs_postal_code_result\": \"<string>\",\n \"avs_error_response_code\": \"<string>\",\n \"cvc_result\": \"<string>\"\n },\n \"attributes\": {\n \"network\": \"<string>\",\n \"product_id\": \"<string>\",\n \"category\": \"<string>\",\n \"issuer_bank\": \"<string>\",\n \"issuer_country\": \"<string>\",\n \"payroll\": true,\n \"healthcare\": true,\n \"durbin_regulated\": true,\n \"commercial\": true\n }\n },\n \"paypal\": {\n \"pp_payer_status\": \"<string>\",\n \"pp_seller_protection_status\": \"<string>\"\n },\n \"bank\": {\n \"customer_bank_routing_bic_number\": \"<string>\",\n \"customer_bank_swift_code\": \"<string>\",\n \"customer_bank_branch_code\": \"<string>\",\n \"pm_bank_reference\": \"<string>\"\n },\n \"non_card_attributes\": {\n \"pm_expiry_days\": \"<string>\",\n \"debit_mandate_reference\": \"<string>\"\n }\n },\n \"transaction_response\": {\n \"processor_response_code\": \"<string>\",\n \"processor_response_text\": \"<string>\",\n \"additional_processor_response\": \"<string>\",\n \"network_response_code\": \"<string>\",\n \"network_response_text\": \"<string>\"\n },\n \"pagos_codes\": {},\n \"stored_credential\": \"<string>\",\n \"order\": {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"descriptor\": \"<string>\"\n },\n \"customer\": {\n \"customer_id\": \"<string>\",\n \"shopper_country\": \"<string>\",\n \"postal_code\": \"<string>\"\n },\n \"3dSecure\": {\n \"result\": \"<string>\",\n \"version\": \"<string>\",\n \"liability_shift\": true,\n \"metadata\": {},\n \"exemption_requested\": \"<string>\"\n },\n \"merchant\": {\n \"merchant_id\": \"<string>\",\n \"merchant_account_id\": \"<string>\"\n },\n \"additional_data\": {\n \"network_transaction_id\": \"<string>\",\n \"processor_authorization_code\": \"<string>\",\n \"acquirer_reference\": \"<string>\",\n \"is_network_tokenized\": true,\n \"metadata\": {}\n }\n}"
response = http.request(request)
puts response.read_bodyPath Parameters
Body
A unique value that identifies this transaction and will be used as the key when making updates to transactions. Maximum 255 characters.
1 - 255The transaction amount, represented as a positive integer in the smallest currency unit (e.g. two-decimal currency such as $101.50 is represented as 10150, zero-decimal currency such as ¥1095 is represented as 1095). Refer to the ISO 4217 currency page for guidance.
x >= 0The currency of the transaction, represented by the 3-letter ISO-4217 currency code. Must be three characters.
3The date when the transaction was created, represented in ISO 8601 format (e.g. 2023-09-04T16:13:05Z).
The status of the transaction (e.g. authorized, cancel_or_refund, canceled, capture, deposit, failed, gateway_rejected, paid, pending, processor_declined). Maximum 50 characters.
1 - 50A flag identifying if the record is a card verification (i.e. $0 or $1 authorization). The possible values are true or false; the default value is false.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
A value identifying if the customer is present or not present for the transaction. It also identifies if the payment was from a stored payment method or a PAN (e.g. moto, POS, card on file, subscription). Maximum 255 characters.
255Show 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

