Skip to main content
POST
/
api
/
platform
/
payment
/
create-payment-link
/
{user_id}
Create a Payment Link
curl --request POST \
  --url https://api.sandbox.paywint.com/api/platform/payment/create-payment-link/{user_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Platform-ID: <x-platform-id>' \
  --header 'X-Signature: <x-signature>' \
  --data '{
  "amount": 150.75,
  "description": "Payment for June invoice",
  "invoice_number": "INV-2025-0012"
}'
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "payment_link": "<string>"
  },
  "queryGeneratedTime": 1718006400
}

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.

Path Parameters

user_id
string<uuid>
required

Unique identifier (UUID) of the user whose payment records are being retrieved.

Body

application/json
amount
number
required

Amount to be collected via the payment link.

Example:

150.75

description
string | null

Optional note or context about the payment (e.g., product name, service details).

Maximum length: 255
Example:

"Payment for June invoice"

invoice_number
string | null

Optional invoice reference tied to this payment request.

Maximum length: 20
Example:

"INV-2025-0012"

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

The main response payload, if applicable

queryGeneratedTime
number | null
default:1759844954.846287

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

Example:

1718006400

I