Transactions

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
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-08-23T18:42:01.282Z",
    "updated_at": "2025-08-23T18:42:01.282Z",
    "expire_at": "2025-08-23T18:42:01.282Z",
    "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
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-08-23T18:42:01.282Z",
  "updated_at": "2025-08-23T18:42:01.282Z",
  "expire_at": "2025-08-23T18:42:01.282Z",
  "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"
  }
}

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
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-08-23T18:42:01.282Z",
  "updated_at": "2025-08-23T18:42:01.282Z",
  "expire_at": "2025-08-23T18:42:01.282Z",
  "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
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-08-23T18:42:01.282Z",
  "updated_at": "2025-08-23T18:42:01.282Z",
  "expire_at": "2025-08-23T18:42:01.282Z",
  "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"
  }
}

Last updated

Was this helpful?