{ "parameters": [ { "name": "page", "description": "Current page" }, { "name": "sort_by", "description": "Field on which to sort (see responses for possible values)" }, { "name": "sort_direction", "description": "Direction to sort (asc or desc)" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort_by": "created_at", "sort_direction": "desc" }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "Content-Type": "application/json; charset=utf-8", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:39:13 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "15e87af6-6fbb-4203-a301-abdec91d39c8", "X-Runtime": "0.004802", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "490" }, "request_method": "GET", "request_path": "/api/admin/promo_code_lists?page=1&sort_by=created_at&sort_direction=desc", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"promo_code_lists\": [\n {\n \"_id\": \"5dddc5b012415942540759f3\",\n \"count\": 2,\n \"created_at\": \"2019-11-27T00:39:12.985Z\",\n \"expires_at\": null,\n \"generation_completed_at\": \"2019-11-27T00:39:12.993Z\",\n \"name\": \"Test Code List\",\n \"prefix\": null,\n \"updated_at\": \"2019-11-27T00:39:12.995Z\"\n },\n {\n \"_id\": \"5dddc5b012415942540759f0\",\n \"count\": 2,\n \"created_at\": \"2019-11-27T00:39:12.972Z\",\n \"expires_at\": null,\n \"generation_completed_at\": \"2019-11-27T00:39:12.980Z\",\n \"name\": \"Test Code List\",\n \"prefix\": null,\n \"updated_at\": \"2019-11-27T00:39:12.982Z\"\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/admin/promo_code_lists?page=1&sort_by=created_at&sort_direction=desc\" -X GET " } ], "resource": "Promo Code Lists", "description": "Listing promo code lists", "route": "/api/admin/promo_code_lists", "http_method": "GET" }