API Description
Balance

GET https://like.biz/api/billing/balance?api_token={TOKEN}

Example response:

{
  "user_balance": 123.00171234
}
Payments list

GET https://like.biz/api/billing/payments?api_token={TOKEN}

Parameters Description
api_token Your API token
operation (optional) Get payments by operation:
"deposit" - Deposits
"payday" - Payouts
"refund" - Refunds
"service_payment" - Service payments
"reward" - Rewards
"reward_dev" - Rewards (dev)
"reward_min_balance" - Rewards (for min balance)
"gift" - Gifts
"transfer" - Transfers
related_id (optional) Get related payments by ID
id (optional) Get single payment data by ID
page (optional) Set page number

Example response:

{
  "data": [
    {
      "id": 106993,
      "operation": "payday",
      "wallet": "4111111111111111",
      "amount": "100.00000000",
      "status": "wait",
      "comment": "Payout - Card (RUB)",
      "created_at": "2019-10-20 15:53:40",
      "related_id": null
    },
    {
      "id": 106992,
      "operation": "reward",
      "wallet": null,
      "amount": "4.35821788",
      "status": "pay",
      "comment": "Reward",
      "created_at": "2019-10-20 10:13:40",
      "related_id": null
    },
    {
      "id": 106992,
      "operation": "reward",
      "wallet": null,
      "amount": "4.33653520",
      "status": "pay",
      "comment": "Reward",
      "created_at": "2018-10-19 10:40:51",
      "related_id": null
    }
  ],
  "pagination": {
    "total": 89,
    "perPage": 3,
    "pages": 30,
    "currentPage": 1
  }
}
Payout order

POST https://like.biz/api/billing/payday

Parameters Description
api_token Your API token
payment_method_id 31 - WebMoney (WMR)
32 - Yandex.Money (RUB)
33 - Qiwi (RUB)
36 - Perfect Money (USD)
38 - Payeer (USD)
39 - Advcash (USD)
account Wallet, Phone number, etc.
amount Amount of likes to withdraw.
fixed_money (optional) Fixed amount of money to withdraw.
If you choose fixed money, set amount of likes to 1 in request (final amount of likes will be calculated automatically).

Example response:

{
    "status": "success",
    "payment_id": 1234567
}
Order an invoice

POST https://like.biz/api/billing/invoice

Parameters Description
api_token Your API token
comment (optional) Comment
amount Likes amount to pay
active_before Set invoice expiration date (YYYY-MM-DD format)
site_url (optional) Set your return to shop url
notify_url (optional) Set your url for paid invoice notification.
Request method: POST
Sample JSON: {"payment_id":123456,"amount":"12.00000000","status":"success","comment":null,"date":"2019-12-04 15:57:02","sign":"ac6f3d8abdf4011758ba202342d12465"}
*Sign is MD5 hash of (payment_id + amount + your api token)

Example response:

{
    "status": "success",
    "payment_id": 123,
    "invoice_link": "https://like.biz/pt/pay-invoices/123"
}
Transfer Likes

POST https://like.biz/api/billing/transfer

Parameters Description
api_token Your API token
amount Likes amount to transfer
user_id Recipient user ID

Example response:

{
    "status": "success",
    "payment_id": 123,
}