Swapspace
  • 📄APIS
    • 1️⃣Create deposit order
    • 2️⃣Deposit completed callback
    • 3️⃣Create withdraw order
  • 🖥️Merchant back office guidance
    • 📑KYB/ KYC
    • ®️Register
    • 📨Retrieve password
    • 📊Dashboard
      • 💹Deposit
      • 💲Withdraw
      • 💱Multi-Send
    • 🪙Deposit record
    • 🪙Withdrawal record
    • 💰Capital record
    • ⚙️Setting
      • 📧Change Email
      • 🔑Change Login password
      • 🧰Change Google key
      • ❤️Change White list
Powered by GitBook
On this page
  • Request Url
  • Request Type
  • Request
  • Response
  1. APIS

Create deposit order

This interface is for you to call us to create a payment order

NextDeposit completed callback

Last updated 9 months ago

Request Url

Request Type

GET

Request

param
type
necessary
max length
param description

code

String

32

Merchant platform number.

eg:100101

uid

String

64

Merchant platform user id.

eg:100

order_amount

String

40

order amount.(USDT or USDC or ETH) you can choose between

eg:1000

order_time

String

32

Order time (unix timestamp)

currency_type

String

11

eg:USDT or USDC or ETH

chain_name

String

32

Tron or Ethereum

order_id

String

64

order id

sign

String

36

A string encrypted with the hmac-sha256 algorithm based on the request parameter and access_key.

About sign content:

Arrange the parameters in ascending order of key letters, connect the obtained parameter string (similar to a=1&b=2&c=3) with the access key , and finally use hmac-sha256 Encrypt the signature string

Example:

code: 100119

currency_type: USDT

order_amount: 1000

order_id: 999123

order_time: 1703232182

uid: 123545

Get the string to be encrypted: code=100119&currency_type=USDT&order_amount=1000&order_id=999123 &order_time=1703232182&uid=123545

key: 8b026795f25458920ec1ce2249efasd9 (swap.space system allocation)

Encrypted value: CmjeVZ4srq8ZvLaajHYmHWtT1UV4QPTowEpQ05X55jY=

So the input parameter sign = CmjeVZ4srq8ZvLaajHYmHWtT1UV4QPTowEpQ05X55jY=

!!! Note:

When parameters contain special characters, they must be escaped (urlencode) to comply with URL specifications

Response

param
type
param desc

code

int

response code 200 is success, esle is fail

msg

String

response message

data

Object

response payment order url

📄
1️⃣
https://api.swapspace.ai/deposit/ajax_api/orderGateWay