Complete reference for GoPayNow's RESTful API. Build powerful payment solutions with our secure, scalable endpoints.
Get up and running with GoPayNow API in minutes
All API requests require authentication using your API key. Include it in the Authorization header:
// Example request with authentication
curl -X GET "https://api.gopay.now/v1/payments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Create a hosted payment link for your customers:
// Create payment link
POST /v1/payment-links
{
"amount": 2500,
"currency": "EUR",
"description": "Invoice #1234",
"customer_email": "customer@gopay.now"
}
Comprehensive list of available endpoints and their usage
Real-time notifications for payment events
{
"id": "evt_1234567890",
"object": "event",
"type": "payment_link.completed",
"created": 1641234567,
"data": {
"object": {
"id": "pl_1234567890",
"amount": 2500,
"currency": "EUR",
"status": "completed",
"customer_email": "customer@gopay.now"
}
}
}
Understanding API error responses and status codes
{
"error": {
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "Missing required parameter: amount",
"param": "amount"
}
}
X-RateLimit-Remaining
header in responses.