API Reference

Get Started

With the Safacil API You can accept payments on your website by Moncash, cryptocurrency and Safacil pay.

SAFACIL APIs use REST, authenticate with an access token, and return HTTP response codes and responses encoded in JSON.



Getting authenticated🔒

To use the SAFACIL API you must generate a Client Id and a Client Secret, without this data you will not be able to make requests with our API.

Click on this link below to generate the Client Id and Client Secret

https://safacilpay.com/generateclients


Get Client Id and Secret🔑

Click on this link below to get the Client ID and Client Secret.

https://safacilpay.com/sc


Get Access token🔓

To generate the Access token, you need to execute the URL below with the Client ID and Client secret


Get access token => https://safacilpay.com/sandbox/oauth/CLIENT_ID/CLIENT_SECRET

Response :

          {

             "token": "access_token",

             "message": "successful",

             "expires_in": 59,

             "status": 200
               
           }

Congrats, you've authenticated and made your first request! 😃