Skip to main content

Delete a supply

This method allows a user to remove an already created supply, making it no longer available for trading or warp execution on the TEOS Platform.

A supply is an offer created by a TEOS user to trade a specific amount of sparks of one digital asset in exchange for sparks of another asset. Supplies are used by other TEOS users when executing trades or warps, and they exist on the blockchain until they are fully consumed, expired, or deleted.

๐Ÿ“˜ Learn more about supplies.

Request Endpoint:โ€‹

DELETE
/odata/v1.0/Supplies({key})

Sample request:

DELETE /Supplies('0x261A23135CE91032AA960001A76D397041B5B3A8E5FF000146B799B6000001CC')

Parametersโ€‹

NameDescription
keystring (path) โ€” The identifier of the supply to delete

Media type: application/json

Example Response Body:โ€‹

{
"Id": "C0D34D73-6FD3-40F2-A7E1-08D9412448F7",
"State": "3",
"BlockchainTransactionId": "0x748ac47e7226cae0e4e13373375f33ab9e4d43ef29d85d233162a7e7e913703b",
"CorrelationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Type": "ActivateAsset",
"OnCreated": "2025-10-08T09:22:45.695Z",
"OnUpdated": "2025-10-08T09:22:45.695Z",
"OnSubmitted": "2025-10-08T09:22:45.695Z",
"OnCommitted": "2025-10-08T09:22:45.695Z",
"OnConfirmed": "2025-10-08T09:22:45.695Z",
"OnRevokedByBlockchain": "2025-10-08T09:22:45.695Z",
"OnRevokedByUser": "2025-10-08T09:22:45.695Z",
"OnRevokedByTxServer": "2025-10-08T09:22:45.695Z",
"SignedBy": "string",
"CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"GasPrice": "string",
"GasUsed": "string",
"DataAsJson": "string",
"SigningParametersAsJson": "string"
}

Variables Description:โ€‹

FieldTypeDescription
IdstringUnique identifier of the supply deletion transaction
StatestringCurrent state of the transaction
BlockchainTransactionIdstringBlockchain transaction ID associated with the deletion
CorrelationIdstringCorrelation ID for tracking the operation
TypestringType of operation, e.g., โ€œActivateAssetโ€
OnCreateddatetimeTimestamp when the transaction was created
OnUpdateddatetimeTimestamp when the transaction was last updated
OnSubmitteddatetimeTimestamp when the transaction was submitted
OnCommitteddatetimeTimestamp when the transaction was committed
OnConfirmeddatetimeTimestamp when the transaction was confirmed
OnRevokedByBlockchaindatetimeTimestamp when revoked by blockchain (if applicable)
OnRevokedByUserdatetimeTimestamp when revoked by user (if applicable)
OnRevokedByTxServerdatetimeTimestamp when revoked by transaction server (if applicable)
SignedBystringAddress that signed the transaction
CreatedBystringUser ID who created the transaction
GasPricestringGas price used for blockchain execution
GasUsedstringGas used for blockchain execution
DataAsJsonstringAdditional transaction data in JSON format
SigningParametersAsJsonstringSigning parameters in JSON format

Responsesโ€‹

CodeDescription
200OK
201The transaction was successfully created
400The supply data is invalid. Error details are included
401Unauthorized