{ "info" : { "name" : "Zola Takehome", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { "content" : "Zola interview takehome assignment" }, "version" : "1.0.0-dev" }, "item" : [ { "name" : "invoices", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/v1/invoices", "host" : [ "{{BASE_URL}}" ], "path" : [ "v1", "invoices" ], "query" : [ ], "variable" : [ ] }, "method" : "PUT", "description" : { "content" : "Insert an invoice" }, "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"amount_cents\" : 1,\n \"invoice_number\" : \"13321b13c671\",\n \"due_date\" : \"Property[year]-Property[monthOfYear]-Property[dayOfMonth]\",\n \"created_at\" : \"2026-10-18T08:31:53.403Z\",\n \"po_number\" : \"376f5944579a\",\n \"id\" : 1\n}", "mode" : "raw" } }, "name" : "PUT /v1/invoices", "description" : { "content" : "Insert an invoice" }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"PUT requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 201 - invoice", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/v1/invoices", "host" : [ "{{BASE_URL}}" ], "path" : [ "v1", "invoices" ], "query" : [ ], "variable" : [ ] }, "method" : "PUT", "description" : { "content" : "Insert an invoice" }, "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"amount_cents\" : 1,\n \"invoice_number\" : \"13321b13c671\",\n \"due_date\" : \"Property[year]-Property[monthOfYear]-Property[dayOfMonth]\",\n \"created_at\" : \"2026-10-18T08:31:53.403Z\",\n \"po_number\" : \"376f5944579a\",\n \"id\" : 1\n}", "mode" : "raw" } }, "body" : "{\n \"amount_cents\" : 1,\n \"invoice_number\" : \"bef8f180ad9d\",\n \"due_date\" : \"Property[year]-Property[monthOfYear]-Property[dayOfMonth]\",\n \"created_at\" : \"2026-10-18T08:31:53.403Z\",\n \"po_number\" : \"c35f6294c4ab\",\n \"id\" : 1\n}", "code" : 201 } ], "type" : "item" }, { "request" : { "url" : { "raw" : "{{BASE_URL}}/v1/invoices", "host" : [ "{{BASE_URL}}" ], "path" : [ "v1", "invoices" ], "query" : [ { "key" : "invoice_number", "disabled" : true, "description" : { "content" : "An invoice number to search for." } }, { "key" : "po_number", "disabled" : true, "description" : { "content" : "An purchase order number to search for." } }, { "key" : "limit", "disabled" : true, "description" : { "content" : "How many records to return. Defaults to 50 if not provided or not in the range 0 < limit <= 50." } }, { "key" : "offset", "disabled" : true, "description" : { "content" : "Pagination offset; e.g., to retrieve the second page of invoices with a limit of 50, set to 51. If not provided, defaults to 0." } } ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "Find an invoice by invoice_number or po_number. If neither is provided, returns all invoices." }, "header" : [ ] }, "name" : "GET /v1/invoices", "description" : { "content" : "Find an invoice by invoice_number or po_number. If neither is provided, returns all invoices." }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"GET requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - [invoice]", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/v1/invoices", "host" : [ "{{BASE_URL}}" ], "path" : [ "v1", "invoices" ], "query" : [ { "key" : "invoice_number", "disabled" : true, "description" : { "content" : "An invoice number to search for." } }, { "key" : "po_number", "disabled" : true, "description" : { "content" : "An purchase order number to search for." } }, { "key" : "limit", "disabled" : true, "description" : { "content" : "How many records to return. Defaults to 50 if not provided or not in the range 0 < limit <= 50." } }, { "key" : "offset", "disabled" : true, "description" : { "content" : "Pagination offset; e.g., to retrieve the second page of invoices with a limit of 50, set to 51. If not provided, defaults to 0." } } ], "variable" : [ ] }, "method" : "GET", "description" : { "content" : "Find an invoice by invoice_number or po_number. If neither is provided, returns all invoices." }, "header" : [ ] }, "body" : "[ {\n \"amount_cents\" : 1,\n \"invoice_number\" : \"4585183f8bcd\",\n \"due_date\" : \"Property[year]-Property[monthOfYear]-Property[dayOfMonth]\",\n \"created_at\" : \"2026-10-18T08:31:53.403Z\",\n \"po_number\" : \"3ab5a7885bd8\",\n \"id\" : 1\n} ]", "code" : 200 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "localhost", "type" : "string" } ] }