POST https://sandbox.payme.io/api/cancel-subscriptionPOST https://live.payme.io/api/cancel-subscriptionseller_payme_id (required): Our unique seller IDsub_payme_id (required): Our unique subscription IDThis endpoint is used to cancel existing subscriptions.
This endpoint takes no path, query or header parameters.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
seller_payme_id |
string | yes | Our unique seller ID |
sub_payme_id |
string | yes | Our unique subscription ID |
language |
string | no | Changes the error message language to English. Default value is Hebrew (he) |
{
"seller_payme_id": "string",
"sub_payme_id": "string",
"language": "string"
}
curl -X POST 'https://sandbox.payme.io/api/cancel-subscription' \
-H 'Content-Type: application/json' \
--data-raw '{
"seller_payme_id": "string",
"sub_payme_id": "string",
"language": "string"
}'
const response = await fetch("https://sandbox.payme.io/api/cancel-subscription", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"seller_payme_id": "string",
"sub_payme_id": "string",
"language": "string"
}),
});
console.log(await response.text());
import requests
response = requests.post(
"https://sandbox.payme.io/api/cancel-subscription",
json={
"seller_payme_id": "string",
"sub_payme_id": "string",
"language": "string",
},
)
print(response.text)
<?php
$body = <<<'BODY'
{
"seller_payme_id": "string",
"sub_payme_id": "string",
"language": "string"
}
BODY;
$ch = curl_init('https://sandbox.payme.io/api/cancel-subscription');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
| Field | Type | Description |
|---|---|---|
status_code |
string | Cancellation status code ( 0 - Success, 1 - Failure) |
{
"status_code": "string"
}
| Field | Type | Description |
|---|---|---|
status_code |
string | Cancellation status code ( 0 - Success, 1 - Failure) |
{
"status_code": "string"
}