{"_id":"55d384630168850d0073f1e3","__v":18,"project":"5530bfac57cea10d00a3aa3b","user":"5530bf7457cea10d00a3aa3a","category":{"_id":"55d37623f77e6d0d00b1b11c","pages":["55d37685b9ef4435006deda6","55d37cb1b9ef4435006dedbc","55d38213b9ef4435006dedd6","55d384630168850d0073f1e3"],"version":"5530bfad57cea10d00a3aa3e","project":"5530bfac57cea10d00a3aa3b","__v":4,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-18T18:14:59.726Z","from_sync":false,"order":1,"slug":"orders","title":"Orders"},"parentDoc":null,"version":{"_id":"5530bfad57cea10d00a3aa3e","project":"5530bfac57cea10d00a3aa3b","__v":3,"createdAt":"2015-04-17T08:09:17.192Z","releaseDate":"2015-04-17T08:09:17.192Z","categories":["5530bfad57cea10d00a3aa3f","55d368cff77e6d0d00b1b0d0","55d37623f77e6d0d00b1b11c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["57a7d1073754050e0053cbc0"],"next":{"pages":[],"description":""},"createdAt":"2015-08-18T19:15:47.031Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Status\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"pending\",\n    \"0-1\": \"Awaiting payment from the buyer.\",\n    \"1-0\": \"confirming\",\n    \"1-1\": \"Buyer sent a payment for the invoice. Waiting for confirmation from the Bitcoin network. \\nIt can take up to:\\n* ~10 sec if price < 300 EUR\\n*  [~10 min](https://blockchain.info/charts/avg-confirmation-time) if price >= 300 EUR\",\n    \"2-0\": \"paid\",\n    \"2-1\": \"Payment confirmed by the Bitcoin network and merchant order is \\\"ready to be shipped\\\".\",\n    \"3-0\": \"invalid\",\n    \"3-1\": \"Payment rejected by the Bitcoin network.\",\n    \"4-0\": \"expired\",\n    \"4-1\": \"Buyer did not pay within 20 minutes and the invoice expired.\",\n    \"5-0\": \"canceled\",\n    \"5-1\": \"Buyer canceled the invoice.\",\n    \"6-0\": \"refunded\",\n    \"6-1\": \"Payment refunded to buyer or merchant.\"\n  },\n  \"cols\": 2,\n  \"rows\": 7\n}\n[/block]\n**Statuses by priority:**\n1. pending\n2. confirming\n3. paid OR invalid OR expired OR canceled\n4. refunded\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Statuses and Merchant App Behavior\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Status\",\n    \"h-1\": \"Behavior\",\n    \"h-2\": \"Sends Callback\",\n    \"0-0\": \"pending\",\n    \"0-1\": \"Mark order status as *unpaid* in database.\\nDisplay \\\"Unpaid\\\" order status for buyer.\",\n    \"0-2\": \"No\",\n    \"1-0\": \"confirming\",\n    \"2-0\": \"paid\",\n    \"1-1\": \"Mark order status as *pending* or *confirming* or *processing* in database. \\nDisplay \\\"Waiting payment from CoinGate\\\" status for buyer.\",\n    \"1-2\": \"Yes*\",\n    \"2-1\": \"Mark order as *paid* in database.\\nDisplay \\\"Paid\\\" order status for buyer.\",\n    \"3-0\": \"invalid\",\n    \"3-1\": \"Mark order as *invalid* or *rejected* in database.\\nDisplay \\\"Invalid\\\" or \\\"Rejected\\\" order status for buyer.\",\n    \"4-0\": \"expired\",\n    \"4-1\": \"Mark order as *expired* or *unpaid* in database. \\nDisplay \\\"Expired\\\" or \\\"Unpaid\\\" order status for buyer.\",\n    \"5-0\": \"canceled\",\n    \"5-1\": \"Mark order as *canceled* or *unpaid* in database.\\nDisplay \\\"Canceled\\\" or \\\"Unpaid\\\" order status for buyer.\",\n    \"2-2\": \"Yes\",\n    \"3-2\": \"Yes\",\n    \"4-2\": \"Yes\",\n    \"5-2\": \"Yes\",\n    \"6-0\": \"refunded\",\n    \"6-1\": \"Mark order as *refunded* in database.\\nDisplay \\\"Refunded\\\" or \\\"Unpaid\\\" order status for buyer.\",\n    \"6-2\": \"Yes\"\n  },\n  \"cols\": 3,\n  \"rows\": 7\n}\n[/block]\n*The \"confirming\" status is sometimes skipped and \"paid\" or \"invalid\" status is sent instead.","excerpt":"","slug":"order-statuses","type":"basic","title":"Order Statuses"}
[block:parameters] { "data": { "h-0": "Status", "h-1": "Description", "0-0": "pending", "0-1": "Awaiting payment from the buyer.", "1-0": "confirming", "1-1": "Buyer sent a payment for the invoice. Waiting for confirmation from the Bitcoin network. \nIt can take up to:\n* ~10 sec if price < 300 EUR\n* [~10 min](https://blockchain.info/charts/avg-confirmation-time) if price >= 300 EUR", "2-0": "paid", "2-1": "Payment confirmed by the Bitcoin network and merchant order is \"ready to be shipped\".", "3-0": "invalid", "3-1": "Payment rejected by the Bitcoin network.", "4-0": "expired", "4-1": "Buyer did not pay within 20 minutes and the invoice expired.", "5-0": "canceled", "5-1": "Buyer canceled the invoice.", "6-0": "refunded", "6-1": "Payment refunded to buyer or merchant." }, "cols": 2, "rows": 7 } [/block] **Statuses by priority:** 1. pending 2. confirming 3. paid OR invalid OR expired OR canceled 4. refunded [block:api-header] { "type": "basic", "title": "Statuses and Merchant App Behavior" } [/block] [block:parameters] { "data": { "h-0": "Status", "h-1": "Behavior", "h-2": "Sends Callback", "0-0": "pending", "0-1": "Mark order status as *unpaid* in database.\nDisplay \"Unpaid\" order status for buyer.", "0-2": "No", "1-0": "confirming", "2-0": "paid", "1-1": "Mark order status as *pending* or *confirming* or *processing* in database. \nDisplay \"Waiting payment from CoinGate\" status for buyer.", "1-2": "Yes*", "2-1": "Mark order as *paid* in database.\nDisplay \"Paid\" order status for buyer.", "3-0": "invalid", "3-1": "Mark order as *invalid* or *rejected* in database.\nDisplay \"Invalid\" or \"Rejected\" order status for buyer.", "4-0": "expired", "4-1": "Mark order as *expired* or *unpaid* in database. \nDisplay \"Expired\" or \"Unpaid\" order status for buyer.", "5-0": "canceled", "5-1": "Mark order as *canceled* or *unpaid* in database.\nDisplay \"Canceled\" or \"Unpaid\" order status for buyer.", "2-2": "Yes", "3-2": "Yes", "4-2": "Yes", "5-2": "Yes", "6-0": "refunded", "6-1": "Mark order as *refunded* in database.\nDisplay \"Refunded\" or \"Unpaid\" order status for buyer.", "6-2": "Yes" }, "cols": 3, "rows": 7 } [/block] *The "confirming" status is sometimes skipped and "paid" or "invalid" status is sent instead.