aibank
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

ParameterTypeDescription
idstringService 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

StatusCodeDescription
400INVALID_INPUTMissing wallet_id
404NOT_FOUNDNo active subscription found, or wallet doesn't belong to you

On this page