Skip to main content
POST
/
api
/
platform
/
cross-border
/
create-payment
Create a Cross-Border Payment
curl --request POST \
  --url https://api.paywint.com/api/platform/cross-border/create-payment \
  --header 'Content-Type: application/json' \
  --header 'X-Platform-ID: <x-platform-id>' \
  --header 'X-Signature: <x-signature>' \
  --data '
{
  "user_id": "f47ac10b-****-****-****-0e02b2c3d479",
  "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
  "amount": 123,
  "to_bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "payout_currency": "INR",
  "invoice_no": "INV-2024-001234",
  "description": "<string>"
}
'
import requests

url = "https://api.paywint.com/api/platform/cross-border/create-payment"

payload = {
    "user_id": "f47ac10b-****-****-****-0e02b2c3d479",
    "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
    "amount": 123,
    "to_bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "payout_currency": "INR",
    "invoice_no": "INV-2024-001234",
    "description": "<string>"
}
headers = {
    "X-Platform-ID": "<x-platform-id>",
    "X-Signature": "<x-signature>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {
    'X-Platform-ID': '<x-platform-id>',
    'X-Signature': '<x-signature>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    user_id: 'f47ac10b-****-****-****-0e02b2c3d479',
    payee_id: 'f47ac10b-****-****-****-0e02b2c3d479',
    amount: 123,
    to_bank_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    payout_currency: 'INR',
    invoice_no: 'INV-2024-001234',
    description: '<string>'
  })
};

fetch('https://api.paywint.com/api/platform/cross-border/create-payment', 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.paywint.com/api/platform/cross-border/create-payment",
  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([
    'user_id' => 'f47ac10b-****-****-****-0e02b2c3d479',
    'payee_id' => 'f47ac10b-****-****-****-0e02b2c3d479',
    'amount' => 123,
    'to_bank_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    'payout_currency' => 'INR',
    'invoice_no' => 'INV-2024-001234',
    'description' => '<string>'
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "X-Platform-ID: <x-platform-id>",
    "X-Signature: <x-signature>"
  ],
]);

$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.paywint.com/api/platform/cross-border/create-payment"

	payload := strings.NewReader("{\n  \"user_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"amount\": 123,\n  \"to_bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"payout_currency\": \"INR\",\n  \"invoice_no\": \"INV-2024-001234\",\n  \"description\": \"<string>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Platform-ID", "<x-platform-id>")
	req.Header.Add("X-Signature", "<x-signature>")
	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.paywint.com/api/platform/cross-border/create-payment")
  .header("X-Platform-ID", "<x-platform-id>")
  .header("X-Signature", "<x-signature>")
  .header("Content-Type", "application/json")
  .body("{\n  \"user_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"amount\": 123,\n  \"to_bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"payout_currency\": \"INR\",\n  \"invoice_no\": \"INV-2024-001234\",\n  \"description\": \"<string>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.paywint.com/api/platform/cross-border/create-payment")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Platform-ID"] = '<x-platform-id>'
request["X-Signature"] = '<x-signature>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"user_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n  \"amount\": 123,\n  \"to_bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"payout_currency\": \"INR\",\n  \"invoice_no\": \"INV-2024-001234\",\n  \"description\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "payment_id": "f47ac10b-****-****-****-0e02b2c3d479",
    "status": "INITIATED"
  },
  "queryGeneratedTime": 1718006400
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

X-Platform-ID
string<uuid>
required

Unique platform identifier (UUID). You receive this during onboarding. Must be sent with every API request.

X-Signature
string
required

HMAC-SHA256 request signature for authentication. Use your platform secret key to compute it as: METHOD + PATH + QUERY + BODY_HASH.

Body

application/json

Platform-side cross-border payout request.

A cross-border payout always debits the payer's wallet to an international bank, so the payment and receiving methods are fixed server-side (WALLET / BANK) and are never partner-supplied. This is a dedicated schema carrying only the cross-border routing fields plus the funding basics (payer_id/user_id, payee_id, amount) and the extra description and invoice_no.

user_id
string<uuid>
required

Unique identifier (UUID) of the user funding the payout (payer).

Example:

"f47ac10b-****-****-****-0e02b2c3d479"

payee_id
string<uuid>
required

Unique identifier (UUID) of the payee user.

Example:

"f47ac10b-****-****-****-0e02b2c3d479"

amount
number
required

Source amount debited from the payer's wallet.

to_bank_id
string<uuid>
required

Saved payee bank id (bank details resolved server-side).

payout_currency
string
required

Currency paid out.

Maximum string length: 8
Example:

"INR"

invoice_no
string | null

Optional invoice or transaction reference number for tracking and record-keeping.

Maximum string length: 20
Example:

"INV-2024-001234"

description
string | null

Optional short note or description for the payout.

Maximum string length: 255

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
PlatformPayoutCreateResult · object | null

The main response payload, if applicable

queryGeneratedTime
number | null
default:1783409763.80796

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

Example:

1718006400