{"action":"created","comment":{"url":"https://api.github.com/repos/TuShare/slate/pulls/comments/42205751","id":42205751,"diff_hunk":"@@ -0,0 +1,31 @@\n+# Cancelling Orders\n+\n+> [ Delete /orders/{id} ]\n+\n+```\n+  curl 'https://sendle.com/api/orders/f5233746-71d4-4b05-bf63-56f4abaed5f6' -X DELETE -u sendleAPI:42RRTjYz5Z4hZrm8XY3t4Vxt -H \"Content-Type: application/json\"\n+```\n+\n+> 200 Response\n+\n+```\n+  {\n+    \"order_id\":\"f5233746-71d4-4b05-bf63-56f4abaed5f6\",\n+    \"state\":\"Cancelled\",\n+    \"order_url\":\"https://sendle-staging.herokuapp.com/api/orders/f5233746-71d4-4b05-bf63-56f4abaed5f6\",\n+    \"customer_reference\":\"SupBdayPressie\",\n+    \"cancelled_at\":\"2015-10-15 00:56:51 UTC\",\n+    \"cancellation_message\":\"Cancelled by S6LRX64PV8MABbBbzu6DoBHD during picking up\"\n+  }\n+```\n+\n+### is_cancellable\n+\n+As long as an order has not been consigned with the courier, an order is cancellable. The value to review is:\n+\n+- `is_cancellable`\n+  - if `true`, the order can be cancelled.\n+\n+If a booking as already been submitted to the courier for pickup, a failure response (422) will be returned. Is_cancellable is found in the `scheduling` section of the `JSON` along with delivery estimates. For an example of where `is_cancellable` can be seen, check the [View an Order](#view-an-order) section.\n+\n+<aside class='warning'>After is_cancellable becomes false, only Sendle Support is still be able to cancel the consignment, but the process is completely manual.</aside>","path":"source/includes/_cancelling_orders.md","position":31,"original_position":31,"commit_id":"801fe0448845d17d316274582213bd3827cc36b2","original_commit_id":"801fe0448845d17d316274582213bd3827cc36b2","user":{"login":"taryneast","id":34846,"avatar_url":"https://avatars.githubusercontent.com/u/34846?v=3","gravatar_id":"","url":"https://api.github.com/users/taryneast","html_url":"https://github.com/taryneast","followers_url":"https://api.github.com/users/taryneast/followers","following_url":"https://api.github.com/users/taryneast/following{/other_user}","gists_url":"https://api.github.com/users/taryneast/gists{/gist_id}","starred_url":"https://api.github.com/users/taryneast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taryneast/subscriptions","organizations_url":"https://api.github.com/users/taryneast/orgs","repos_url":"https://api.github.com/users/taryneast/repos","events_url":"https://api.github.com/users/taryneast/events{/privacy}","received_events_url":"https://api.github.com/users/taryneast/received_events","type":"User","site_admin":false},"body":"more pedantry: is_cancellable probably should be markup with backticks in All the Places!!! :)","created_at":"2015-10-16T03:26:53Z","updated_at":"2015-10-16T03:26:53Z","html_url":"https://github.com/TuShare/slate/pull/1#discussion_r42205751","pull_request_url":"https://api.github.com/repos/TuShare/slate/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TuShare/slate/pulls/comments/42205751"},"html":{"href":"https://github.com/TuShare/slate/pull/1#discussion_r42205751"},"pull_request":{"href":"https://api.github.com/repos/TuShare/slate/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TuShare/slate/pulls/1","id":47863541,"html_url":"https://github.com/TuShare/slate/pull/1","diff_url":"https://github.com/TuShare/slate/pull/1.diff","patch_url":"https://github.com/TuShare/slate/pull/1.patch","issue_url":"https://api.github.com/repos/TuShare/slate/issues/1","number":1,"state":"open","locked":false,"title":"Chore/103063394 getting started sendle api guide","user":{"login":"mendokusai","id":7043234,"avatar_url":"https://avatars.githubusercontent.com/u/7043234?v=3","gravatar_id":"","url":"https://api.github.com/users/mendokusai","html_url":"https://github.com/mendokusai","followers_url":"https://api.github.com/users/mendokusai/followers","following_url":"https://api.github.com/users/mendokusai/following{/other_user}","gists_url":"https://api.github.com/users/mendokusai/gists{/gist_id}","starred_url":"https://api.github.com/users/mendokusai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendokusai/subscriptions","organizations_url":"https://api.github.com/users/mendokusai/orgs","repos_url":"https://api.github.com/users/mendokusai/repos","events_url":"https://api.github.com/users/mendokusai/events{/privacy}","received_events_url":"https://api.github.com/users/mendokusai/received_events","type":"User","site_admin":false},"body":"\r\n<img width=\"1185\" alt=\"screen shot 2015-10-16 at 12 55 42 pm\" src=\"https://cloud.githubusercontent.com/assets/7043234/10532038/3f5efa20-7405-11e5-87b9-78a8e943772c.png\">\r\n\r\n\r\nThis is the first iteration of the API Guide.\r\n\r\nFor those who want to check it out, run `middleman server --port=XXXX`","created_at":"2015-10-16T01:58:11Z","updated_at":"2015-10-16T03:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9044a43d7766b635c6de7de3b60603738fd57564","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TuShare/slate/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TuShare/slate/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TuShare/slate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TuShare/slate/issues/1/comments","statuses_url":"https://api.github.com/repos/TuShare/slate/statuses/801fe0448845d17d316274582213bd3827cc36b2","head":{"label":"TuShare:chore/103063394-getting-started-sendle-api-guide","ref":"chore/103063394-getting-started-sendle-api-guide","sha":"801fe0448845d17d316274582213bd3827cc36b2","user":{"login":"TuShare","id":3280649,"avatar_url":"https://avatars.githubusercontent.com/u/3280649?v=3","gravatar_id":"","url":"https://api.github.com/users/TuShare","html_url":"https://github.com/TuShare","followers_url":"https://api.github.com/users/TuShare/followers","following_url":"https://api.github.com/users/TuShare/following{/other_user}","gists_url":"https://api.github.com/users/TuShare/gists{/gist_id}","starred_url":"https://api.github.com/users/TuShare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuShare/subscriptions","organizations_url":"https://api.github.com/users/TuShare/orgs","repos_url":"https://api.github.com/users/TuShare/repos","events_url":"https://api.github.com/users/TuShare/events{/privacy}","received_events_url":"https://api.github.com/users/TuShare/received_events","type":"Organization","site_admin":false},"repo":{"id":44076475,"name":"slate","full_name":"TuShare/slate","owner":{"login":"TuShare","id":3280649,"avatar_url":"https://avatars.githubusercontent.com/u/3280649?v=3","gravatar_id":"","url":"https://api.github.com/users/TuShare","html_url":"https://github.com/TuShare","followers_url":"https://api.github.com/users/TuShare/followers","following_url":"https://api.github.com/users/TuShare/following{/other_user}","gists_url":"https://api.github.com/users/TuShare/gists{/gist_id}","starred_url":"https://api.github.com/users/TuShare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuShare/subscriptions","organizations_url":"https://api.github.com/users/TuShare/orgs","repos_url":"https://api.github.com/users/TuShare/repos","events_url":"https://api.github.com/users/TuShare/events{/privacy}","received_events_url":"https://api.github.com/users/TuShare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TuShare/slate","description":"Beautiful static documentation for your API","fork":true,"url":"https://api.github.com/repos/TuShare/slate","forks_url":"https://api.github.com/repos/TuShare/slate/forks","keys_url":"https://api.github.com/repos/TuShare/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuShare/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuShare/slate/teams","hooks_url":"https://api.github.com/repos/TuShare/slate/hooks","issue_events_url":"https://api.github.com/repos/TuShare/slate/issues/events{/number}","events_url":"https://api.github.com/repos/TuShare/slate/events","assignees_url":"https://api.github.com/repos/TuShare/slate/assignees{/user}","branches_url":"https://api.github.com/repos/TuShare/slate/branches{/branch}","tags_url":"https://api.github.com/repos/TuShare/slate/tags","blobs_url":"https://api.github.com/repos/TuShare/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuShare/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuShare/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuShare/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuShare/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/TuShare/slate/languages","stargazers_url":"https://api.github.com/repos/TuShare/slate/stargazers","contributors_url":"https://api.github.com/repos/TuShare/slate/contributors","subscribers_url":"https://api.github.com/repos/TuShare/slate/subscribers","subscription_url":"https://api.github.com/repos/TuShare/slate/subscription","commits_url":"https://api.github.com/repos/TuShare/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuShare/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuShare/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuShare/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuShare/slate/contents/{+path}","compare_url":"https://api.github.com/repos/TuShare/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuShare/slate/merges","archive_url":"https://api.github.com/repos/TuShare/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuShare/slate/downloads","issues_url":"https://api.github.com/repos/TuShare/slate/issues{/number}","pulls_url":"https://api.github.com/repos/TuShare/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/TuShare/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/TuShare/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuShare/slate/labels{/name}","releases_url":"https://api.github.com/repos/TuShare/slate/releases{/id}","created_at":"2015-10-12T01:08:21Z","updated_at":"2015-10-12T01:08:22Z","pushed_at":"2015-10-16T01:58:11Z","git_url":"git://github.com/TuShare/slate.git","ssh_url":"git@github.com:TuShare/slate.git","clone_url":"https://github.com/TuShare/slate.git","svn_url":"https://github.com/TuShare/slate","homepage":"","size":738,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"TuShare:master","ref":"master","sha":"64c6522b7020176564cc50412aadea0196fe7c33","user":{"login":"TuShare","id":3280649,"avatar_url":"https://avatars.githubusercontent.com/u/3280649?v=3","gravatar_id":"","url":"https://api.github.com/users/TuShare","html_url":"https://github.com/TuShare","followers_url":"https://api.github.com/users/TuShare/followers","following_url":"https://api.github.com/users/TuShare/following{/other_user}","gists_url":"https://api.github.com/users/TuShare/gists{/gist_id}","starred_url":"https://api.github.com/users/TuShare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuShare/subscriptions","organizations_url":"https://api.github.com/users/TuShare/orgs","repos_url":"https://api.github.com/users/TuShare/repos","events_url":"https://api.github.com/users/TuShare/events{/privacy}","received_events_url":"https://api.github.com/users/TuShare/received_events","type":"Organization","site_admin":false},"repo":{"id":44076475,"name":"slate","full_name":"TuShare/slate","owner":{"login":"TuShare","id":3280649,"avatar_url":"https://avatars.githubusercontent.com/u/3280649?v=3","gravatar_id":"","url":"https://api.github.com/users/TuShare","html_url":"https://github.com/TuShare","followers_url":"https://api.github.com/users/TuShare/followers","following_url":"https://api.github.com/users/TuShare/following{/other_user}","gists_url":"https://api.github.com/users/TuShare/gists{/gist_id}","starred_url":"https://api.github.com/users/TuShare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuShare/subscriptions","organizations_url":"https://api.github.com/users/TuShare/orgs","repos_url":"https://api.github.com/users/TuShare/repos","events_url":"https://api.github.com/users/TuShare/events{/privacy}","received_events_url":"https://api.github.com/users/TuShare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TuShare/slate","description":"Beautiful static documentation for your API","fork":true,"url":"https://api.github.com/repos/TuShare/slate","forks_url":"https://api.github.com/repos/TuShare/slate/forks","keys_url":"https://api.github.com/repos/TuShare/slate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuShare/slate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuShare/slate/teams","hooks_url":"https://api.github.com/repos/TuShare/slate/hooks","issue_events_url":"https://api.github.com/repos/TuShare/slate/issues/events{/number}","events_url":"https://api.github.com/repos/TuShare/slate/events","assignees_url":"https://api.github.com/repos/TuShare/slate/assignees{/user}","branches_url":"https://api.github.com/repos/TuShare/slate/branches{/branch}","tags_url":"https://api.github.com/repos/TuShare/slate/tags","blobs_url":"https://api.github.com/repos/TuShare/slate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuShare/slate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuShare/slate/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuShare/slate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuShare/slate/statuses/{sha}","languages_url":"https://api.github.com/repos/TuShare/slate/languages","stargazers_url":"https://api.github.com/repos/TuShare/slate/stargazers","contributors_url":"https://api.github.com/repos/TuShare/slate/contributors","subscribers_url":"https://api.github.com/repos/TuShare/slate/subscribers","subscription_url":"https://api.github.com/repos/TuShare/slate/subscription","commits_url":"https://api.github.com/repos/TuShare/slate/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuShare/slate/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuShare/slate/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuShare/slate/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuShare/slate/contents/{+path}","compare_url":"https://api.github.com/repos/TuShare/slate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuShare/slate/merges","archive_url":"https://api.github.com/repos/TuShare/slate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuShare/slate/downloads","issues_url":"https://api.github.com/repos/TuShare/slate/issues{/number}","pulls_url":"https://api.github.com/repos/TuShare/slate/pulls{/number}","milestones_url":"https://api.github.com/repos/TuShare/slate/milestones{/number}","notifications_url":"https://api.github.com/repos/TuShare/slate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuShare/slate/labels{/name}","releases_url":"https://api.github.com/repos/TuShare/slate/releases{/id}","created_at":"2015-10-12T01:08:21Z","updated_at":"2015-10-12T01:08:22Z","pushed_at":"2015-10-16T01:58:11Z","git_url":"git://github.com/TuShare/slate.git","ssh_url":"git@github.com:TuShare/slate.git","clone_url":"https://github.com/TuShare/slate.git","svn_url":"https://github.com/TuShare/slate","homepage":"","size":738,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TuShare/slate/pulls/1"},"html":{"href":"https://github.com/TuShare/slate/pull/1"},"issue":{"href":"https://api.github.com/repos/TuShare/slate/issues/1"},"comments":{"href":"https://api.github.com/repos/TuShare/slate/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TuShare/slate/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TuShare/slate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TuShare/slate/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TuShare/slate/statuses/801fe0448845d17d316274582213bd3827cc36b2"}}}}