Documentation

API Reference & Integration Guide

API Available

Get Invoice Info

Retrieve invoice information by ID

GETGet Invoice Info
Endpoint URL
https://testnet.trustsig.xyz/v1/payment/info?id=05fc1385-c4cf-4c6a-8cef-a04f63c3d0cb

⚙️Authentication Status

⚠️ API Key is required for all requests Webhook Secret

🔑

Headers

x-api-key
Required

API Key is required for all requests

Accept-Language
Optional

Select Language

🔗

Parameters

invoice_id
string Required

Invoice ID

Parameters (Optional)

include_details
boolean Optional

Description

Request Example

Terminal
curl --location 'https://testnet.trustsig.xyz/v1/payment/info?id=05fc1385-c4cf-4c6a-8cef-a04f63c3d0cb' \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--header 'Accept-Language: th'

Response Example

200 OK
JSON Response
{
  "data": {
    "payment": {
      "id": "c0f97950-da1d-4d71-b4ed-d02a6d50a044",
      "seq_num": 2207,
      "source_id": "wpayz",
      "slip_ref": "",
      "slip_payload": {},
      "slip_raw_signature": null,
      "slip_hash": null,
      "order_id": "ORDER-1759951722608",
      "order_user_reference": "12345",
      "order_auto_cancel_previous": true,
      "order_display_mode": "FIAT",
      "request_ip": null,
      "request_platform": "API",
      "payment_method_type": "PROMPTPAY_QR",
      "payment_provider": "EBANK",
      "invoice_type": "FIAT",
      "from_currency": "THB",
      "to_currency": "THB",
      "chain": "offchain",
      "network": "testnet",
      "to_wallet_id": null,
      "from_wallet_id": null,
      "address_type": "bank_account",
      "txid": "0x00",
      "address": "0x00",
      "from_address": null,
      "amount": "3100.5",
      "payment_amount": 3100.5,
      "payer_paid_currency": "THB",
      "payer_paid_amount": 3100.5,
      "payer_pay_network_fee": false,
      "payer_bank_account_number": "4052512594",
      "merchant_promptpay_id": "0775568003223",
      "merchant_amount": 3063.43,
      "merchant_number": "6123013742",
      "merchant_name": "บริษัท พีพีเคพี ไลฟ์ มาร์เก็ตติ้ง จำกัด",
      "merchant_provider": "SCB",
      "ebank_account_id": "7ca5907e-5446-4220-943e-aa17b67d36c9",
      "one_time_address": false,
      "is_multiple_order": true,
      "lifetime": 900,
      "expired_at": "2025-10-08T19:43:51.574Z",
      "fee_subtract": 0,
      "discount_percent": 0,
      "discount_amount": 0,
      "accuracy_percent": 0,
      "support_currencies": null,
      "except_currencies": null,
      "additional_data": {
        "description": "test create payment"
      },
      "auto_convert": false,
      "convert_to": "USDT",
      "payment_qr": "00020101021229370016A0000006770101110213077556800322353037645802TH54073100.646304DEC0",
      "url_return": "http://example.com/home_page",
      "url_success": "http://example.com/success_page",
      "url_failed": "http://example.com/failed_page",
      "exchange_rate": 1,
      "exchange_rate_source": "COINGECKO",
      "tx_value": 95.585,
      "fx_rate": {
        "USD": 2.947,
        "THB": 2.947,
        "GBP": 128.745,
        "JPY": 0.649,
        "IDR": 0.006,
        "EUR": 112.041,
        "INR": 1.078,
        "HKD": 12.283,
        "KRW": 0.068,
        "CNY": 13.426,
        "RUB": 1.159,
        "SGD": 74.181,
        "AED": 26.024
      },
      "payment_status": "PAYMENT_PAID",
      "payment_match_type": "EXACTLY",
      "is_completed": true,
      "status": "SUCCESS",
      "audit_by_user_id": null,
      "audit_time": "2025-10-08T19:29:16.132Z",
      "webhook_request_id": null,
      "sequence_time": "2025-10-08T19:28:51.602Z",
      "created_at": "2025-10-08T19:28:51.602Z",
      "updated_at": "2025-10-08T19:29:16.135Z",
      "owned_by_group": "5a5e6247-d7c3-4b86-b67d-dab9a052653d",
      "owned_by_group_parent": "1990a106-c97f-4c8f-b751-12879d931bdc",
      "organization_id": "5f5a3ae8-6fa4-47fd-bb4f-231935a32eb8",
      "agent_id": "c5688e45-584f-4d54-8fbe-b07179034917"
    },
    "transaction": null,
    "transaction_fiat": {
      "id": "b1522a4d-c765-43e9-8912-822ae1c92099",
      "seq_num": 301,
      "source_id": "wpayz",
      "unique_hash": "806818fd45e12cdefe8ce8b210af51ab60c631559e489c1c3e2d3e7719886734",
      "order_id": "ORDER-1759951722608",
      "order_user_reference": "12345",
      "email": "",
      "type": "RECEIVE",
      "status": "COMPLETED",
      "reference": "c0f97950-da1d-4d71-b4ed-d02a6d50a044",
      "currency": "THB",
      "from_bank": "SCB",
      "from_address": "4052512594",
      "from_name": "รณชิต ราโช",
      "to_bank": "SCB",
      "to_address": "6123013742",
      "to_name": "บริษัท พีพีเคพี ไลฟ์ มาร์เก็ตติ้ง จำกัด",
      "amount": 3100.5,
      "tx_date": "09/10/2025 02:29",
      "balance": 0,
      "detail": "เพิ่มเงินจากสลิป 3100.5 บาท เข้าบัญชี 6123013742 วันที่/เวลา 09/10/2025 02:29",
      "alt_text": "3100.5/6123013742/THB/09/10/2025 02:29",
      "tx_unix_time": 1759976940000,
      "message_time": 1759951731602,
      "message_id": "c0f97950-da1d-4d71-b4ed-d02a6d50a044",
      "fee": 1.2,
      "fee_amount": 37.206,
      "realized_amount": 3063.294,
      "fx_rate": {
        "AED": 351.082,
        "CNY": 680.517,
        "EUR": 81.546,
        "GBP": 70.966,
        "HKD": 743.816,
        "IDR": 1592346.542,
        "INR": 8473.467,
        "JPY": 14071.211,
        "KRW": 134049.845,
        "RUB": 7885.428,
        "SGD": 123.165,
        "THB": 3100.49,
        "USD": 3100.49
      },
      "tx_value": 95.585,
      "extra_fee_network": 0,
      "metadata": null,
      "sequence_time": "2025-10-08T19:29:16.265Z",
      "created_at": "2025-10-08T19:28:51.602Z",
      "updated_at": "2025-10-08T19:29:16.283Z",
      "owned_by_group": "5a5e6247-d7c3-4b86-b67d-dab9a052653d",
      "owned_by_group_parent": "1990a106-c97f-4c8f-b751-12879d931bdc",
      "organization_id": "5f5a3ae8-6fa4-47fd-bb4f-231935a32eb8",
      "agent_id": "c5688e45-584f-4d54-8fbe-b07179034917",
      "payment_id": "c0f97950-da1d-4d71-b4ed-d02a6d50a044",
      "slip_id": null,
      "webhook_id": null,
      "webhook_response_id": null,
      "webhook_request_id": null
    }
  },
  "success": true,
  "code": 0
}