# API Reference

XanPay's REST API allows partners to integrate with XanPay using their own custom interface.

Base URL		https://api.xanpay.com/

Sandbox URL		https://api.sandbox.xanpay.com/

If you wish to implement a custom interface for accepting payments with XanPay, you need to follow these steps for each charge:

  1. Verify customer's phone number
  2. Secure transaction with a hash
  3. Create a charge
  4. Set up a URL to be notified upon charge completion

In your custom interface design, we require that predefined user interface strings are used. You can access these strings through our translations API.

If you wish to use XanPay's prebuilt interface for payment, you can:

  1. Create a checkout link
  2. Set up a URL to be notified upon charge completion

Some API endpoints are restricted to a limited number of partners. If you require access to functionality like charge creation, please contact us through the dashboard (opens new window).