Creating a deposit without SkinsBack UI (API)
If you don't want to redirect the user to SkinsBack, then you can implement your own user interface to select game items and then transfer them to us. Thus, interaction will only occur through the SkinsBack API.
Flow
1. Load the user's inventory using API method for getting user's inventory and display it in your interface
2. Create a deposit by first transferring there the identifiers of game items from the user’s inventory (item_asset_ids)
3. Receive a webhook notification about the payment status at the Result URL specified in the project settings or use the API method for checking the deposit status
Các tham số bắt buộc được đánh dấu bằng màu xanh.
Gửi yêu cầu POST tới Điểm cuối API với các tham số sau:
instead of the one specified in the project settings
Phản hồi từ máy chủ:
Nếu thành công, phản hồi từ máy chủ sẽ là một đối tượng JSON với nội dung sau:
Ví dụ phản hồi thành công:
{
"status": "success",
"data": {
"transaction_id": 116749989,
"sum": 1.31,
"local_sum": 121.5,
"local_sum_multiplied": 243,
"local_currency": "rub",
"trade_offer_id": "6828703963",
"trade_offer_expiry_at": "2024-03-12T10:00:34.000000Z",
"bot_steam_id": "76561199390042107",
"bot_name": "Dragonfly"
}
}
Danh sách các lỗi có thể xảy ra:
Ví dụ phản hồi lỗi:
{
"status": "error",
"error_code": 7,
"error_message": "order_id_already_exists"
}