Skip to main content

Extend a supply

This method allows a TEOS user to extend the expiration of an existing supply. Supply represents an offer created by a user to trade a specific amount of one asset for a specific amount of another asset. By extending a supply, the user can keep it active for a longer period, allowing other users to execute trades or participate in warps using this supply.

📘 Learn more about supplies.

Request Endpoint​

POST
/odata/v1.0/Supplies({key})/Extend

Preconditions:

  • The supply must exist.
  • The supply must not be expired or deleted.

Parameters​

NameTypeDescriptionMandatory
keystringThe identifier of the supply to extend✅

Example request​

POST /Supplies('0x1EAEFD42D684567ABDC7000193A96C4653DE1314DB20000167242CB20000024E')/Extend

Content-Type: application/json

{
"expiryTime": "2024-02-15T23:25:24.295Z"
}

Example response​

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

Response Fields Description​

FieldTypeDescription
IdstringIdentifier of the transaction
StatestringCurrent state of the transaction
BlockchainTransactionIdstringID of the transaction on blockchain
CorrelationIdstringCorrelation identifier for tracking
TypestringType of the transaction
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 if transaction was revoked by blockchain
OnRevokedByUserdatetimeTimestamp if transaction was revoked by user
OnRevokedByTxServerdatetimeTimestamp if transaction was revoked by transaction server
SignedBystringAddress or identifier of the signer
CreatedBystringIdentifier of the creator of the transaction
GasPricestringGas price used in blockchain transaction
GasUsedstringGas consumed for transaction execution
DataAsJsonstringAdditional data in JSON format
SigningParametersAsJsonstringSigning parameters in JSON format

Responses​

CodeDescription
201The transaction was successfully created
202Accepted
400The supply extension data is invalid. Error details are included
401Unauthorized