SimpleTech Labs
WebsiteConsoleAPITwitterTelegram ChannelTelagram Chat
SimplePay
SimplePay
  • Introduction
    • Overview
    • Core concepts
      • Transparency
      • Non-Custodial
      • Direct payments
      • Lowest Fees
    • Protocol
    • Security
      • Collected data
  • GETTING STARTED
    • Create an App
    • Setup Client
      • Widget
    • Setup Server
      • Webhooks
    • No-Code
      • Web and Telegram Store
  • Javascript SDK
    • Introduction
    • Services
      • Cryptocurrency
      • Currency
      • Invoice
  • Components
    • Payment Widget
  • Simple ID
    • Auth.js integration Guide
  • API Documentation
    • Overview
    • Apps
      • Get App Info
      • Dev Mode
    • Wallets
    • Assets
      • Fiat Currency
      • Cryptocurrency
    • Products
    • Invoices
      • Methods
    • Transactions
      • Page 1
    • Billing
  • Referral Program
    • 💰Referral Program Basics
  • Legal
    • 📄Terms of Use
    • 🔏Privacy Policy
    • 🍪Cookies
Powered by GitBook
On this page

Was this helpful?

  1. API Documentation

Transactions

PreviousMethodsNextPage 1

Last updated 5 months ago

Was this helpful?

Get Invoice Transactions List

get

Retrieves all cryptocurrency transactions associated with an invoice

Query parameters
vinteger · enumRequired

API version, must be 1

Possible values:
invoice_idstring · uuidRequired

ID of the invoice to get transactions for

Responses
200
List of transactions successfully retrieved
application/json
401
Unauthorized - Invalid or missing authentication token
404
Invoice not found
get
GET /transactions HTTP/1.1
Host: api.simplepay.ai
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "invoice_id": "123e4567-e89b-12d3-a456-426614174000",
    "from": "text",
    "to": "text",
    "rate": "text",
    "amount": "text",
    "hash": "text",
    "block": 1,
    "status": "processing",
    "created_at": "2025-05-29T09:41:33.183Z",
    "updated_at": "2025-05-29T09:41:33.183Z",
    "expire_at": "2025-05-29T09:41:33.183Z",
    "cryptocurrency": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "symbol": "text",
      "name": "text",
      "decimals": 1,
      "stable": true,
      "rates": {
        "ANY_ADDITIONAL_PROPERTY": 1
      }
    },
    "network": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "symbol": "text",
      "name": "text",
      "type": "EVM"
    }
  }
]

Get Transaction Details

get

Retrieves detailed information about a specific transaction

Path parameters
idstring · uuidRequired

Transaction ID

Query parameters
vinteger · enumRequired

API version, must be 1

Possible values:
Responses
200
Transaction details successfully retrieved
application/json
401
Unauthorized - Invalid or missing authentication token
404
Transaction not found
get
GET /transaction/{id} HTTP/1.1
Host: api.simplepay.ai
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "invoice_id": "123e4567-e89b-12d3-a456-426614174000",
  "from": "text",
  "to": "text",
  "rate": "text",
  "amount": "text",
  "hash": "text",
  "block": 1,
  "status": "processing",
  "created_at": "2025-05-29T09:41:33.183Z",
  "updated_at": "2025-05-29T09:41:33.183Z",
  "expire_at": "2025-05-29T09:41:33.183Z",
  "cryptocurrency": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "decimals": 1,
    "stable": true,
    "rates": {
      "ANY_ADDITIONAL_PROPERTY": 1
    }
  },
  "network": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "type": "EVM"
  }
}

Cancel Transaction

delete

Cancels a pending transaction. Only transactions that haven't been confirmed on the blockchain can be cancelled.

Path parameters
idstring · uuidRequired

Transaction ID to cancel

Query parameters
vinteger · enumRequired

API version, must be 1

Possible values:
Responses
200
Transaction successfully cancelled
application/json
401
Unauthorized - Invalid or missing authentication token
404
Transaction not found
409
Transaction cannot be cancelled (already confirmed)
delete
DELETE /transaction/{id} HTTP/1.1
Host: api.simplepay.ai
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "invoice_id": "123e4567-e89b-12d3-a456-426614174000",
  "from": "text",
  "to": "text",
  "rate": "text",
  "amount": "text",
  "hash": "text",
  "block": 1,
  "status": "processing",
  "created_at": "2025-05-29T09:41:33.183Z",
  "updated_at": "2025-05-29T09:41:33.183Z",
  "expire_at": "2025-05-29T09:41:33.183Z",
  "cryptocurrency": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "decimals": 1,
    "stable": true,
    "rates": {
      "ANY_ADDITIONAL_PROPERTY": 1
    }
  },
  "network": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "type": "EVM"
  }
}
  • GETGet Invoice Transactions List
  • GETGet Transaction Details
  • POSTCreate Transaction
  • DELETECancel Transaction

Create Transaction

post

Initiates a new cryptocurrency transaction for an invoice. Specifies the sending address and cryptocurrency to be used.

Query parameters
vinteger · enumRequired

API version, must be 1

Possible values:
Body
invoice_idstring · uuidRequired

ID of the invoice to create transaction for

fromstringRequired

Cryptocurrency address that will send the payment

cryptocurrencystringRequired

Symbol of the cryptocurrency to use (e.g., BTC, ETH)

networkstringRequired

Blockchain network to use (e.g., ethereum, tron)

Responses
201
Transaction successfully created
application/json
400
Invalid request parameters
401
Unauthorized - Invalid or missing authentication token
404
Invoice not found
post
POST /transaction HTTP/1.1
Host: api.simplepay.ai
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "invoice_id": "123e4567-e89b-12d3-a456-426614174000",
  "from": "text",
  "cryptocurrency": "text",
  "network": "text"
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "invoice_id": "123e4567-e89b-12d3-a456-426614174000",
  "from": "text",
  "to": "text",
  "rate": "text",
  "amount": "text",
  "hash": "text",
  "block": 1,
  "status": "processing",
  "created_at": "2025-05-29T09:41:33.183Z",
  "updated_at": "2025-05-29T09:41:33.183Z",
  "expire_at": "2025-05-29T09:41:33.183Z",
  "cryptocurrency": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "decimals": 1,
    "stable": true,
    "rates": {
      "ANY_ADDITIONAL_PROPERTY": 1
    }
  },
  "network": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "text",
    "name": "text",
    "type": "EVM"
  }
}