{"__v":2,"_id":"563e201c1347cf0d004182c5","category":{"__v":2,"_id":"563e184077681a0d00d96a02","pages":["563e201c1347cf0d004182c5","563e20601347cf0d004182c6"],"project":"54e405191e51932d006abc39","version":"55fa37c88065a10d004e5bb6","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-07T15:26:56.680Z","from_sync":false,"order":5,"slug":"subscriptions","title":"Subscriptions"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"54e405191e51932d006abc39","user":"54e4044e8ef7552300409dcb","version":{"__v":7,"_id":"55fa37c88065a10d004e5bb6","project":"54e405191e51932d006abc39","createdAt":"2015-09-17T03:47:20.956Z","releaseDate":"2015-09-17T03:47:20.956Z","categories":["55fa37ca8065a10d004e5bb7","55fa37ca8065a10d004e5bb8","55fa37ca8065a10d004e5bb9","55fa37ca8065a10d004e5bba","55fca6bf34ae7c0d00ab8ea0","55ff80fd9e7ccf0d000a1d93","560220af7435de0d00fabd0d","56107f21bb9d920d00303e70","563e184077681a0d00d96a02","56fafc6596ec7e0e002ac85f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"REST V3","version_clean":"3.1.0","version":"3.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-07T16:00:28.171Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"curl","code":"curl -X PATCH -H \"X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_2bb1e714edd311e6bd04e285d6015267\" -H \"Content-Type: application/json\" -d '{\n  \"is_active\": true,\n  \"scope\": [\n    \"USERS|POST\",\n    \"NODES|POST\",\n    \"TRANS|POST\"\n  ]\n}' \"https://sandbox.synapsepay.com/api/3/subscriptions/589b6adec83e17002122196c\"","name":""},{"language":"python","code":"#ToDo"},{"name":"Node.js","language":"javascript","code":"//ToDo"},{"code":"#ToDo","language":"ruby"}]},"method":"patch","results":{"codes":[{"name":"","code":"{\n    \"_id\": \"589b6adec83e17002122196c\",\n    \"_links\": {\n        \"self\": {\n            \"href\": \"https://uat-api.synapsefi.com/v3.1/subscriptions/589b6adec83e17002122196c\"\n        }\n    },\n    \"_v\": 2,\n    \"client_id\": \"589acd9ecb3cd400fa75ac06\",\n    \"is_active\": true,\n    \"scope\": [\n        \"USERS|POST\",\n        \"NODES|POST\",\n        \"TRANS|POST\"\n    ],\n    \"url\": \"http://requestb.in/15k15qr1\"\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5573b11e91ce6e190023b76a","ref":"","in":"body","required":false,"desc":"This lets you toggle the subscription as active and inactive","default":"","type":"boolean","name":"is_active"},{"_id":"563e212306767d170080b45a","ref":"","in":"body","required":false,"desc":"URL for the webhooks","default":"","type":"string","name":"url"},{"_id":"55fa4d6f764f5021009506c9","ref":"","in":"body","required":false,"desc":"Scope of the subscription","default":"","type":"array_string","name":"scope"}],"url":"/subscriptions/:subscription_id"},"isReference":true,"order":5,"body":"","excerpt":"","slug":"update-subscription","type":"endpoint","title":"Update Subscription"}