POST
/
api
/
user-api
/
payment
/
create-payment-link
Create a new payment link
curl --request POST \
  --url https://api.sandbox.paywint.com/api/user-api/payment/create-payment-link \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Api-Secret: <x-api-secret>' \
  --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-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.

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:1756880309.235435

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

Example:

1718006400