Deactivate listing API allows you to deactivate a listing. A listing is deactivated when it doesn't have an ask or when it contains an expired ask.
Bad Request
Unauthorized
Not Found
Internal Server Error
curl -i -X PUT \ https://api.stockx.com/v2/selling/listings/:listingId/deactivate \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "listingId": "98e2e748-8000-45bf-a624-5531d6a68318",
- "operationId": "98e2e748-8000-45bf-a624-5531d6a68318",
- "operationType": "CREATE",
- "operationStatus": "PENDING",
- "operationInitiatedBy": "USER",
- "operationInitiatedVia": "IOS",
- "createdAt": "2021-11-09T12:44:31.000Z",
- "updatedAt": "2021-11-09T12:44:31.000Z",
- "changes": {
- "additions": {
- "active": true,
- "askData": {
- "amount": "100",
- "currency": "USD",
- "expiresAt": "2022-08-24T18:06:43.600Z"
}
}, - "updates": {
- "updatedAt": "2021-11-09T12:44:31.000Z"
}, - "removals": { }
}, - "error": null
}