🔁

Transaction → Request

Dán JSON transaction, nhận về request API + lệnh curl tương ứng.

Transaction (input)
Request (output)
{
  "method": "POST",
  "url": "/api/v1/transfers",
  "headers": {
    "Content-Type": "application/json",
    "X-Request-Id": "TX-10293",
    "X-Idempotency-Key": "TX-10293"
  },
  "body": {
    "reference": "TX-10293",
    "operation": "transfer",
    "amount": 250000,
    "currency": "VND",
    "source": "0123456789",
    "destination": "0987654321",
    "description": "Thanh toan don hang",
    "channel": "mobile",
    "timestamp": "2026-06-24T08:30:00Z"
  }
}
cURL
curl -X POST '/api/v1/transfers' \
  -H 'Content-Type: application/json' \
  -H 'X-Request-Id: TX-10293' \
  -H 'X-Idempotency-Key: TX-10293' \
  -d '{"reference":"TX-10293","operation":"transfer","amount":250000,"currency":"VND","source":"0123456789","destination":"0987654321","description":"Thanh toan don hang","channel":"mobile","timestamp":"2026-06-24T08:30:00Z"}'

Transaction → Request chuyển một bản ghi giao dịch dạng JSON thành request API hoàn chỉnh kèm lệnh cURL tương ứng. Công cụ giúp lập trình viên hình dung nhanh payload, header idempotency và cách gọi API chính xác trước khi tích hợp.

  • ✓Sinh request API và lệnh cURL từ JSON transaction.
  • ✓Tuỳ chỉnh HTTP method và endpoint theo nhu cầu.
  • ✓Tự thêm header X-Request-Id / Idempotency-Key.
  • ✓Copy nhanh JSON hoặc cURL để thử nghiệm tức thì.