001k

Integration of 001k Bot with Lara Script Operating modes: payment acceptance (Merchant) automatic payouts for requests (Auto Payout) 1. Preparation on the 001k Bot side 1.1 Launch the bot and get the

Integration of 001k Bot with Lara Script

Operating modes:

  • payment acceptance (Merchant)

  • automatic payouts for requests (Auto Payout)

1. Preparation on the 001k Bot side

1.1 Launch the bot and get the UID

  1. Open the Telegram bot 001karrow-up-right and press Start

  2. Go to the Info

  3. Copy your UID

  4. After that open the Support

1.2 Request to activate the API

In a private message with the support representative 001k Bot Support you need to send a request to connect the API.

In the request specify:

  • your UID obtained in the previous step UID

  • the name and link to the exchange service

  • desired directions/currency pairs

  • types of operations:

    • deposit

    • withdrawal

⚠️ API activation is carried out manually after verification by 001k.

1.3 Enabling two-factor authentication (2FA)

To work with the API it is required to enable 2FA.

  1. In the bot open Settings

  2. Go to the 2FA

  3. Click Add 2FA

  4. Enter an arbitrary name (for example: LaraScript)

  5. Confirm the name

  6. Scan the QR code or enter the secret key into an authenticator app (Google Authenticator)

  7. Send the 6-digit confirmation code to the bot

After successful addition you will receive an activation message "2FA has been added!"

2. Creating API keys in 001k Bot

After successful API activation, extended functionality becomes available in the bot.

  1. Go to the Additional functionality

  2. Select API access

  3. Click Create API key

  4. Specify the API key name

  5. Enable the necessary permissions (for integration of the bot as a merchant and the auto-payout module, the first 3 accesses will be sufficient):

    • Balance - to view all balance details

    • Deposit - for accepting payments

    • Withdrawal - for automatic payouts

    • Exchange - ability for internal currency exchanges

    • Limit order - functionality to lock in the desired buy or sell price.

    • AML - internal verification functionality that includes analysis of transactions and clients

    • Transfer - ability to send funds using only UID

  6. Click Next

2.1 Adding the Lara Script server IP

You need to perform one of the scenarios to obtain the IP:

  1. You need to log in via ssh to your own server and run the command /curl 2ip.me

  2. Log in to the hosting provider control panel and also find your server's IP

  3. Or leave all IPs allowed

Return to the 001k Telegram bot and send the copied IP and confirm it

2.2 Completing API key creation

  1. Confirm API activation immediately after creation

  2. Check the parameters

  3. Confirm key creation

  4. Enter the 2FA code

After that the bot will send:

  • API Key

  • API Secret

⚠️ Recommended:

  • save the keys in a secure place

  • delete the message with the keys from the 001k Bot chat

3. Configuring the merchant in Lara Script

  1. In the admin panel go to Merchants - 001K and in General - Auto Payouts

  2. Open the merchant settings 001k

  3. Fill in the fields:

    • API Key — access key

    • API Secret — secret key

  4. Save changes

After that the merchant is considered configured and ready to use.

4. Use in exchange directions

Merchant 001k Bot can be assigned:

  • as a module for receiving funds

  • as a module for automatic payouts for requests

After assignment it is recommended to create a test request and check:

  • correct generation of the deposit address

  • correct reception of the deposit

  • automatic change of request status

  • operation of auto-payouts (when using withdrawal)

5. Notes

  • The integration supports automatic processing of requests

  • All API operations are protected by two-factor authentication

  • An incorrect IP or lack of necessary permissions may lead to refusal to execute API requests

  • We also recommend using 001k documentationarrow-up-right

  • When configuring currencies for receiving funds through this merchant, fill in the "Merchant Network" field together with the currency ticker, example below

Last updated