Skip to main content
PayLoco provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body and return standard HTTP response codes. You can consume the APIs directly using your favorite HTTP/REST library.

Try a Payment

Explore the versatile payments endpoint, through multiple test scenarios

Refund

Process refunds for completed payments using our API

Transfer

Initiate a transfer request using the API

Webhooks

Receive real-time payment result notifications via webhooks

Environment

We have a testing environment referred to ,” which you can set up to test API calls without affecting production data. You can sign up on our Dashboard to get API keys to access PayLoco API. Use the following base URLs when making requests to the APIs:

Payment Status Lifecycle

PayLoco handles the complex functionality of a comprehensive payments flow through the Payments object that transitions through multiple states during its payments lifecycle. Given below are the various statuses a payment can have:
StatusDescriptionNotes
SUCCESSPayment succeededThe user completed the payment
PENDINGPayment pendingWaiting for the user to complete payment
FAILEDPayment failedPayment was unsuccessful
CLOSEDPayment closedUser did not complete payment within the valid period