How it works?

1. You request a new payment address from our API, with your crypto address and callback URL http://example.com/callback?invoice=1234

2. You present your customer with the payment address generated by our system

3. Your customer sends the amount to the payment address our system generated

4. Upon confirmation our system forwards the payment to the address you provided when you request the address and notifies your system via the callback URL you provided with the payment details (value, TXID in, TXID out, etc)

5. Your system confirms the payment value and grants access to the user

CryptAPI Flow

How to easily
test CryptAPI?

1. Fetching an unique URL from a Webhook website in order to properly test the information sent by CryptAPI as callback (or IPN). You can see an example of this URL bellow. Please don't copy the URL from the browser address bar, the website in the Your unique URL field

Instructions Image 1

2. Identify the COIN / TOKEN you want to get processed (check our cryptocurrency list). For this example we will use LTC (which is a good currency to test your implementation)

3. Paste the URL provided by the Webhook website and your crypto address (you will copy it from your wallet) into the CryptAPI API request like this:

https://api.cryptapi.io/ltc/create/?address=your_crypto_address&callback=webhook_url

4. If everything is correct, you will receive something like this:

Instructions Image 2

5. Next, you send a payment to the address in provided in the address_in field of the response

6. If everything went well, your Webhook page should look like this, meaning that CryptAPI received the payment and forwarded it to the provided crypto address.

Instructions Image 3

Where and how
to start?

Implementing CryptAPI it's easy and simple. We provide documentation and libraries on many programming languages which may help you in the process.

You can break down the implementation to 3 easy steps:

1 - You'll need to handle the API requests to our various endpoints. You'll need to create the request, but you may need to convert the payment value to cryptocurrency you want to receive the requests on (e. g you have a store which currency is EUR and you may want to receive payments in BTC). For that you'll need to write a library (or use one that we provide) that can handle all those different requests

2 - You need integrate our API logic in your platform, together with other payment methods you may have. For example, you may create a database table for CryptAPI payments where you can store useful data

3 - Create an endpoint in your platform where our API can send the callbacks. This endpoint should be able to process the callback information and should be the one you provide our API to when requesting an address.