Transactions

Retrieves all cryptocurrency transactions associated with an invoice
Query parameters
vinteger · enumRequiredPossible values:
API version, must be 1
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-06-27T12:00:30.037Z",
"updated_at": "2025-06-27T12:00:30.037Z",
"expire_at": "2025-06-27T12:00:30.037Z",
"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"
}
}
]
Retrieves detailed information about a specific transaction
Path parameters
idstring · uuidRequired
Transaction ID
Query parameters
vinteger · enumRequiredPossible values:
API version, must be 1
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-06-27T12:00:30.037Z",
"updated_at": "2025-06-27T12:00:30.037Z",
"expire_at": "2025-06-27T12:00:30.037Z",
"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"
}
}
Initiates a new cryptocurrency transaction for an invoice. Specifies the sending address and cryptocurrency to be used.
Query parameters
vinteger · enumRequiredPossible values:
API version, must be 1
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-06-27T12:00:30.037Z",
"updated_at": "2025-06-27T12:00:30.037Z",
"expire_at": "2025-06-27T12:00:30.037Z",
"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"
}
}
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 · enumRequiredPossible values:
API version, must be 1
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-06-27T12:00:30.037Z",
"updated_at": "2025-06-27T12:00:30.037Z",
"expire_at": "2025-06-27T12:00:30.037Z",
"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?