{"_id":"5c494101498a01005d5c0fea","project":"567f0c06143cc60d00c1fdbe","initVersion":{"_id":"567f0c06143cc60d00c1fdc1","version":"1"},"user":{"_id":"567f0baca74a1c0d003e1fba","username":"","name":"Chris Estreich"},"__v":21,"createdAt":"2019-01-24T04:37:21.242Z","changelog":[{"_id":"5c62a3ea0dcede00134b28c2","update":"http://merchant-api.tophatter.com/docs/order-list","type":"improved"},{"_id":"5c62a3ea0dcede00134b28c1","update":"http://merchant-api.tophatter.com/docs/order-retrieve","type":"improved"},{"_id":"5c62a3ea0dcede00134b28c0","update":"","type":"added"}],"body":"To improve order management, we added three new time parameters to the [order](doc:order-schema) object:\n\n* `refunded_at` is the time the order was refunded. If an item is not refunded, the parameter will return `null`.\n* `canceled_at` is the time the order was canceled. If an order was not canceled the value will be `null`.\n* `updated_at` is the time the order was last updated.\n\nAll times are in PDT (UTC -7).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X GET https://tophatter.com/merchant_api/v1/orders/retrieve.json \\\\\\n-d 'access_token=YOUR_ACCESS_TOKEN' \\\\\\n-d 'order_id=YOUR_ORDER_ID'\",\n      \"language\": \"curl\",\n      \"name\": \"GET Order\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t...\\n  \\\"refunded_at\\\": null,\\n  \\\"canceled_at\\\": null,\\n\\t\\\"paid_at\\\": \\\"2019-01-18T05:28:09-08:00\\\",\\n\\t\\\"created_at\\\": \\\"2019-01-18T05:26:57-08:00\\\",\\n\\t\\\"updated_at\\\": \\\"2019-01-22T23:24:09-08:00\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Order JSON\"\n    }\n  ]\n}\n[/block]","slug":"add-more-time-parameters-to-order-api","title":"Time attributes added to orders"}

Time attributes added to orders


To improve order management, we added three new time parameters to the [order](doc:order-schema) object: * `refunded_at` is the time the order was refunded. If an item is not refunded, the parameter will return `null`. * `canceled_at` is the time the order was canceled. If an order was not canceled the value will be `null`. * `updated_at` is the time the order was last updated. All times are in PDT (UTC -7). [block:code] { "codes": [ { "code": "curl -X GET https://tophatter.com/merchant_api/v1/orders/retrieve.json \\\n-d 'access_token=YOUR_ACCESS_TOKEN' \\\n-d 'order_id=YOUR_ORDER_ID'", "language": "curl", "name": "GET Order" } ] } [/block] [block:code] { "codes": [ { "code": "{\n\t...\n \"refunded_at\": null,\n \"canceled_at\": null,\n\t\"paid_at\": \"2019-01-18T05:28:09-08:00\",\n\t\"created_at\": \"2019-01-18T05:26:57-08:00\",\n\t\"updated_at\": \"2019-01-22T23:24:09-08:00\"\n}", "language": "json", "name": "Order JSON" } ] } [/block]
improved
http://merchant-api.tophatter.com/docs/order-list
improved
http://merchant-api.tophatter.com/docs/order-retrieve