Resmic
  • Resmic SDK
    • 👋Introduction
      • ðŸŠķOverview
    • ðŸ’ŦGetting Started
      • 🏃Installation
      • ðŸ‘ūUsage
        • CryptoPayment
        • For Starknet
        • For EVM
      • 📃Reference
    • 💁Support
      • ⛓ïļBlockchain
      • 🊙Tokens
      • 💰Wallets
    • 🊄Demo
      • Sample React app
    • 📰Whitepaper
      • Github
    • 🛂Contact
  • Resmic Pro
    • Introduction to Resmic Pro
    • Getting Started
    • API Authentications & Security
    • Payment Integration
    • Order Status
    • Transaction Details
    • Webhooks & Notifications
    • Supported Chains & Tokens
    • iFrame
    • Demo
      • Sample React app
    • Failed Transactions & Stuck Payments
    • Contact
  • Quick Payments
    • 🔗Quick Links
      • âœĻGetting Started
      • ðŸĪSharing Quick Links
      • 🚧Errors
    • Invocie
Powered by GitBook
On this page
  • Sample Request
  • Sample Response
  1. Resmic Pro

Transaction Details

Endpoint to get transaction details.

This endpoint retrieves the payment transaction status and details of a session.

curl --location 'https://api.resmic.com/api/v1/makepayment/transaction-details?session_id=Session_Id
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'x-user-id: <USER_ID>' \

Sample Request

const axios = require('axios');
let session_id = '';

let config = {
  method: 'get',
  url: `https://api.resmic.com/api/v1/makepayment/transaction-details?session_id=${session_id}`,
  headers: { 
    'x-api-key': 'API_KEY', // Add the API_KEY here
    'x-user-id': 'USER_ID' // Add the user_id here.
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Sample Response

{
    "status": 200,
    "success": true,
    "message": "Session reterived",
    "data": {
        "session_id": "899e9dde-fda9-4386-9620-065756016805",
        "created_at_utc:": "2025-02-22T10:01:08.132Z",
        "transaction_hash": "0xf85be61c64d788d284c0bd7337742cc31c5bdfbac10d061b24868889caafc944",
        "amount": "100",
        "blockchain": "Sepolia",
        "token": "DAI",
        "coupon_code": null,
        "from_wallet_address": "0x056397760b973bfb921bc10be9da5034b1e921d7",
        "status": "Completed"
    }
}

Possible Payment Status values (case sensitive)

  1. Completed

  2. Failed

PreviousOrder StatusNextWebhooks & Notifications

Last updated 19 days ago