{"templateId":"markdown","versions":[{"version":"9.0","label":"9.0","link":"/classes/whmcs/service/cancellationrequest","default":true,"active":true,"folderId":"9d7dc099"},{"version":"8.13","label":"8.13","link":"/classes/8.13/whmcs/service/cancellationrequest","default":false,"active":false,"folderId":"9d7dc099"}],"sharedDataIds":{"sidebar":"sidebar-classes/@8.13/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"WHMCS\\Service\\CancellationRequest","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"whmcsservicecancellationrequest","__idx":0},"children":["WHMCS\\Service\\CancellationRequest"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Class"]}," · extends ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AbstractModel"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A service cancellation request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Should a Client decide to cancel a Service, they create a CancellationRequest."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CancellationRequests can either be handled immediately, or at the end of a billing cycle,"," ","per the client's request."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The CancellationRequest exists as a record for the WHMCS site operator for why the client"," ","requested the billing system to cancel their product."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"methods","__idx":1},"children":["Methods"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"service","__idx":2},"children":["service"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"public function service()\n","lang":"php"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each cancellation request belongs to one service."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Returns"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo"]}]}]},"headings":[{"value":"WHMCS\\Service\\CancellationRequest","id":"whmcsservicecancellationrequest","depth":1},{"value":"Methods","id":"methods","depth":2},{"value":"service","id":"service","depth":3}],"frontmatter":{"title":"WHMCS\\Service\\CancellationRequest","seo":{"title":"WHMCS\\Service\\CancellationRequest"}},"lastModified":"2026-08-05T14:37:16.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/classes/whmcs/service/cancellationrequest","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}