Get Payment
curl --request GET \
--url https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id} \
--header 'X-Api-Key: <x-api-key>' \
--header 'X-Api-Secret: <x-api-secret>'import requests
url = "https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"X-Api-Secret": "<x-api-secret>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<x-api-key>', 'X-Api-Secret': '<x-api-secret>'}
};
fetch('https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_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://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>",
"X-Api-Secret: <x-api-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("X-Api-Secret", "<x-api-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}")
.header("X-Api-Key", "<x-api-key>")
.header("X-Api-Secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["X-Api-Secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Operation completed.",
"data": {
"payment_id": "d4211545-cfc9-4aa0-8fcc-e4c2639e8052",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_name": "<string>",
"payee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payee_name": "<string>",
"amount": 100,
"currency": "USD",
"description": "June invoice for services",
"payment_method": "WALLET",
"receiving_method": "WALLET",
"created_at": "2025-06-16T10:04:51.739761Z",
"payment_date": "2025-06-16T10:13:16.749655Z",
"status": "success",
"failure_reason": "Insufficient wallet balance"
},
"queryGeneratedTime": 1718006400
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get Payment
Fetch the details of a specific payment using its unique ID.
This endpoint:
- Retrieves a payment record by its id
- Returns payer/payee information, amount, and payment status
GET
/
api
/
user-api
/
payment
/
get
/
{payment_id}
Get Payment
curl --request GET \
--url https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id} \
--header 'X-Api-Key: <x-api-key>' \
--header 'X-Api-Secret: <x-api-secret>'import requests
url = "https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}"
headers = {
"X-Api-Key": "<x-api-key>",
"X-Api-Secret": "<x-api-secret>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<x-api-key>', 'X-Api-Secret': '<x-api-secret>'}
};
fetch('https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_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://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>",
"X-Api-Secret: <x-api-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("X-Api-Secret", "<x-api-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}")
.header("X-Api-Key", "<x-api-key>")
.header("X-Api-Secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.paywint.com/api/user-api/payment/get/{payment_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["X-Api-Secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Operation completed.",
"data": {
"payment_id": "d4211545-cfc9-4aa0-8fcc-e4c2639e8052",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_name": "<string>",
"payee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payee_name": "<string>",
"amount": 100,
"currency": "USD",
"description": "June invoice for services",
"payment_method": "WALLET",
"receiving_method": "WALLET",
"created_at": "2025-06-16T10:04:51.739761Z",
"payment_date": "2025-06-16T10:13:16.749655Z",
"status": "success",
"failure_reason": "Insufficient wallet balance"
},
"queryGeneratedTime": 1718006400
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Your API Key (UUID format). Required to identify and authorize each request
Secret associated with your API Key. Used for authenticating requests. Keep this secure.
Path Parameters
Response
Successful Response
Indicates whether the request was processed successfully.
Example:
true
A short, human-readable message describing the result of the request.
Example:
"Operation completed."
The main response payload, if applicable
Show child attributes
Show child attributes
The Unix timestamp (in seconds) indicating when the response was generated.
Example:
1718006400
⌘I
