{"_id":"5adcc1185cd1890003da8169","category":{"_id":"5adcc1185cd1890003da8166","version":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-17T08:09:17.710Z","from_sync":false,"order":1,"slug":"documentation","title":"Documentation"},"parentDoc":null,"user":"5530bf7457cea10d00a3aa3a","project":"5530bfac57cea10d00a3aa3b","version":{"_id":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","__v":3,"createdAt":"2018-04-22T17:06:32.152Z","releaseDate":"2018-04-22T17:06:32.152Z","categories":["5adcc1185cd1890003da8166","5adcc1185cd1890003da8167","5adcf4b3ce4b3f00035317e9","5adfb8e9452bd900036d115b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-17T08:09:18.450Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Create auth token: https://support.coingate.com/en/42/how-can-i-create-coingate-api-credentials\n\nPlease note, that for \"Test\" (sandbox) mode you must generate separate API credentials on https://sandbox.coingate.com. API credentials generated on https://coingate.com will not work for \"Test\" (sandbox) mode.\n\nProvide generated Token to **HTTP Authorization Header**.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -H \\\"Authorization: Token YOUR_APP_TOKEN\\\" \\\"https://api.coingate.com/v2/orders/15012\\\"\",\n      \"language\": \"curl\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$auth_token = 'YOUR_API_AUTH_TOKEN';\\n\\n$headers   = array();\\n$headers[] = 'Authorization: Token ' . $auth_token;\\n$curl      = curl_init();\\n\\ncurl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"api-authentication","type":"basic","title":"API Authentication"}

API Authentication


Create auth token: https://support.coingate.com/en/42/how-can-i-create-coingate-api-credentials Please note, that for "Test" (sandbox) mode you must generate separate API credentials on https://sandbox.coingate.com. API credentials generated on https://coingate.com will not work for "Test" (sandbox) mode. Provide generated Token to **HTTP Authorization Header**. [block:code] { "codes": [ { "code": "curl -v -H \"Authorization: Token YOUR_APP_TOKEN\" \"https://api.coingate.com/v2/orders/15012\"", "language": "curl" }, { "code": "<?php\n\n$auth_token = 'YOUR_API_AUTH_TOKEN';\n\n$headers = array();\n$headers[] = 'Authorization: Token ' . $auth_token;\n$curl = curl_init();\n\ncurl_setopt($curl, CURLOPT_HTTPHEADER, $headers);", "language": "php" } ] } [/block]