cURL
curl --request POST \
--url http://localhost:3000/connect/v1/transactions/payment-transactions/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"currency": "<string>",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/connect/v1/transactions/payment-transactions/"
payload = {
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"currency": "<string>",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source: '<string>',
destination: '<string>',
id: '<string>',
currency: '<string>',
number: '<string>',
created_on: '2023-11-07T05:31:56Z',
date: '2023-11-07T05:31:56Z',
invoice_number: '<string>',
verification_latitude: 123,
verification_longitude: 123,
amount: 123,
selected_option: '<string>',
creator: '<string>',
updater: '<string>',
card: '<string>',
premium: '<string>',
transaction: '<string>',
submissions: ['<string>']
})
};
fetch('http://localhost:3000/connect/v1/transactions/payment-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_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/connect/v1/transactions/payment-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([
'source' => '<string>',
'destination' => '<string>',
'id' => '<string>',
'currency' => '<string>',
'number' => '<string>',
'created_on' => '2023-11-07T05:31:56Z',
'date' => '2023-11-07T05:31:56Z',
'invoice_number' => '<string>',
'verification_latitude' => 123,
'verification_longitude' => 123,
'amount' => 123,
'selected_option' => '<string>',
'creator' => '<string>',
'updater' => '<string>',
'card' => '<string>',
'premium' => '<string>',
'transaction' => '<string>',
'submissions' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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 := "http://localhost:3000/connect/v1/transactions/payment-transactions/"
payload := strings.NewReader("{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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("http://localhost:3000/connect/v1/transactions/payment-transactions/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/connect/v1/transactions/payment-transactions/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"premium_details": {
"name": "<string>",
"id": "<string>",
"options": [
{
"name": "<string>",
"amount": 123,
"id": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"is_active": true,
"creator": "<string>",
"updater": "<string>"
}
],
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"amount": 123,
"included": true,
"dependant_on_card": true,
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"owner": "<string>"
},
"currency_details": {
"name": "<string>",
"id": "<string>",
"code": "<string>"
},
"type": "<string>",
"currency": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice": "<string>",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": [
"<string>"
]
}Payment Transactions
Create Payment Transaction Endpoint
The Create Payment Transaction endpoint enables the creation of a new payment transaction. The request should include details such as transaction ID, premium details, currency details, payment amount, and other relevant information. Upon successful creation, the API responds with the newly created payment transaction details, including the transaction ID, premium details, currency details, transaction type, amount, and other associated information.
POST
/
transactions
/
payment-transactions
/
cURL
curl --request POST \
--url http://localhost:3000/connect/v1/transactions/payment-transactions/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"currency": "<string>",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": [
"<string>"
]
}
'import requests
url = "http://localhost:3000/connect/v1/transactions/payment-transactions/"
payload = {
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"currency": "<string>",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source: '<string>',
destination: '<string>',
id: '<string>',
currency: '<string>',
number: '<string>',
created_on: '2023-11-07T05:31:56Z',
date: '2023-11-07T05:31:56Z',
invoice_number: '<string>',
verification_latitude: 123,
verification_longitude: 123,
amount: 123,
selected_option: '<string>',
creator: '<string>',
updater: '<string>',
card: '<string>',
premium: '<string>',
transaction: '<string>',
submissions: ['<string>']
})
};
fetch('http://localhost:3000/connect/v1/transactions/payment-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_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/connect/v1/transactions/payment-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([
'source' => '<string>',
'destination' => '<string>',
'id' => '<string>',
'currency' => '<string>',
'number' => '<string>',
'created_on' => '2023-11-07T05:31:56Z',
'date' => '2023-11-07T05:31:56Z',
'invoice_number' => '<string>',
'verification_latitude' => 123,
'verification_longitude' => 123,
'amount' => 123,
'selected_option' => '<string>',
'creator' => '<string>',
'updater' => '<string>',
'card' => '<string>',
'premium' => '<string>',
'transaction' => '<string>',
'submissions' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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 := "http://localhost:3000/connect/v1/transactions/payment-transactions/"
payload := strings.NewReader("{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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("http://localhost:3000/connect/v1/transactions/payment-transactions/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/connect/v1/transactions/payment-transactions/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": \"<string>\",\n \"destination\": \"<string>\",\n \"id\": \"<string>\",\n \"currency\": \"<string>\",\n \"number\": \"<string>\",\n \"created_on\": \"2023-11-07T05:31:56Z\",\n \"date\": \"2023-11-07T05:31:56Z\",\n \"invoice_number\": \"<string>\",\n \"verification_latitude\": 123,\n \"verification_longitude\": 123,\n \"amount\": 123,\n \"selected_option\": \"<string>\",\n \"creator\": \"<string>\",\n \"updater\": \"<string>\",\n \"card\": \"<string>\",\n \"premium\": \"<string>\",\n \"transaction\": \"<string>\",\n \"submissions\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"source": "<string>",
"destination": "<string>",
"id": "<string>",
"premium_details": {
"name": "<string>",
"id": "<string>",
"options": [
{
"name": "<string>",
"amount": 123,
"id": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"is_active": true,
"creator": "<string>",
"updater": "<string>"
}
],
"updated_on": "2023-11-07T05:31:56Z",
"created_on": "2023-11-07T05:31:56Z",
"amount": 123,
"included": true,
"dependant_on_card": true,
"is_active": true,
"creator": "<string>",
"updater": "<string>",
"owner": "<string>"
},
"currency_details": {
"name": "<string>",
"id": "<string>",
"code": "<string>"
},
"type": "<string>",
"currency": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"number": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"date": "2023-11-07T05:31:56Z",
"invoice": "<string>",
"invoice_number": "<string>",
"verification_latitude": 123,
"verification_longitude": 123,
"amount": 123,
"selected_option": "<string>",
"creator": "<string>",
"updater": "<string>",
"card": "<string>",
"premium": "<string>",
"transaction": "<string>",
"submissions": [
"<string>"
]
}Authorizations
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Minimum string length:
1Maximum string length:
10Maximum string length:
100Available options:
CARD, INVOICE, NONE Available options:
TRANSACTION, PREMIUM, TRANSACTION_PREMIUM Maximum string length:
100Response
201 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Minimum string length:
1Maximum string length:
10Maximum string length:
100Available options:
CARD, INVOICE, NONE Available options:
TRANSACTION, PREMIUM, TRANSACTION_PREMIUM Maximum string length:
100⌘I
