Buat dompet statis

Buat dompet statis

POST

https://api.fps.pro/invoices/wallet

Format requestapplication/json

token

required

string

Kode token untuk membuat dompet statis

network

required

string

Kode jaringan untuk membuat dompet statis

order_id

required

string

ID pesanan di sistem Anda

webhook_link

url

URL tempat status pembayaran dikirim kembali

Default: merchant settings

Format responsdata object

id

uuid

ID dompet statis

order_id

string

ID order di sistem Anda

address

string

Alamat akhir untuk menerima pembayaran

token

string

Kode token

network

string

Kode jaringan

Contoh permintaan

curl --request POST 'https://api.fps.pro/invoices/wallet/' \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: YOUR_CLIENT_ID' \
  --header 'X-Timestamp: 1720000000' \
  --header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE' \
  --data '{
  "token": "tether",
  "network": "tron",
  "order_id": "ORD-1001",
  "webhook_link": "https://merchant.example.com/webhooks/static-wallet"
}'

Respons berhasil

{
  "status": 200,
  "message": "wallet created",
  "data": {
    "id": "95b97d47-4f0f-4822-8f26-4c3550fd1b7a",
    "order_id": "order-1001",
    "address": "TQ5x...abc",
    "token": "tether",
    "network": "tron"
  }
}

Error

Daftar detail error otorisasi ada di Otorisasi - Error

{
  "status": 422,
  "message": "Validation Error",
  "errors": [
    {
      "field": "token",
      "message": "token is required"
    }
  ]
}
{
  "status": 404,
  "message": "No token/network pairing found"
}
{
  "status": 500,
  "message": "Internal Server Error"
}