{"info":{"_postman_id":"5d4ea7fd-a270-afd8-fedd-9a0a27c1fb47","name":"RFP Endpoint - mtrenohome","description":"RFP endpoint for online provisioning. <br>\n\nv 1.2<br>\n<b>Users</b><br>\n- create_account<br>\n  \"user_login\" equals \"first name\" + \"last name\"<br>\n  if no \"first name\" or \"last name\" is provided, \"user_login\" equals email string.<br>\n  add parameters \"nickname\",\"phone\" in the body<br>\n<br>\n- update_account<br>\n  add parameters \"nickname\",\"phone\",\"email\" in the body<br>\n<br>\n- retrieve password link<br>\n  get password reset link for user<br>\n<br>\n- Add user to discourse group<br>\n<br>\n\n<b>Membership</b><br>\n- Update membership<br>\n  update membership by user_id & plan_id<br>\n<br>\n- Check membership by user id<br>\n  return user id and exisiting membership<br>\n\nv 1.1\nUser, Membership Endpoint","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Authenticate","item":[{"name":"Authentication","id":"a1307b26-259c-5f9c-49cc-415ac9114c67","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"{wp_username}","type":"text"},{"key":"password","value":"{wp_password}","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/jwt-auth/v1/token","description":"Given wordpress username & access, it will do the authentication on the provider and return a JSON with access_token. <br><br>\n<b>Requires administrator</b><br>\nToken expire in 7 days.\n\n"},"response":[],"_postman_id":"a1307b26-259c-5f9c-49cc-415ac9114c67"}],"id":"83536b56-fc6f-6f0a-53f4-ffb58a35efaf","_postman_id":"83536b56-fc6f-6f0a-53f4-ffb58a35efaf"},{"name":"Users","item":[{"name":"Create WP account","id":"2868f97e-638f-84f7-7c06-ba3b4cdd9823","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt_token}"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"cadypatch+createuser4@gmail.com","type":"text"},{"key":"first_name","value":"cady","type":"text","disabled":true},{"key":"last_name","value":"zzzz","type":"text","disabled":true},{"key":"address","value":"1 Kent St","type":"text"},{"key":"city","value":"Sydney","type":"text"},{"key":"postcode","value":"2000","type":"text"},{"key":"state","value":"NSW","type":"text"},{"key":"country","value":"Australia","type":"text"},{"key":"stripe_customer_id","value":"","type":"text"},{"key":"phone","value":"0433333","type":"text","disabled":true}]},"url":"https://renovatingforprofit.com.au/wp-json/rfp_endpoint/v1/users/create_account/","description":"Create wordpress user.<br>\n\nEmail - required<br>\n\nuser_login = first_name.last_name\n\nif first_name or last_name is not provided, user_login = email string before @\n"},"response":[{"id":"930db7cf-28c2-7029-4af1-03e2296ee01c","name":"Create WP account - success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"cadypatch+createuser5@gmail.com","type":"text"},{"key":"first_name","value":"cady","type":"text"},{"key":"last_name","value":"zzzz","type":"text"},{"key":"address","value":"1 Kent St","type":"text"},{"key":"city","value":"Sydney","type":"text"},{"key":"postcode","value":"2000","type":"text"},{"key":"state","value":"NSW","type":"text"},{"key":"country","value":"Australia","type":"text"},{"key":"stripe_customer_id","value":"","type":"text"},{"key":"phone","value":"0433333","type":"text","disabled":true}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/create_account/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"318","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:36:22 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"4895","body":"{\"user\":{\"data\":{\"ID\":\"12624\",\"user_login\":\"cadypatchcreateuser5@gmail.com\",\"user_pass\":\"$P$BhZ7i4yRFo0ZCFK3alNX6ld7JZe3Uc.\",\"user_nicename\":\"cadypatchcreateuser5gmail-com\",\"user_email\":\"cadypatch+createuser5@gmail.com\",\"user_url\":\"\",\"user_registered\":\"2018-09-21 00:36:20\",\"user_activation_key\":\"\",\"user_status\":\"0\",\"display_name\":\"cadypatchcreateuser5@gmail.com\"},\"ID\":12624,\"caps\":{\"customer\":true},\"cap_key\":\"wp_capabilities\",\"roles\":[\"customer\"],\"allcaps\":{\"read\":true,\"customer\":true},\"filter\":null},\"wp_password\":\"9uF1vmmILAi9\",\"auth0_details\":null}"}],"_postman_id":"2868f97e-638f-84f7-7c06-ba3b4cdd9823"},{"name":"Check if user email exists","id":"74b15a20-24a1-3dc4-f046-9857b1e8a7c7","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/email/cady@renovatingforprofit.com.au","description":"Search wordpress user by email address"},"response":[{"id":"8f4fa9db-c9b9-eee3-0d8a-8a9383c7a7c1","name":"Check if user email exists","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/email/cadypatch+createuser@gmail.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"accept-ranges","key":"accept-ranges","value":"bytes","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"GET","description":""},{"name":"cache-control","key":"cache-control","value":"max-age=0, must-revalidate, private","description":""},{"name":"content-length","key":"content-length","value":"141","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Thu, 20 Sep 2018 04:38:58 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-cache","key":"x-cache","value":"MISS","description":""},{"name":"x-cache-group","key":"x-cache-group","value":"","description":""},{"name":"x-cacheable","key":"x-cacheable","value":"NO:Passed","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-pass-why","key":"x-pass-why","value":"auth","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""},{"name":"x-wpe-loopback-upstream-addr","key":"x-wpe-loopback-upstream-addr","value":"127.0.0.1:6789","description":""}],"cookie":[],"responseTime":"3403","body":"{\"user_id\":12620,\"user_login\":\"cady.TEST\",\"user_display_name\":\"cady.zzzz.display\",\"user_email\":\"cadypatch+createuser@gmail.com\",\"status\":200}"}],"_postman_id":"74b15a20-24a1-3dc4-f046-9857b1e8a7c7"},{"name":"Retrieve password link","id":"ddfaeb3a-ffe9-c1fc-bd8a-f7e0e5bc738c","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/retrieve_password/?email","protocol":"https","host":["mtrenohome","wpengine","com"],"path":["wp-json","rfp_endpoint","v1","users","retrieve_password",""],"query":[{"key":"email","value":null}]},"description":"Return password rest link by email<br>"},"response":[{"id":"01580ddc-96c8-b0e2-347c-ff7628d9f504","name":"Retrieve password link","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/retrieve_password/?email=cadyzhang09@gmail.com","protocol":"https","host":["mtrenohome","wpengine","com"],"path":["wp-json","rfp_endpoint","v1","users","retrieve_password",""],"query":[{"key":"email","value":"cadyzhang09@gmail.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"GET","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"185","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:39:18 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"2620","body":"{\"status\":200,\"retreive_password_link\":\"https:\\/\\/mtrenohome.wpengine.com\\/login\\/?action=rp&key=BXkV0TJWITfI1yY4rpHG&login=seospider\",\"user_login\":\"seospider\",\"user_email\":\"cadyzhang09@gmail.com\",\"id\":12258}"}],"_postman_id":"ddfaeb3a-ffe9-c1fc-bd8a-f7e0e5bc738c"},{"name":"Add user to discourse group","id":"91b92c58-2b79-6008-6d84-198f9109672e","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"discourse_group_id","value":"41","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/add_to_discourse_group/","description":"add user to discourse group by user id & discourse group id<br>\n<b>Just update usermetat in WP</b><br>\nNeed to call Discourse API in the following step"},"response":[{"id":"21cd5c2f-60e1-143c-eaa4-f6d0537286d0","name":"Add user to discourse group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12624","type":"text"},{"key":"discourse_group_id","value":"41","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/add_to_discourse_group/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-length","key":"content-length","value":"40","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:46:54 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"3642","body":"{\"dis_user_group\":[[\"41\"]],\"id\":\"12624\"}"}],"_postman_id":"91b92c58-2b79-6008-6d84-198f9109672e"},{"name":"Update WP account","id":"acf4c8fb-7e3a-06bd-8abf-027c18b8500e","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"first_name","value":"cady","type":"text"},{"key":"last_name","value":"TEST","type":"text"},{"key":"address","value":"1 Kent St","type":"text"},{"key":"city","value":"Sydney","type":"text"},{"key":"state","value":"NSW","type":"text"},{"key":"country","value":"Australia","type":"text"},{"key":"postcode","value":"2000","type":"text"},{"key":"stripe_customer_id","value":"","type":"text"},{"key":"auth0_id","value":"","type":"text"},{"key":"nickname","value":"cadynicename","type":"text"},{"key":"phone","value":"758472943","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/update_account/","description":"Update wordpress user by user_id. <br>\n<br>\nid - required\n"},"response":[{"id":"b1344bdd-30ab-08a0-16a4-22387ac03ea7","name":"Update WP account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"first_name","value":"cady","type":"text"},{"key":"last_name","value":"TEST2","type":"text"},{"key":"address","value":"1 Kent St","type":"text"},{"key":"city","value":"Sydney","type":"text"},{"key":"state","value":"NSW","type":"text"},{"key":"country","value":"Australia","type":"text"},{"key":"postcode","value":"2000","type":"text"},{"key":"stripe_customer_id","value":"","type":"text"},{"key":"auth0_id","value":"","type":"text"},{"key":"nickname","value":"cadynicename","type":"text"},{"key":"phone","value":"758472943","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/users/update_account/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"213","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:48:09 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"4667","body":"{\"id\":\"12621\",\"usermeta\":{\"first_name\":\"cady\",\"last_name\":\"TEST2\",\"billing_address_1\":\"1 Kent St\",\"billing_city\":\"Sydney\",\"billing_postcode\":\"2000\",\"billing_state\":\"NSW\",\"billing_country\":\"Australia\",\"billing_first_name\":\"cady\",\"billing_last_name\":\"TEST2\",\"billing_phone\":\"758472943\",\"billing_email\":null,\"_stripe_customer_id\":\"\",\"nickname\":\"cadynicename\"}}"}],"_postman_id":"acf4c8fb-7e3a-06bd-8abf-027c18b8500e"}],"id":"26d5e88f-57dc-ad94-55ed-13480f7d4bb9","_postman_id":"26d5e88f-57dc-ad94-55ed-13480f7d4bb9"},{"name":"Membership","item":[{"name":"Check membership by User Id","id":"1fc108ce-10f9-7253-583d-c3461a356f4f","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/check/?id=12621&status=all","protocol":"https","host":["mtrenohome","wpengine","com"],"path":["wp-json","rfp_endpoint","v1","membership","check",""],"query":[{"key":"id","value":"12621"},{"key":"status","value":"all"}]},"description":"Search membership by user id. If membership status is not speficified in request, it will retrieve active membership by default.<br>\n<br>\nid - required<br>\n<br>\nstatus - <br>\nactive(default)<br>\nall(retrieve all membership)<br>\n[delayed, complimentary, pending, paused, cancelled, expired]\n     "},"response":[{"id":"3c692182-70f1-fba7-95c9-e06c07f625fe","name":"Check membership by User Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/check/?id=121","protocol":"https","host":["mtrenohome","wpengine","com"],"path":["wp-json","rfp_endpoint","v1","membership","check",""],"query":[{"key":"id","value":"121"},{"key":"status","value":"active","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"GET","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"205","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Wed, 19 Sep 2018 01:46:29 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"3618","body":"{\"id\":\"121\",\"membership\":[{\"membership_id\":22273,\"membership_plan\":863,\"membership_product\":null,\"membership_order_id\":null,\"membership_start_date\":\"2017-02-10 15:34:12\",\"membership_end_date\":\"\",\"membership_subscription\":null,\"membership_status\":\"active\"},{\"membership_id\":3361,\"membership_plan\":100,\"membership_product\":\"98\",\"membership_order_id\":\"3360\",\"membership_start_date\":\"2016-11-15 06:12:19\",\"membership_end_date\":\"2100-01-01 00:00:00\",\"membership_subscription\":null,\"membership_status\":\"active\"}]}"},{"id":"987ce450-4ebe-e86e-36e2-4f6f904dc0a7","name":"Check membership by User Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/check/?id=12621&status=all","protocol":"https","host":["mtrenohome","wpengine","com"],"path":["wp-json","rfp_endpoint","v1","membership","check",""],"query":[{"key":"id","value":"12621"},{"key":"status","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"GET","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"197","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 01:20:01 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"2785","body":"{\"id\":\"12621\",\"membership\":[{\"membership_id\":51373,\"membership_plan\":100,\"membership_product\":\"99\",\"membership_order_id\":null,\"membership_start_date\":\"2018-09-19 03:36:32\",\"membership_end_date\":\"2020-09-19 03:36:32\",\"membership_subscription\":null,\"membership_status\":\"paused\"},{\"membership_id\":51406,\"membership_plan\":863,\"membership_product\":\"862\",\"membership_order_id\":null,\"membership_start_date\":\"2018-09-21 01:17:46\",\"membership_end_date\":\"2020-09-21 01:17:46\",\"membership_subscription\":null,\"membership_status\":\"active\"}]}"}],"_postman_id":"1fc108ce-10f9-7253-583d-c3461a356f4f"},{"name":"Create CRFP Membership","id":"67023f74-67fb-97c8-cbc5-3d98bff5da8b","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"130741","type":"text"},{"key":"subscription_id","value":"sub_CTf53MybPtt4Ay","type":"text"},{"key":"transaction_id","value":"ch_1C4hl2DoSQEEYkXJQGXEX5IE","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"https://renovatingforprofit.thrivecart.com/api-test-crfp/confirm/96d9d697e3c8f450c24bf0e196b4bfc8e18939914079/","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_CRFP_membership/","description":"Create CRFP membership. Product id & plan id are fixed.<br>\nid - <b>required</b><br>\nPlan id = 863<br>\nProduct id = 862 (instalment)<br>\nProduct id = 861 (upfront)<br>\n<b>Note: this endpoint will automatically add discourse group (CRFP) id to usermeta.</b><br>\nNeed to call Discourse API in the following step\n"},"response":[{"id":"7a00e07d-8f93-8ff5-17e3-0608e7120937","name":"Create CRFP Membership","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12624","type":"text"},{"key":"subscription_id","value":"sub_CTf53MybPtt4Ay","type":"text"},{"key":"transaction_id","value":"ch_1C4hl2DoSQEEYkXJQGXEX5IE","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"come from stripe","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_CRFP_membership/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"511","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:52:13 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"3753","body":"{\"id\":51400,\"plan_id\":863,\"plan\":{\"id\":863,\"name\":\"Cosmetic Renovations For Profit\",\"slug\":\"cosmetic-renovations-for-profit\",\"post\":{\"ID\":863,\"post_author\":\"17\",\"post_date\":\"2016-10-27 12:33:03\",\"post_date_gmt\":\"2016-10-27 12:33:03\",\"post_content\":\"\",\"post_title\":\"Cosmetic Renovations For Profit\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"cosmetic-renovations-for-profit\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-08-08 15:51:38\",\"post_modified_gmt\":\"2018-08-08 05:51:38\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\/\\/mtreno.wpengine.com\\/?post_type=wc_membership_plan&#038;p=863\",\"menu_order\":14,\"post_type\":\"wc_membership_plan\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}},\"user_id\":12624,\"status\":\"wcm-active\",\"post\":{\"ID\":51400,\"post_author\":\"12624\",\"post_date\":\"2018-09-21 10:52:12\",\"post_date_gmt\":\"2018-09-21 00:52:12\",\"post_content\":\"\",\"post_title\":\"\",\"post_excerpt\":\"\",\"post_status\":\"wcm-active\",\"comment_status\":\"open\",\"ping_status\":\"closed\",\"post_password\":\"um_5ba440bcf3b50\",\"post_name\":\"51400\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-09-21 10:52:12\",\"post_modified_gmt\":\"2018-09-21 00:52:12\",\"post_content_filtered\":\"\",\"post_parent\":863,\"guid\":\"https:\\/\\/mtrenohome.wpengine.com\\/?post_type=wc_user_membership&p=51400\",\"menu_order\":0,\"post_type\":\"wc_user_membership\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}}"}],"_postman_id":"67023f74-67fb-97c8-cbc5-3d98bff5da8b"},{"name":"Create IDFP Membership","id":"b37c4c26-04b0-9c90-a380-b58cb732ee0d","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"13074","type":"text","disabled":true},{"key":"subscription_id","value":"sub_CTf53MybPtt4Ay","type":"text"},{"key":"transaction_id","value":"ch_1C4hl2DoSQEEYkXJQGXEX5IE","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"https://renovatingforprofit.thrivecart.com/api-test-crfp/confirm/96d9d697e3c8f450c24bf0e196b4bfc8e18939914079/","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_IDFP_membership/","description":"Create IDFP membership. Product id & plan id are fixed.<br>\n<b>id - required</b><br>\nPlan id = 100<br>\nProduct id = 99 (instalment)<br>\nProduct id = 98 (upfront)<br>\n<b>Note: this endpoint will automatically add discourse group (IDFP) id to usermeta.</b><br>\nNeed to call Discourse API in the following step"},"response":[{"id":"95b24e11-4f91-4b53-a4b3-9d2b5d01dea9","name":"Create IDFP Membership","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12624","type":"text"},{"key":"subscription_id","value":"sub_CTf53MybPtt4Ay","type":"text"},{"key":"transaction_id","value":"ch_1C4hl2DoSQEEYkXJQGXEX5IE","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"checkout_url","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_IDFP_membership/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"506","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 00:57:32 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"4544","body":"{\"id\":51403,\"plan_id\":100,\"plan\":{\"id\":100,\"name\":\"Interior Design For Profit\",\"slug\":\"interior-design-for-profit\",\"post\":{\"ID\":100,\"post_author\":\"2\",\"post_date\":\"2016-10-05 19:05:48\",\"post_date_gmt\":\"2016-10-05 19:05:48\",\"post_content\":\"\",\"post_title\":\"Interior Design For Profit\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"interior-design-for-profit\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-08-08 17:50:20\",\"post_modified_gmt\":\"2018-08-08 07:50:20\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"http:\\/\\/mtreno.wpengine.com\\/?post_type=wc_membership_plan&#038;p=100\",\"menu_order\":15,\"post_type\":\"wc_membership_plan\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}},\"user_id\":12624,\"status\":\"wcm-active\",\"post\":{\"ID\":51403,\"post_author\":\"12624\",\"post_date\":\"2018-09-21 10:57:32\",\"post_date_gmt\":\"2018-09-21 00:57:32\",\"post_content\":\"\",\"post_title\":\"\",\"post_excerpt\":\"\",\"post_status\":\"wcm-active\",\"comment_status\":\"open\",\"ping_status\":\"closed\",\"post_password\":\"um_5ba441fc705bc\",\"post_name\":\"51403\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-09-21 10:57:32\",\"post_modified_gmt\":\"2018-09-21 00:57:32\",\"post_content_filtered\":\"\",\"post_parent\":100,\"guid\":\"https:\\/\\/mtrenohome.wpengine.com\\/?post_type=wc_user_membership&p=51403\",\"menu_order\":0,\"post_type\":\"wc_user_membership\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}}"}],"_postman_id":"b37c4c26-04b0-9c90-a380-b58cb732ee0d"},{"name":"Create Membership by Plan id","id":"55086e94-2df3-4ab1-8b59-472b0d0c7d62","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"subscription_id","value":"sub_test_333","type":"text"},{"key":"transaction_id","value":"tran_test_333","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"https://renovatingforprofit.thrivecart.com/test/333","type":"text"},{"key":"plan_id","value":"863","type":"text"},{"key":"product_id","value":"862","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_membership_by_plan_id/","description":"Create membership by plan id & product id<br>\n<br>\n<b>Note</b>: This endpoint won't add discourse group id into usermeta. \n<BR>\n<b>Required:</b><br>\nid - user_id<br>\nplan_id - membership plan id<br>\nproduct_id - membership product id<br>\n\nOptional:<br>\nsubscription_id<br>\ntransaction_id<br>\nsource<br>\nsource_url<br>\n\nDefault membership expiry date: +2 years"},"response":[{"id":"c9d5203c-e04f-af1b-43b5-7ed3958fd1a5","name":"Create Membership by Plan id","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"subscription_id","value":"sub_test_333","type":"text"},{"key":"transaction_id","value":"tran_test_333","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"https://renovatingforprofit.thrivecart.com/test/333","type":"text"},{"key":"plan_id","value":"863","type":"text"},{"key":"product_id","value":"862","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/create_membership_by_plan_id/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"513","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 01:17:46 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"4323","body":"{\"id\":51406,\"plan_id\":863,\"plan\":{\"id\":863,\"name\":\"Cosmetic Renovations For Profit\",\"slug\":\"cosmetic-renovations-for-profit\",\"post\":{\"ID\":863,\"post_author\":\"17\",\"post_date\":\"2016-10-27 12:33:03\",\"post_date_gmt\":\"2016-10-27 12:33:03\",\"post_content\":\"\",\"post_title\":\"Cosmetic Renovations For Profit\",\"post_excerpt\":\"\",\"post_status\":\"publish\",\"comment_status\":\"closed\",\"ping_status\":\"closed\",\"post_password\":\"\",\"post_name\":\"cosmetic-renovations-for-profit\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-08-08 15:51:38\",\"post_modified_gmt\":\"2018-08-08 05:51:38\",\"post_content_filtered\":\"\",\"post_parent\":0,\"guid\":\"https:\\/\\/mtreno.wpengine.com\\/?post_type=wc_membership_plan&#038;p=863\",\"menu_order\":14,\"post_type\":\"wc_membership_plan\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}},\"user_id\":12621,\"status\":\"wcm-active\",\"post\":{\"ID\":51406,\"post_author\":\"12621\",\"post_date\":\"2018-09-21 11:17:46\",\"post_date_gmt\":\"2018-09-21 01:17:46\",\"post_content\":\"\",\"post_title\":\"\",\"post_excerpt\":\"\",\"post_status\":\"wcm-active\",\"comment_status\":\"open\",\"ping_status\":\"closed\",\"post_password\":\"um_5ba446ba2536f\",\"post_name\":\"51406\",\"to_ping\":\"\",\"pinged\":\"\",\"post_modified\":\"2018-09-21 11:17:46\",\"post_modified_gmt\":\"2018-09-21 01:17:46\",\"post_content_filtered\":\"\",\"post_parent\":863,\"guid\":\"https:\\/\\/mtrenohome.wpengine.com\\/?post_type=wc_user_membership&p=51406\",\"menu_order\":0,\"post_type\":\"wc_user_membership\",\"post_mime_type\":\"\",\"comment_count\":\"0\",\"filter\":\"raw\"}}"}],"_postman_id":"55086e94-2df3-4ab1-8b59-472b0d0c7d62"},{"name":"Renew Membership","id":"f5f6b93b-a43f-096c-05d1-cf16512424eb","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12624","type":"text"},{"key":"course","value":"IDFP","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"renew IDFP","type":"text"},{"key":"subscription_id","value":"sub_xxx","type":"text"},{"key":"transaction_id","value":"tran_xxx","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/renewal_membership/","description":"Renew CRFP & IDFP. 1 month access.<br>\n<b>id - required</b><br>\n<b>course - required (CRFP/IDFP)</b><br>\nsource<br>\nsource_url<br>\nsubscription_id<br>\ntransaction_id"},"response":[{"id":"f531bec4-1289-8c3c-d974-0ded42cfa449","name":"Renew Membership","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE","warning":""}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12624","type":"text"},{"key":"course","value":"IDFP","type":"text"},{"key":"source","value":"stripe","type":"text"},{"key":"source_url","value":"renew IDFP","type":"text"},{"key":"subscription_id","value":"sub_xxxx","type":"text"},{"key":"transaction_id","value":"tran_xxxx","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/renewal_membership/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"130","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 01:10:33 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"2963","body":"{\"_product_id\":[\"98\"],\"_start_date\":[\"2018-09-21 00:57:32\"],\"_end_date\":[\"2018-10-21 01:10:32\"],\"_paused_intervals\":[\"a:1:{i:1537492020;i:1537492232;}\"]}"}],"_postman_id":"f5f6b93b-a43f-096c-05d1-cf16512424eb"},{"name":"Update membership","id":"adfe2522-41b3-ab77-aea1-609bf3759354","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  {jwt-token}"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"plan_id","value":"863","type":"text"},{"key":"status","value":"active","type":"text"},{"key":"membership_end_date","value":"2020-09-22","type":"text"},{"key":"source","value":"API","type":"text"},{"key":"source_url","value":"Postman","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/update_membership/","description":"Update membership.Return error if no existing membership is found in given plan.<br>\n<br>\n<b>id - required</b><br>\n<b>plan_id - required</b><br>\n<b>status - required</b><br>\n[active,delayed, complimentary, pending, paused, cancelled, expired]<br>\n<br>\nFor suspend/cancel membership via Stripe<br>\nIf no end date is given, default expired date is set to \"2100-01-01 00:00:00\"<br>\n\n     "},"response":[{"id":"09afa5b7-838c-322a-807e-a3823f2a4836","name":"Update membership","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvbXRyZW5vaG9tZS53cGVuZ2luZS5jb20iLCJpYXQiOjE1MzczMTczNDEsIm5iZiI6MTUzNzMxNzM0MSwiZXhwIjoxNTM3OTIyMTQxLCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxMTk5NiJ9fX0.Qa91UNdLTFeZmhGCabYxlnhvfKum68kKH_dOpFPygXE"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":"12621","type":"text"},{"key":"plan_id","value":"863","type":"text"},{"key":"status","value":"active","type":"text"},{"key":"membership_end_date","value":"2020-09-21 00:00:00","type":"text"},{"key":"source","value":"API","type":"text"},{"key":"source_url","value":"Postman","type":"text"}]},"url":"https://mtrenohome.wpengine.com/wp-json/rfp_endpoint/v1/membership/update_membership/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"access-control-allow-credentials","key":"access-control-allow-credentials","value":"true","description":""},{"name":"access-control-allow-headers","key":"access-control-allow-headers","value":"Authorization, Content-Type","description":""},{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"OPTIONS, GET, POST, PUT, PATCH, DELETE","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-WP-Total, X-WP-TotalPages","description":""},{"name":"allow","key":"allow","value":"POST","description":""},{"name":"cache-control","key":"cache-control","value":"public","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"154","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Fri, 21 Sep 2018 01:30:50 GMT","description":""},{"name":"expires","key":"expires","value":"Wed, 11 Jan 1984 05:00:00 GMT","description":""},{"name":"link","key":"link","value":"<https://mtrenohome.wpengine.com/wp-json/>; rel=\"https://api.w.org/\"","description":"","isLink":true},{"name":"server","key":"server","value":"nginx","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Origin,Accept-Encoding","description":""},{"name":"wpe-backend","key":"wpe-backend","value":"apache","description":""},{"name":"x-content-type-options","key":"x-content-type-options","value":"nosniff","description":""},{"name":"x-robots-tag","key":"x-robots-tag","value":"noindex","description":""},{"name":"x-type","key":"x-type","value":"default","description":""},{"name":"x-ua-compatible","key":"x-ua-compatible","value":"IE=edge,chrome=1","description":""}],"cookie":[],"responseTime":"4553","body":"{\"user_id\":\"12621\",\"membership_id\":51406,\"plan_id\":\"863\",\"membership_status\":\"wcm-active\",\"membership_meta\":{\"_product_id\":[\"862\"],\"_start_date\":[\"2018-09-21 01:17:46\"],\"_end_date\":[\"2020-09-21 00:00:00\"]}}"}],"_postman_id":"adfe2522-41b3-ab77-aea1-609bf3759354"}],"id":"d0485fd5-f4c4-04da-1a5c-afe7bf32ab73","_postman_id":"d0485fd5-f4c4-04da-1a5c-afe7bf32ab73"},{"name":"Discourse","item":[{"name":"Add user to a  group","id":"ddfa2db5-f3f1-8971-2140-1388b31d12d3","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"http://community.renovatingforprofit.com.au/groups/{discourse_group}/members.json?api_key={rfp_api_key}&api_username={rfp_username}&usernames={wp_username}","protocol":"http","host":["community","renovatingforprofit","com","au"],"path":["groups","{discourse_group}","members.json"],"query":[{"key":"api_key","value":"{rfp_api_key}"},{"key":"api_username","value":"{rfp_username}"},{"key":"usernames","value":"{wp_username}"}]},"description":"Add user to discourse group\n\nCRFP: 41\nIDFP: 43\n\napi_key & api_username: ask support"},"response":[],"_postman_id":"ddfa2db5-f3f1-8971-2140-1388b31d12d3"}],"id":"d2ffa9cb-2bcb-f220-abac-04cc722c17c8","_postman_id":"d2ffa9cb-2bcb-f220-abac-04cc722c17c8"}]}