{"_id":"56326ea1df556c0d00cd08f4","version":{"_id":"56326e9cdf556c0d00cd08ca","project":"544fc17e698ab40800b4f891","__v":2,"createdAt":"2015-10-29T19:08:12.724Z","releaseDate":"2015-10-29T19:08:12.724Z","categories":["56326e9ddf556c0d00cd08cb","56326e9ddf556c0d00cd08cc","56326e9ddf556c0d00cd08cd","56326e9ddf556c0d00cd08ce","56326e9ddf556c0d00cd08cf","56326e9ddf556c0d00cd08d0","56326e9ddf556c0d00cd08d1","56326e9ddf556c0d00cd08d2","56326e9ddf556c0d00cd08d3","56326e9ddf556c0d00cd08d4","56d942ac337fd11300d6a251"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"collector","version_clean":"2.1.0","version":"2.1"},"editedParams":true,"project":"544fc17e698ab40800b4f891","parentDoc":null,"__v":2,"user":"544fc065698ab40800b4f888","category":{"_id":"56326e9ddf556c0d00cd08ce","__v":1,"pages":["56326ea1df556c0d00cd08f2","56326ea1df556c0d00cd08f3","56326ea1df556c0d00cd08f4"],"project":"544fc17e698ab40800b4f891","version":"56326e9cdf556c0d00cd08ca","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-28T16:17:37.944Z","from_sync":false,"order":3,"slug":"cash-in","title":"Cash In"},"editedParams2":true,"updates":["59c79b8523d78a002ebacafc"],"next":{"pages":[],"description":""},"createdAt":"2015-05-22T03:18:05.136Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"python","name":"","code":"import requests\n\nTOKEN = 'YOUR TOKEN'\nurl = 'https://coins.ph/api/v2/buyorder'\n\nheaders = {\n    'Authorization': 'Bearer {}'.format(TOKEN),\n    'Accept': 'application/json'\n}\n\nbody = json.dumps({\n    'payment_confirmation_code': '889143375651'\n})\n\nrequests.put(url, headers=headers, data=body)"}]},"method":"put","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"order\": {\n        \"btc_amount\": \"0.025\",\n        \"btc_released\": \"0\",\n        \"canceled_time\": null,\n        \"created_at\": \"1409207466\",\n        \"currency_amount\": \"624\",\n        \"expiration_time\": \"1409211066\",\n        \"id\": \"1o2r3d4e5r\",\n        \"instructions\": \"Deposit to our BDO bank account for your cash-in\",\n        \"marked_paid_time\": 1409210044,\n        \"payment_method\": \"bdo_deposit\",\n        \"rate\": \"24489\",\n        \"status\": \"pending_payment\",\n        \"wallet_address\": \"kfkffh32432\"\n    },\n    \"success\": true\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"555e9fed57fe0a0d00c8f30c","ref":"","in":"path","required":false,"desc":"Required. ID of the buy order to mark as paid.","default":"","type":"string","name":"id"},{"_id":"574672c204f2410e00a5a363","ref":"","in":"body","required":false,"desc":"Optional. Update the buy order with the confirmation code from an outlet","default":"","type":"string","name":"payment_confirmation_code"}],"url":"/api/v2/buyorder/:id"},"isReference":false,"order":2,"body":"This endpoint notifies the service that the cash in is already paid for. It is required that buy orders are marked as paid if they are actually paid before the expiration time. Once a buy order is already expired, it cannot be marked as paid.\n\nPaid buy orders that are not marked as paid will not be processed. Sometimes, a buy order is paid by a customer, and then the customer forgets to mark the cash in as paid. We can still process the order by sending a support request at the regional support channels.\n\nA `PUT` to the `buyorder` endpoint will mark the buy order as paid. The request body should be empty.","excerpt":"Mark a buy order as paid","slug":"update-buyorder","type":"endpoint","title":"buyorder"}

putbuyorder

Mark a buy order as paid

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
string
Required. ID of the buy order to mark as paid.

Body Params

payment_confirmation_code:
string
Optional. Update the buy order with the confirmation code from an outlet

Examples


Result Format


Documentation

This endpoint notifies the service that the cash in is already paid for. It is required that buy orders are marked as paid if they are actually paid before the expiration time. Once a buy order is already expired, it cannot be marked as paid. Paid buy orders that are not marked as paid will not be processed. Sometimes, a buy order is paid by a customer, and then the customer forgets to mark the cash in as paid. We can still process the order by sending a support request at the regional support channels. A `PUT` to the `buyorder` endpoint will mark the buy order as paid. The request body should be empty.