API

For integrations other than WooCommerce and Shopify you can use our generic API. We're excited to see what you build. Please keep us informed.
IMPORTANT: The API is currently in development. Please contact us to get early access

API end point

https://api.kupay.finance/v1/

Authorization

Add the following header to each request to the api
Authorization: Bearer <token>
Please check the admin panel for your API token. Sign up via https://kupay.finance

Create payment request

post
https://api.kupay.finance/v1
/payment/create
payment/create

Json payload example

{
"id": "12345",
"order_number": "1234",
"created_at": "2022-05-22T18:58:04+01:00",
"currency": "USD",
"amount": 123.45,
"email": "[email protected]",
"order_status_url": "https://example.com/order/1234",
"cancel_url": "https://example.com/canceled.html",
"paid_url": "https://example.com/paid.html",
"callback_url": "https://example.com/payment/status/updates"
}

Get payment status

get
https://api.kupay.finance/v1
/payment/status/<payment-id>
payment/status