DELETE
/
public
/
user
/
service
/
cancel
/
{service_id}
curl --request DELETE \
  --url https://api.pingproxies.com/1.0/public/user/service/cancel/{service_id} \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-Private-Key: <api-key>' \
  --header 'X-API-Public-Key: <api-key>' \
  --data '{
  "cancel_comment": "<string>",
  "cancel_feedback": "too_expensive"
}'
{
  "edited": [
    "API-1234-5678"
  ],
  "message": "Service successfully canceled.",
  "proxy_edited": [
    "a7f8b4f1-da8d-4e9f-bdd2-21e74d2eafff",
    "f5bade6e-29b2-4a8a-bd4d-21c528794dd6"
  ]
}

Authorizations

X-API-Private-Key
string
header
required

Private API key for user-level authentication.

X-API-Public-Key
string
header
required

Public API key for user-level authentication.

Headers

Content-Type
string
default:application/json
required

Content type for the request body as application/json.

Path Parameters

service_id
string
required

ID of the Service to cancel

Body

application/json
Service cancellation details.
cancel_comment
string

A short comment explaining the reason for cancellation. Maximum 300 characters.

Maximum length: 300
cancel_feedback
enum<string>

Feedback code indicating the cancellation reason.

Available options:
too_expensive,
missing_features,
switched_service,
unused,
customer_service,
too_complex,
low_quality,
other

Response

200 - application/json
Successfully canceled the service.
edited
string[]

List of service IDs that were successfully canceled.

The service ID.

Example:
["API-1234-5678"]
message
string

Success message indicating the successful cancellation of the service.

Example:

"Service successfully canceled."

proxy_edited
integer[]

List of proxy IDs that were affected by the cancellation of the service.

The proxy ID.

Example:
[
  "a7f8b4f1-da8d-4e9f-bdd2-21e74d2eafff",
  "f5bade6e-29b2-4a8a-bd4d-21c528794dd6"
]