Payments API
Create payment links, track payment status, and manage the complete payment verification lifecycle.
What You Can Do
Create Payment Links
Generate secure payment links with custom amounts, descriptions, and redirect URLs.
Track Status
Monitor payment status in real-time from pending to verified or rejected.
Manage Lifecycle
Cancel, expire, or update payment details as needed.
Create Payment Link
Create a new payment link for a customer to complete payment verification.
/api/v1/payment-requests
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
amount_cents | integer | Yes | Amount in cents (minimum 100) |
currency | string | Yes | 3-letter currency code (TTD, USD, XCD) |
description | string | Yes | Payment description (max 1000 chars) |
customer_name | string | Yes | Customer's full name |
customer_email | string | Yes | Customer's email address |
success_url | string | Yes | URL to redirect after successful payment |
cancel_url | string | Yes | URL to redirect if payment is cancelled |
customer_phone | string | No | Customer's phone number |
expires_at | string | No | ISO 8601 timestamp (default: 15 minutes) |
Get Payment Status
Retrieve the current status and details of a payment.
/api/v1/payment-requests/{invoice_id}
Payment Status Values
Cancel or Expire Payment
Cancel a pending payment or mark it as expired.
/api/v1/payment-requests/{invoice_id}
Webhook Integration
Receive real-time notifications when payment status changes:
payment.created
Payment link created
payment.submitted
Customer submitted payment proof
payment.verified
Payment verified and approved
payment.rejected
Payment proof rejected
Learn more about webhook implementation in our Webhooks guide.
Best Practices
Use Webhooks
Set Reasonable Expiration
Handle Errors Gracefully
Next Steps
Now that you understand the Payments API, explore related resources: