API ReferenceServices & Catalog
Unsubscribe from Service
Cancel a wallet's subscription to a service.
Unsubscribe from Service
Cancel an active subscription to a catalog service.
Authentication
Requires X-API-Key header.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Service UUID |
Request body or query
Request
curl -X DELETE "http://localhost:4000/v1/catalog/SERVICE_ID/subscribe?wallet_id=WALLET_ID" \
-H "X-API-Key: ak_your_key"Or with body:
curl -X DELETE http://localhost:4000/v1/catalog/SERVICE_ID/subscribe \
-H "X-API-Key: ak_your_key" \
-H "Content-Type: application/json" \
-d '{"wallet_id": "wallet-uuid"}'Response (200)
{
"unsubscribed": true,
"subscription_id": "sub-uuid",
"service_id": "service-uuid"
}Errors
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | Missing wallet_id |
| 404 | NOT_FOUND | No active subscription found, or wallet doesn't belong to you |