{"_id":"565f60c36bafd40d0030a06c","user":"55f8467359eace0d0087db7e","project":"55dd0853d2d97337001800e2","version":{"_id":"55de36ec9067202b00de0015","__v":33,"project":"55dd0853d2d97337001800e2","createdAt":"2015-08-26T22:00:12.384Z","releaseDate":"2015-08-26T22:00:12.383Z","categories":["55de36ed9067202b00de0016","55de36ed9067202b00de0017","55de36ed9067202b00de0018","55df7dcd437b3f0d004ba204","55e4e014177b6e0d00333141","55e4e01fe252ac0d00303a99","55e4e05240cda60d003bad67","55e4e070177b6e0d00333142","55e4e0753325e60d007fbee6","55e4e0803325e60d007fbee7","55e4e086177b6e0d00333143","55e4e0a1177b6e0d00333144","55e4e0aa3325e60d007fbee8","55e4e0b140cda60d003bad6b","55e4e0bae252ac0d00303a9d","55e4e0c5177b6e0d00333145","55e4e0ee3325e60d007fbeea","55e4e0fae252ac0d00303a9e","55e4e100177b6e0d00333147","55f85c8ba3271b0d00498d55","56092e1ac5cff70d007d0131","564b64a3ee12850d0095866e","564b64b5791099170071e9ea","565cd0bfd18ae50d007183d8","565f5f5d6bafd40d0030a063","565f790d6bafd40d0030a09f","56611c464851190d003f9f5d","56637d5b7988ab0d00d0522e","56637d687988ab0d00d0522f","567835df6928b40d009dd650","56e59c043c29b117008dae5b","5704013559c5190e000ab646","572be252de40590e00026934","58af1bf6ebd7370f0078ba09","5cdad81d912ece0039e9a939"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"category":{"_id":"565f5f5d6bafd40d0030a063","pages":["565f60c36bafd40d0030a06c","565f6242de5dc50d00acfead","565f635f649b951900c897e9","565f676b6bafd40d0030a083"],"version":"55de36ec9067202b00de0015","project":"55dd0853d2d97337001800e2","__v":4,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-12-02T21:15:09.741Z","from_sync":false,"order":1,"slug":"api-access","title":"API Access"},"githubsync":"","parentDoc":null,"__v":17,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-02T21:21:07.901Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"code":"","language":"text"}]},"settings":"5693eae65f1c951900644c21","examples":{"codes":[]},"method":"post","auth":"required","params":[],"url":"/oauth/token"},"isReference":true,"order":4,"body":"## Request\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"grant_type\",\n    \"1-0\": \"client_id\",\n    \"2-0\": \"client_secret\",\n    \"3-0\": \"scope\",\n    \"1-1\": \"This will be provided by PayStand.\",\n    \"2-1\": \"This will be provided by PayStand.\",\n    \"0-1\": \"```client_credentials```\",\n    \"3-1\": \"auth\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\n## Response\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"access_token\",\n    \"1-0\": \"expires_in\",\n    \"2-0\": \"scope\",\n    \"3-0\": \"refresh_token\",\n    \"4-0\": \"token_type\",\n    \"1-1\": \"The time this token will expire.\",\n    \"2-1\": \"The scope for this access token.\",\n    \"3-1\": \"\",\n    \"4-1\": \"The token type. This will need to be sent as part of the Authorization header.\",\n    \"0-1\": \"The access token. This will need to be sent as part of the Authorization header.\"\n  },\n  \"cols\": 2,\n  \"rows\": 5\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\\"Accept\\\": \\\"application/json\\\",\\n  \\\"Content-Type\\\": \\\"application/json\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Headers\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"grant_type\\\": \\\"client_credentials\\\",\\n  \\\"client_id\\\": \\\"210858fbe0f648a480aa8e0c\\\",\\n  \\\"client_secret\\\": \\\"65c7ffa267064e0e8ffb46e9\\\",\\n  \\\"scope\\\": \\\"auth\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Request\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"access_token\\\": \\\"d861a41675f645a2b9bcd27\\\",\\n  \\\"expires_in\\\": 1209600,\\n  \\\"scope\\\": \\\"auth\\\",\\n  \\\"refresh_token\\\": \\\"f20c7998e3684b8a80e77fba\\\",\\n  \\\"token_type\\\": \\\"Bearer\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Response\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]","excerpt":"","slug":"access-tokens","type":"endpoint","title":"Access Tokens"}

Definition

{{ api_url }}{{ page_api_url }}

Documentation

## Request [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "0-0": "grant_type", "1-0": "client_id", "2-0": "client_secret", "3-0": "scope", "1-1": "This will be provided by PayStand.", "2-1": "This will be provided by PayStand.", "0-1": "```client_credentials```", "3-1": "auth" }, "cols": 2, "rows": 4 } [/block] ## Response [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "0-0": "access_token", "1-0": "expires_in", "2-0": "scope", "3-0": "refresh_token", "4-0": "token_type", "1-1": "The time this token will expire.", "2-1": "The scope for this access token.", "3-1": "", "4-1": "The token type. This will need to be sent as part of the Authorization header.", "0-1": "The access token. This will need to be sent as part of the Authorization header." }, "cols": 2, "rows": 5 } [/block] [block:code] { "codes": [ { "code": "{\n\t\"Accept\": \"application/json\",\n \"Content-Type\": \"application/json\"\n}", "language": "json", "name": "Headers" } ], "sidebar": true } [/block] [block:code] { "codes": [ { "code": "{\n \"grant_type\": \"client_credentials\",\n \"client_id\": \"210858fbe0f648a480aa8e0c\",\n \"client_secret\": \"65c7ffa267064e0e8ffb46e9\",\n \"scope\": \"auth\"\n}", "language": "json", "name": "Request" } ], "sidebar": true } [/block] [block:code] { "codes": [ { "code": "{\n \"access_token\": \"d861a41675f645a2b9bcd27\",\n \"expires_in\": 1209600,\n \"scope\": \"auth\",\n \"refresh_token\": \"f20c7998e3684b8a80e77fba\",\n \"token_type\": \"Bearer\"\n}", "language": "json", "name": "Response" } ], "sidebar": true } [/block]