Skip to main content

Delist From Secondary Market

Takes one of the user's own open listings off the secondary market. The listing is named by its deal_id in the path (take it from List User Token Listings); there is no request body. The delist is signed by the wallet recorded on the listing, so no wallet_id is sent.

The call is asynchronous: it records a user transaction (type = 4, delist on secondary market) and answers with its transaction_id. Poll Get User Transaction until status is 3 (done) or 4 (error); the listing is withdrawn only after 3.

Only an open listing of this user can be delisted. A listing of another user, one that is not open, or one that names no wallet is answered as not found.

Required permission: secondary-market:trade

Request​

POST /v2/users/{user_id}/secondary-markets/tokens/{token_id}/deals/{deal_id}/delist

Parameters​

NameTypeInDescription
user_idstringpathRequired. Seller's user ID
token_idstringpathRequired. Token ID
deal_idintegerpathRequired. Deal ID of the listing to delist

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request POST \
--url '{{baseUrl}}/v2/users/680c02896d91ca0145cfeb81/secondary-markets/tokens/68ae06cfcccf4e8fc19362d1/deals/12/delist' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"transaction_id": "6913872755654191dede37da"
}

Response Fields​

FieldTypeDescription
transaction_idstringUser transaction that delists the listing. Poll it with Get User Transaction

Errors​

StatusCodeDescription
40010015deal_id is missing or not a positive integer — see details
40010016token_id is not a valid 24-character hex id
40011001Domain 11: no such listing for this user on this token, the listing is not open, or it names no wallet
40010001Token not found (domain 5)
50010000Unexpected server-side failure

See Errors for the error format and common codes.