PATCH https://sandbox.payme.io/api/subscriptions/{sub_payme_id}/resumePATCH https://live.payme.io/api/subscriptions/{sub_payme_id}/resumeNo credentials are documented for this endpoint.
Relevant only for Direct API Integration
This endpoint is used to resume subscriptions is in status "paused". You can find more information in our guide - How to create a subscription .
| Name | In | Type | Required | Description |
|---|---|---|---|---|
PayMe-Merchant-Key |
header | string | no | MPL. Your private key in PayMe system. |
sub_payme_id |
path | string | yes |
Content type: application/json
curl -X PATCH 'https://sandbox.payme.io/api/subscriptions/<sub_payme_id>/resume' \
-H 'Content-Type: application/json' \
--data-raw '{}'
const response = await fetch("https://sandbox.payme.io/api/subscriptions/<sub_payme_id>/resume", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
console.log(await response.text());
import requests
response = requests.patch(
"https://sandbox.payme.io/api/subscriptions/<sub_payme_id>/resume",
json={},
)
print(response.text)
<?php
$body = <<<'BODY'
{}
BODY;
$ch = curl_init('https://sandbox.payme.io/api/subscriptions/<sub_payme_id>/resume');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;