Skip to main content
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

X-Api-Key
string
required

Your API Key (UUID format). Required to identify and authorize each request

X-Api-Secret
string
required

Secret associated with your API Key. Used for authenticating requests. Keep this secure.

Path Parameters

payment_id
string<uuid>
required

Response

Successful Response

success
boolean
default:true

Indicates whether the request was processed successfully.

Example:

true

message
string
default:Success

A short, human-readable message describing the result of the request.

Example:

"Operation completed."

data
UserApiPaymentRead · object | null

The main response payload, if applicable

queryGeneratedTime
number | null
default:1778161546.973489

The Unix timestamp (in seconds) indicating when the response was generated.

Example:

1718006400