This API call returns a new subscription id for your Synced account which can be used for any further calls in the API.
API Function: regenerate_subscription_id
Name | Type | Description |
username | string | Your API username. You should have received this with your account |
subscription_id | string | Your Subscription ID. You can copy or regenerate it from your API management interface. |
Response fields:
Name | Type | Description |
code | string | The result of the operation, can be success or error |
message | string | If code is error this field will be filled with error message |
api_subscription_id | string | If code is success this field will be filled with the new api subscription id which can be used for any further calls in the api |
<?php $api_username = '*******'; $api_subscription = '*******'; try { $client = new SoapClient('https://synced.io/api/v2_account?wsdl'); $response = $client->regenerate_subscription_id($api_username, $api_subscription); print_r($response); } catch (Exception $e) { print_r($e); echo $client->__getLastRequest() . "\n"; exit; } ?>