# Service Edit

The Service Edit API Route can be used to edit the Stripe subscription of a service. Use-cases include those mentioned below:

```
Change Payment Method
Turn-on/off Automatic Payment Renewal
Mark As Pending Cancellation
```

A common use-case would be to change a Service's automatic-payment method, to do this, you would use the Payment Method Search API Route to display a list of all active Stripe payments of the client and you'd then allow them to pick a payment method. Then you would use the selected payment\_method\_id in a Service Edit API Route call to change the subscriptions payment method.

Another common use-case would be to mark a service as pending cancellation at the end of its current term. This can be with the Service Edit API Route and you can pass back service feedback in the call to give the reason for the pending cancellation. If the customer changes their mind, they can easily remove the pending cancellation marker by again using the Service Edit API Route and setting service\_pending\_cancellation to <mark style="background-color:purple;">false</mark>.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://internal.developer.documentation.private.user.pingproxies.com/service-management/service-edit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
