cURL
curl --request POST \
--url https://apay.caibo.digital/payments/upi/{id} \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"upiId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"is3ds": true,
"isSandbox": true,
"ipAddress": "<string>"
}
'import requests
url = "https://apay.caibo.digital/payments/upi/{id}"
payload = {
"upiId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"is3ds": True,
"isSandbox": True,
"ipAddress": "<string>"
}
headers = {"Content-Type": "application/json-patch+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
upiId: '<string>',
name: '<string>',
email: 'jsmith@example.com',
phoneNumber: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>',
is3ds: true,
isSandbox: true,
ipAddress: '<string>'
})
};
fetch('https://apay.caibo.digital/payments/upi/{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://apay.caibo.digital/payments/upi/{id}",
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([
'upiId' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com',
'phoneNumber' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'is3ds' => true,
'isSandbox' => true,
'ipAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+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://apay.caibo.digital/payments/upi/{id}"
payload := strings.NewReader("{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json-patch+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://apay.caibo.digital/payments/upi/{id}")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apay.caibo.digital/payments/upi/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}API Reference
UPI Payment
Process UPI payment endpoint
POST
/
payments
/
upi
/
{id}
cURL
curl --request POST \
--url https://apay.caibo.digital/payments/upi/{id} \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"upiId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"is3ds": true,
"isSandbox": true,
"ipAddress": "<string>"
}
'import requests
url = "https://apay.caibo.digital/payments/upi/{id}"
payload = {
"upiId": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phoneNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"is3ds": True,
"isSandbox": True,
"ipAddress": "<string>"
}
headers = {"Content-Type": "application/json-patch+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
upiId: '<string>',
name: '<string>',
email: 'jsmith@example.com',
phoneNumber: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>',
is3ds: true,
isSandbox: true,
ipAddress: '<string>'
})
};
fetch('https://apay.caibo.digital/payments/upi/{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://apay.caibo.digital/payments/upi/{id}",
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([
'upiId' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com',
'phoneNumber' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'is3ds' => true,
'isSandbox' => true,
'ipAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json-patch+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://apay.caibo.digital/payments/upi/{id}"
payload := strings.NewReader("{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json-patch+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://apay.caibo.digital/payments/upi/{id}")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apay.caibo.digital/payments/upi/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"upiId\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"is3ds\": true,\n \"isSandbox\": true,\n \"ipAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Path Parameters
Body
application/json-patch+jsonapplication/jsontext/jsonapplication/*+json
Minimum string length:
1Maximum string length:
100Maximum string length:
100Required string length:
10 - 14Pattern:
^\d+$Maximum string length:
100Maximum string length:
50Minimum string length:
1Maximum string length:
10Required string length:
2Response
OK
⌘I

