Remotehost Docs

Cancel an add-on

DELETE
/orgs/{orgId}/addons/{listingId}/purchase

Cancels at the end of the paid period: nothing is refunded or charged, the add-on stays until endsAt, and it does not renew. Allowed while the org's payment is failing too, so a recovery does not renew it. Buying it again before endsAt keeps it with no second charge. Needs billing.manage; allowed whatever the listing's state or the org's policy. Answers 200 only with the cancel in place. Audited.

Authorization

bearerAuth
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

orgId*string
listingId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/orgs/string/addons/string/purchase"
{  "purchase": {    "id": "string",    "listingId": "string",    "status": "pending",    "source": "billing",    "quantity": 0,    "pendingQuantity": 0,    "startedAt": "string",    "endsAt": "string",    "endedAt": "string"  },  "confirmationUrl": "string"}