{"_id":"5876316fb5092c1900586e66","parentDoc":null,"__v":3,"version":{"_id":"55aa7d983be8f60d00041d45","__v":20,"project":"55aa7d973be8f60d00041d42","createdAt":"2015-07-18T16:23:52.273Z","releaseDate":"2015-07-18T16:23:52.273Z","categories":["55aa7d983be8f60d00041d46","55aacf4e3be8f60d00041d89","55aacfaae2bdcb0d00c7466e","55aacfb3e2bdcb0d00c7466f","55aacfca3be8f60d00041d8a","55b67da3f8105a2f00c351ab","55b7cae4aea7c8190058ba5b","55b9218afeef5135009b7db3","55c182616d7d2921006da013","5631407afa40240d007c8c60","56548b9c9c4c6d0d00aeda0c","572b9137ff3ba10e00b4abb4","572b9150ff3ba10e00b4abb5","581b83288ca41f0f007e4fb6","585065fa70cbe00f00835bb8","58641eba0355f31900380492","58861760b4816e19005c9941","58a316cb254c401b00a049ce","58ac80dbd5e1570f00d1c328","59f72b4991121a00104f036e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"55aacfb3e2bdcb0d00c7466f","pages":["55ac5a1c63a6b60d00661784","55ac5e6c63a6b60d00661785","55b690b8c2e909190073eeb5","55b690f6c2e909190073eeb8","55b7e118568be2230092bbc7","55de05d0746ace2b00dd6f97"],"project":"55aa7d973be8f60d00041d42","__v":6,"version":"55aa7d983be8f60d00041d45","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-18T22:14:11.800Z","from_sync":false,"order":4,"slug":"accounts","title":"Account"},"githubsync":"","project":"55aa7d973be8f60d00041d42","user":"55aa7d625d3abb0d0012f3da","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-11T13:21:51.118Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"name":"","code":"{\n\t\"paymentMethod\":\"MERCADOPAGO\",\n  \"token\":\"sha256AESsha1ahreloco\",\n\t\"newPlan\":\"CLIENGO_FULL\",\n   \"id\": \"sha256AESsha1ahreloco\",\n   \"public_key\": \"PUBLIC_KEY\",\n   \"card_id\": null,\n   \"luhn_validation\": true,\n   \"status\": \"active\",\n   \"date_used\": null,\n   \"card_number_length\": 16,\n   \"date_created\": \"2015-04-16T13:06:25.525-04:00\",\n   \"first_six_digits\": \"555555\",\n   \"last_four_digits\": \"3704\",\n   \"security_code_length\": 3,\n   \"expiration_month\": 6,\n   \"expiration_year\": 2017,\n   \"date_last_updated\": \"2015-04-16T13:06:25.525-04:00\",\n   \"date_due\": \"2015-04-24T13:06:25.531-04:00\",\n   \"live_mode\": false,\n   \"cardholder\": {\n       \"identification\": {\n           \"number\": \"23456789\",\n           \"type\": \"type\"\n       },\n       \"name\": \"name\"\n   }\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[{"code":"","language":"text"}]},"auth":"required","params":[{"_id":"5876316fb5092c1900586e68","ref":"","in":"body","required":true,"desc":"Expects: MERCADOPAGO, PAYPAL.","default":"","type":"string","name":"paymentMethod"},{"_id":"5876316fb5092c1900586e67","ref":"","in":"body","required":true,"desc":"The token used to validate the payment. Has to be obtained with MercadoPago/Paypal beforehand.","default":"","type":"string","name":"token"},{"_id":"5876447e36358c0f004bde28","ref":"","in":"body","required":true,"desc":"Plan to which the user is subscribing to.","default":"","type":"string","name":"newPlan"}],"url":"/account/subscription"},"isReference":false,"order":3,"body":"","excerpt":"","slug":"accountsubscription","type":"endpoint","title":"/account/subscription"}

post/account/subscription


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

paymentMethod:
required
string
Expects: MERCADOPAGO, PAYPAL.
token:
required
string
The token used to validate the payment. Has to be obtained with MercadoPago/Paypal beforehand.
newPlan:
required
string
Plan to which the user is subscribing to.

Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}