{"info":{"_postman_id":"7b395c12-dbfa-4acc-a4e0-eb21ec0696f8","name":"LaraCommerce API","description":"<html><head></head><body><h2 id=\"this-documentation-describes-how-to-access-the-laracommerce-api-service\">This documentation describes how to access the LaraCommerce API service</h2>\n<p>Contact Support:<br>Email: <a href=\"https://mailto:laracommerce12@gmail.com\">laracommerce12@gmail.com</a> / <a href=\"https://mailto:muhammadhabibfery@gmail.com\">muhammadhabibfery@gmail.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25234064","collectionId":"7b395c12-dbfa-4acc-a4e0-eb21ec0696f8","publishedId":"2s93JnUSRS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-04T17:12:06.000Z"},"item":[{"name":"user","item":[{"name":"Register user","id":"a0b0bf61-80f4-4104-8171-70b7bd235129","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"string\",\r\n    \"username\": \"string\",\r\n    \"email\": \"string\",\r\n    \"phone\": \"string\",\r\n    \"password\": \"string\",\r\n    \"password_confirmation\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/register","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929","id":"ff675ef5-eb2f-4ceb-9223-494c05387929","name":"user","type":"folder"}},"urlObject":{"path":["register"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"4f8d268e-ac6e-4805-92c3-8da3f2337641","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"john lennon\",\r\n    \"username\": \"john-lennon\",\r\n    \"email\": \"johnlennon@beatles.com\",\r\n    \"phone\": \"0812345678\",\r\n    \"password\": \"secret@123\",\r\n    \"password_confirmation\": \"secret@123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Account has been successfully registered, please check your email to verify your account.\"\n}"},{"id":"0204ddf5-04a2-4dcd-b12b-076436e31535","name":"Unprocessable Content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"john lennon\",\r\n    \"username\": \"john-lennon\",\r\n    \"email\": \"johnlennon@beatles.com\",\r\n    \"phone\": \"0812345678\",\r\n    \"password\": \"abc\",\r\n    \"password_confirmation\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/register"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"username\": [\n            \"The username has already been taken.\"\n        ],\n        \"email\": [\n            \"The email has already been taken.\"\n        ],\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ],\n        \"password\": [\n            \"The password must be at least 8 characters.\",\n            \"The password must contain at least one symbol.\",\n            \"The password must contain at least one number.\"\n        ]\n    }\n}"}],"_postman_id":"a0b0bf61-80f4-4104-8171-70b7bd235129"},{"name":"Reset password user","id":"1726cf53-e1a4-4c9b-b771-02b3286cf063","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"string\",\r\n    \"password\": \"string\",\r\n    \"password_confirmation\": \"string\",\r\n    \"token\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/password/reset","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929","id":"ff675ef5-eb2f-4ceb-9223-494c05387929","name":"user","type":"folder"}},"urlObject":{"path":["password","reset"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"6600c5cb-8fd4-40b3-a6ac-f14e909e6693","name":"Succesfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"johnlennon@beatles.com\",\r\n    \"password\": \"secret@123\",\r\n    \"password_confirmation\": \"secret@123\",\r\n    \"token\": \"justrandomstring123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/reset"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:43:11 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The password has been reset.\"\n}"},{"id":"903db6a0-cd33-4301-95ec-8fca22656d50","name":"Unprocessable content (Invalid email address)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@beatles.com\",\r\n    \"password\": \"secret@123\",\r\n    \"password_confirmation\": \"secret@123\",\r\n    \"token\": \"justrandomstring123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/reset"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:46:18 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"email\": [\n            \"Invalid email address.\"\n        ]\n    }\n}"},{"id":"28097968-809a-47fd-8489-157e36011915","name":"Unprocessable content (Invalid password rules)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"johnlennon@beatles.com\",\r\n    \"password\": \"abc\",\r\n    \"password_confirmation\": \"abc\",\r\n    \"token\": \"justrandomstring123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/reset"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:48:28 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"password\": [\n            \"The password must be at least 8 characters.\",\n            \"The password must contain at least one symbol.\",\n            \"The password must contain at least one number.\"\n        ]\n    }\n}"},{"id":"5d498395-2b2c-452f-a1ed-cf6248726751","name":"Unprocessable content (Invalid password reset token)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"johnlennon@beatles.com\",\r\n    \"password\": \"secret@123\",\r\n    \"password_confirmation\": \"secret@123\",\r\n    \"token\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/reset"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:49:14 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"email\": [\n            \"This password reset token is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"1726cf53-e1a4-4c9b-b771-02b3286cf063"},{"name":"Login user","event":[{"listen":"test","script":{"id":"eb4340ee-d661-4c53-8e2a-160e382de551","exec":["const jsonData = pm.response.json()\r","pm.globals.set(\"token\", jsonData.token)"],"type":"text/javascript","packages":{}}}],"id":"6863b239-08ea-41de-b7ac-28ec39ef514b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"irma\",\r\n    \"password\": \"password@123\"\r\n}"},"url":"https://laracommerce.test/api/login","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929","id":"ff675ef5-eb2f-4ceb-9223-494c05387929","name":"user","type":"folder"}},"urlObject":{"path":["login"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"ee1efc44-0621-40b6-82c7-c3a3fcf1964e","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"john-lennon\",\r\n    \"password\": \"secret@123\",\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 17:58:26 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Logged in succesfully.\",\n    \"data\": {\n        \"id\": 0,\n        \"name\": \"john lennon\",\n        \"username\": \"john-lennon\",\n        \"email\": \"johnlennon@beatles.com\",\n        \"phone\": \"0812345678\",\n        \"address\": null,\n        \"avatar\": null\n    },\n    \"token\": \"randomToken\"\n}"},{"id":"d5e9baeb-288a-4e96-b1be-241be1bf6e97","name":"Unprocessable Content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"john-lennon\",\r\n    \"password\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/login"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:04:05 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"username\": [\n            \"The credentials does not match.\"\n        ]\n    }\n}"}],"_postman_id":"6863b239-08ea-41de-b7ac-28ec39ef514b"},{"name":"Logout user","id":"906cc2b9-0848-40d9-8190-a8f91d55fcd6","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/logout","urlObject":{"path":["logout"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"d6a0c193-debd-4d87-8cdd-2e310d855739","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 20:27:55 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Logged out succesfully.\"\n}"}],"_postman_id":"906cc2b9-0848-40d9-8190-a8f91d55fcd6"},{"name":"Send email verification link","id":"54578c56-0be4-46d9-8ef7-195ee1f55195","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/email/resend","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929","id":"ff675ef5-eb2f-4ceb-9223-494c05387929","name":"user","type":"folder"}},"urlObject":{"path":["email","resend"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"66805cc2-3873-47e8-91d0-14a419c34e46","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"johnlennon@beatles.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/email/resend"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:29:08 GMT"},{"key":"X-RateLimit-Limit","value":"6"},{"key":"X-RateLimit-Remaining","value":"5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Verification link has been sent.\"\n}"}],"_postman_id":"54578c56-0be4-46d9-8ef7-195ee1f55195"},{"name":"Send reset password link","id":"9bf5dce1-8290-4968-be45-23200a5f4165","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/password/email","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929","id":"ff675ef5-eb2f-4ceb-9223-494c05387929","name":"user","type":"folder"}},"urlObject":{"path":["password","email"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"6ee38f2d-008a-424f-a204-126e180dfa20","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"johnlennon@beatles.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:36:27 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The password reset link has been sent.\"\n}"},{"id":"d993a9e9-09ff-4bc0-998c-e3b4956375e3","name":"Unprocessable Content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@beatles.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/password/email"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 04 Feb 2023 18:38:53 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"email\": [\n            \"Invalid email address.\"\n        ]\n    }\n}"}],"_postman_id":"9bf5dce1-8290-4968-be45-23200a5f4165"}],"id":"ff675ef5-eb2f-4ceb-9223-494c05387929","description":"<h2 id=\"this-section-contains-about-authentication-endpoints\"><strong>This section contains about authentication endpoints</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"2ef93488-c061-40c6-b7c7-e01bf22cce42","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"929d9236-db8e-4a4d-bd50-5b883bba3ee6","type":"text/javascript","exec":[""]}}],"_postman_id":"ff675ef5-eb2f-4ceb-9223-494c05387929"},{"name":"profile and password","item":[{"name":"Update profile with form data","id":"b92f9356-0e84-4373-af52-e67703e28660","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"name","description":"<p>Update name of the profile</p>\n","type":"text"},{"key":"username","value":"username","description":"<p>Update username of the profile</p>\n","type":"text"},{"key":"email","value":"email","description":"<p>Update email of the profile</p>\n","type":"text"},{"key":"phone","value":"phone number","description":"<p>Update phone number of the profile</p>\n","type":"text"},{"key":"image","description":"<p>file (image) to upload</p>\n","type":"file","value":null},{"key":"address","value":"address","description":"<p>Update address of the profile</p>\n","type":"text"}]},"url":"https://laracommerce.test/api/profile/update-profile?_method=PATCH","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"967912a4-6fd8-4851-b980-07dc43015747","id":"967912a4-6fd8-4851-b980-07dc43015747","name":"profile and password","type":"folder"}},"urlObject":{"path":["profile","update-profile"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Required)</p>\n","type":"text/plain"},"key":"_method","value":"PATCH"}],"variable":[]}},"response":[{"id":"e2450506-48c4-44c0-a323-18e28996e3e5","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data;boundary=----WebKitFormBoundaryyrV7KO0BoCBuDbTL","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"john lennon","type":"text"},{"key":"username","value":"lennon beatles","type":"text"},{"key":"email","value":"johnlennon@beatles.com","type":"text"},{"key":"phone","value":"0812345678","type":"text"},{"key":"image","type":"file","value":null},{"key":"address","value":"abbey road","type":"text"}]},"url":{"raw":"https://laracommerce.test/api/profile/update-profile?_method=PATCH","protocol":"https","host":["laracommerce","test"],"path":["api","profile","update-profile"],"query":[{"key":"_method","value":"PATCH","description":"(Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 05:58:11 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The profile updated successfully.\",\n    \"data\": {\n        \"id\": 33,\n        \"name\": \"John Lennon\",\n        \"username\": \"lennon-beatles\",\n        \"email\": \"johnlennon@beatles\",\n        \"phone\": \"0812345678\",\n        \"address\": \"abbey road\",\n        \"avatar\": null\n    }\n}"},{"id":"fe61b926-603f-4efe-ba20-0e8995ee029a","name":"Unprocessable content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data;boundary=----WebKitFormBoundaryyrV7KO0BoCBuDbTL","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://laracommerce.test/api/profile/update-profile?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","update-profile"],"query":[{"key":"_method","value":"PATCH","description":"(Rrequired)"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:00:45 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The name field is required.\"\n        ],\n        \"username\": [\n            \"The username field is required.\"\n        ],\n        \"email\": [\n            \"The email field is required.\"\n        ],\n        \"phone\": [\n            \"The phone field is required.\"\n        ]\n    }\n}"},{"id":"5fb17f54-3c74-4c85-8738-31a57784123e","name":"Unprocessable content (The fields are already exist)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data;boundary=----WebKitFormBoundaryyrV7KO0BoCBuDbTL","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"name","description":"Update name of the profile","type":"text"},{"key":"username","value":"username","description":"Update username of the profile","type":"text"},{"key":"email","value":"email","description":"Update email of the profile","type":"text"},{"key":"phone","value":"phone number","description":"Update phone number of the profile","type":"text"},{"key":"image","description":"file (image) to upload","type":"file","value":null}]},"url":{"raw":"https://laracommerce.test/api/profile/update-profile?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","update-profile"],"query":[{"key":"_method","value":"PATCH","description":"(Rrequired)"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:19:53 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"username\": [\n            \"The username has already been taken.\"\n        ],\n        \"email\": [\n            \"The email has already been taken.\"\n        ],\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"b92f9356-0e84-4373-af52-e67703e28660"},{"name":"Change password","id":"582e91c4-ab3f-4ca1-a16e-d82a2d4bd568","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"current_password\": \"string\",\r\n    \"new_password\": \"string\",\r\n    \"new_password_confirmation\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/profile/change-password?_method=PATCH","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"967912a4-6fd8-4851-b980-07dc43015747","id":"967912a4-6fd8-4851-b980-07dc43015747","name":"profile and password","type":"folder"}},"urlObject":{"path":["profile","change-password"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Rrequired)</p>\n","type":"text/plain"},"key":"_method","value":"PATCH"}],"variable":[]}},"response":[{"id":"de66acc4-26b2-470f-bbc7-3095b4530ccb","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"current_password\": \"password@123\",\r\n    \"new_password\": \"password@12345\",\r\n    \"new_password_confirmation\": \"password@12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://laracommerce.test/api/profile/change-password?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","change-password"],"query":[{"key":"_method","value":"PATCH","description":"(Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:11:41 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The password updated successfully.\"\n}"},{"id":"fdb1009f-ce60-4adf-bbb5-dcf378c474ee","name":"Unprocessable content (Incorrect current password)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"current_password\": \"password\",\r\n    \"new_password\": \"password@12345\",\r\n    \"new_password_confirmation\": \"password@12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://laracommerce.test/api/profile/change-password?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","change-password"],"query":[{"key":"_method","value":"PATCH","description":"(Required)"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:12:43 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"current_password\": [\n            \"The password is incorrect.\"\n        ]\n    }\n}"},{"id":"433b87c1-8586-4286-8041-18bec89566f4","name":"Unprocessable content (New password does not follow the password rules)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"current_password\": \"password@12345\",\r\n    \"new_password\": \"abc\",\r\n    \"new_password_confirmation\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://laracommerce.test/api/profile/change-password?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","change-password"],"query":[{"key":"_method","value":"PATCH","description":"(Required)"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:22:30 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"new_password\": [\n            \"The new password must be at least 8 characters.\",\n            \"The new password must contain at least one symbol.\",\n            \"The new password must contain at least one number.\"\n        ]\n    }\n}"},{"id":"9dcfa305-ef06-4ba3-ac7c-faf5e2112b30","name":"Unprocessable content (New password and current password must be different)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"current_password\": \"password@12345\",\r\n    \"new_password\": \"password@12345\",\r\n    \"new_password_confirmation\": \"password@12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://laracommerce.test/api/profile/change-password?_method=PATCH","host":["https://laracommerce.test/api"],"path":["profile","change-password"],"query":[{"key":"_method","value":"PATCH","description":"(Required)"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 06 Feb 2023 06:24:49 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"new_password\": [\n            \"The new password and current password must be different.\"\n        ]\n    }\n}"}],"_postman_id":"582e91c4-ab3f-4ca1-a16e-d82a2d4bd568"}],"id":"967912a4-6fd8-4851-b980-07dc43015747","description":"<h2 id=\"this-section-contains-about-update-user-profile-and-change-user-password-endpoints\">This section contains about update user profile and change user password endpoints</h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"3c1c0add-3a0f-43b0-b1ac-2bd017f1fbe1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fe5ad9e1-44c4-4f15-8a39-af780b7b346b","type":"text/javascript","exec":[""]}}],"_postman_id":"967912a4-6fd8-4851-b980-07dc43015747"},{"name":"merchant","item":[{"name":"product","item":[{"name":"Create product","id":"baad4720-0538-4917-be54-c2f10e71a852","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 0,\r\n    \"name\": \"string\",\r\n    \"description\": \"string\",\r\n    \"price\": 0,\r\n    \"weight\": 0,\r\n    \"stock\": 0\r\n}"},"url":"https://laracommerce.test/api/merchant/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"50580b9b-4a6a-4bb7-a437-2487440e0f7e","name":"Unprocessable content (Category not found)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 99,\r\n    \"name\": \"product 1\",\r\n    \"description\": \"lorem ipsum\",\r\n    \"price\": 100000,\r\n    \"weight\": 100,\r\n    \"stock\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/products"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 19:49:29 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"category_id\": [\n            \"The selected category is invalid.\"\n        ]\n    }\n}"},{"id":"8a816c0d-0792-491b-883d-31433ebaf9bd","name":"Unprocessable Content (Duplicate of product's name)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 1,\r\n    \"name\": \"product 1\",\r\n    \"description\": \"lorem ipsum\",\r\n    \"price\": 100000,\r\n    \"weight\": 100,\r\n    \"stock\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/products"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 19:57:02 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"},{"id":"dbeb6481-0685-49e2-b492-ad9328e2c202","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 1,\r\n    \"name\": \"product 1\",\r\n    \"description\": \"lorem ipsum\",\r\n    \"price\": 100000,\r\n    \"weight\": 100,\r\n    \"stock\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:19:18 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"The product created successfully\",\n    \"data\": {\n        \"id\": 0,\n        \"name\": \"Product 1\",\n        \"slug\": \"product-1\",\n        \"description\": \"lorem-ipsum\",\n        \"price\": 100000,\n        \"weight\": 100,\n        \"stock\": 3,\n        \"sold\": 0\n    }\n}"}],"_postman_id":"baad4720-0538-4917-be54-c2f10e71a852"},{"name":"Update product","id":"4d98b0f0-6d0e-43b3-a6a8-1981791a2705","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 0,\r\n    \"name\": \"string\",\r\n    \"description\": \"string\",\r\n    \"price\": 0,\r\n    \"weight\": 0,\r\n    \"stock\": 0\r\n}"},"url":"https://laracommerce.test/api/merchant/products/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products",":name"],"host":["https://laracommerce.test/api"],"query":[{"disabled":true,"key":"name","value":null}],"variable":[{"description":{"content":"<p>(Required) name that need to be updated</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"b97ad088-d95b-451e-ae5b-e13535e145d6","name":"Successfull operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"categoryId\": 1,\r\n    \"name\": \"product 1\",\r\n    \"description\": \"lorem ipsum\",\r\n    \"price\": 99000,\r\n    \"weight\": 100,\r\n    \"stock\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","protocol":"https","host":["laracommerce","test"],"path":["api","merchant","products",":name"],"variable":[{"key":"name","value":"name as slug","description":"(Required) name that need to be updated"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:49:58 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The product updated successfully.\",\n    \"data\": {\n        \"id\": 1,\n        \"categoryId\": 1,\n        \"name\": \"product 1\",\n        \"description\": \"lorem ipsum\",\n        \"price\": 99000,\n        \"weight\": 100,\n        \"stock\": 3,\n        \"sold\": 0\n    }\n}"},{"id":"a9ba5282-0e5f-490b-ada5-9a90fe5b281a","name":"Product not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","host":["https://laracommerce.test/api"],"path":["merchant","products",":name"],"variable":[{"key":"name","value":"product-xxx","description":"(Required) name that need to be updated"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:50:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"4d98b0f0-6d0e-43b3-a6a8-1981791a2705"},{"name":"Delete product","id":"f5202063-1fd4-408a-ab53-8ff68305b0d7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/products/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name that need to be deleted</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"54adfc81-f796-419d-8555-c2205aac500c","name":"Successfull operation","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","protocol":"https","host":["laracommerce","test"],"path":["api","merchant","products",":name"],"variable":[{"key":"name","value":"product-1","description":"(Required) name that need to be deleted"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:53:38 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The product deleted successfully.\"\n}"},{"id":"b15607af-8457-4aa1-9101-6c265d0af611","name":"Product not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","host":["https://laracommerce.test/api"],"path":["merchant","products",":name"],"variable":[{"key":"name","value":"product-xxx","description":"(Required) name that need to be deleted"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:54:36 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"f5202063-1fd4-408a-ab53-8ff68305b0d7"},{"name":"Show all products","id":"fa898e0c-bc4d-413f-807f-a0681b431cf5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"2e40d1f5-050f-4d96-9e67-234b04cfeef8","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 03:47:18 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 15,\n            \"name\": \"Product 2\",\n            \"slug\": \"product-2-kani783\",\n            \"description\": \"lorem ipsum\",\n            \"price\": 100000,\n            \"weight\": 100,\n            \"stock\": 3,\n            \"sold\": 0\n        },\n        {\n            \"id\": 13,\n            \"name\": \"Product 1\",\n            \"slug\": \"product-1-kani992\",\n            \"description\": \"lorem ipsum\",\n            \"price\": 100000,\n            \"weight\": 100,\n            \"stock\": 3,\n            \"sold\": 0\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/products?page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/products?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/products?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/products\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"fa898e0c-bc4d-413f-807f-a0681b431cf5"},{"name":"Show the products by name","id":"b9b8c366-469c-4e56-a52f-fe9d93eb6f98","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/products?keyword=product","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Optional) search the products by name</p>\n","type":"text/plain"},"key":"keyword","value":"product"}],"variable":[]}},"response":[{"id":"18019b24-175e-46e8-a522-9f2d642800e5","name":"Product not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products?keyword=name","host":["https://laracommerce.test/api"],"path":["merchant","products"],"query":[{"key":"keyword","value":"name","description":"(Optional) search the products by name"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:42:36 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"},{"id":"2f53a361-0a46-4498-bf16-6b8eb33a66d6","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products?keyword=product","host":["https://laracommerce.test/api"],"path":["merchant","products"],"query":[{"key":"keyword","value":"product","description":"(Optional) search the products by name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 03:48:15 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 15,\n            \"name\": \"Product 2\",\n            \"slug\": \"product-2-kani783\",\n            \"description\": \"lorem ipsum\",\n            \"price\": 100000,\n            \"weight\": 100,\n            \"stock\": 3,\n            \"sold\": 0\n        },\n        {\n            \"id\": 13,\n            \"name\": \"Product 1\",\n            \"slug\": \"product-1-kani992\",\n            \"description\": \"lorem ipsum\",\n            \"price\": 100000,\n            \"weight\": 100,\n            \"stock\": 3,\n            \"sold\": 0\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/products?keyword=product&page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/products?keyword=product&page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/products?keyword=product&page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/products\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"b9b8c366-469c-4e56-a52f-fe9d93eb6f98"},{"name":"Find a product by name (as slug)","id":"f9bc9876-77e1-46d8-a7fa-3f6cd7510104","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/products/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","name":"product","type":"folder"}},"urlObject":{"path":["merchant","products",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of product to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"0a3bc69f-d439-4940-8be9-be966f0d2798","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","host":["https://laracommerce.test/api"],"path":["merchant","products",":name"],"variable":[{"key":"name","value":"product-1","description":"(Required) name of product to return"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:46:16 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Product 1\",\n        \"slug\": \"product-1\",\n        \"description\": \"lorem-ipsum\",\n        \"price\": 99000,\n        \"weight\": 100,\n        \"stock\": 3,\n        \"sold\": 0,\n        \"category\": {\n            \"id\": 1,\n            \"name\": \"Gadget\"\n        }\n    }\n}"},{"id":"0ea597e8-f9f6-4c55-ba9d-1aa17af29616","name":"Product not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/products/:name","host":["https://laracommerce.test/api"],"path":["merchant","products",":name"],"variable":[{"key":"name","value":"product-xxx","description":"(Required) name of product to return"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 07 Feb 2023 23:47:02 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"f9bc9876-77e1-46d8-a7fa-3f6cd7510104"}],"id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa","description":"<h2 id=\"this-section-contains-about-product-endpoints\"><strong>This section contains about product endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"abb21b36-68c7-4e02-b36d-705ad6ccff0c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1c00524a-75a4-41df-91f2-029e7e67b5b8","type":"text/javascript","exec":[""]}}],"_postman_id":"5998670b-cddc-4fb4-bc33-07a9bdcc9daa"},{"name":"product image","item":[{"name":"Create product image","id":"e0f3d68a-55c0-4871-a3fc-98929279795c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"productId","value":"0","description":"<p>Id of a product</p>\n","type":"text"},{"key":"image","description":"<p>File (image) to upload</p>\n","type":"file","value":null}]},"url":"https://laracommerce.test/api/merchant/product-images","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","name":"product image","type":"folder"}},"urlObject":{"path":["merchant","product-images"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"6c6783de-7a8f-4f1c-8607-eab06037a804","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"productId","value":"0","description":"Id of a product","type":"text"},{"key":"image","description":"File (image) to upload","type":"file","value":null}]},"url":"https://laracommerce.test/api/merchant/product-images"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:04:12 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"The product image created successfully.\",\n    \"data\": {\n        \"id\": 0,\n        \"name\": \"string\"\n    }\n}"},{"id":"072a9632-8d80-48a6-8fd2-5ae0f56a838e","name":"Unprocessable content (Product not found)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"productId","value":"0","description":"Id of a product","type":"text"},{"key":"image","description":"File (image) to upload","type":"file","value":null}]},"url":"https://laracommerce.test/api/merchant/product-images"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:06:33 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"product_id\": [\n            \"The selected product is invalid.\"\n        ]\n    }\n}"},{"id":"34a07504-c4cd-4c38-9851-78ca0f6cd420","name":"Unprocessable content (The file must be an image)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"productId","value":"0","description":"Id of a product","type":"text"},{"key":"image","description":"File (image) to upload","type":"file","value":null}]},"url":"https://laracommerce.test/api/merchant/product-images"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:08:18 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"image\": [\n            \"The image must be an image.\"\n        ]\n    }\n}"},{"id":"11097108-6130-465b-a047-28263561f820","name":"Bad request (Maximum amount of product images capacity)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"productId","value":"0","description":"Id of a product","type":"text"},{"key":"image","description":"File (image) to upload","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/product-images"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:24:46 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"The amount of product images has exceeded capacity (max 5 items).\"\n}"}],"_postman_id":"e0f3d68a-55c0-4871-a3fc-98929279795c"},{"name":"Show all product images","id":"addaf8dd-c848-427d-8e21-81cf8805c589","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/product-images/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","name":"product image","type":"folder"}},"urlObject":{"path":["merchant","product-images",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of product to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"baa93ef9-6d49-4ed8-8341-65878c712df6","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/product-images/:name","host":["https://laracommerce.test/api"],"path":["merchant","product-images",":name"],"variable":[{"key":"name","value":"name as slug","description":"(Required) name of product to return"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:28:30 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 0,\n            \"name\": \"string\",\n            \"slug\": \"string\"\n        },\n        {\n            \"id\": 0,\n            \"name\": \"string\",\n            \"slug\": \"string\"\n        },\n        {\n            \"id\": 0,\n            \"name\": \"string\",\n            \"slug\": \"string\"\n        },\n        {\n            \"id\": 0,\n            \"name\": \"string\",\n            \"slug\": \"string\"\n        },\n        {\n            \"id\": 0,\n            \"name\": \"string\",\n            \"slug\": \"string\"\n        }\n    ],\n    \"product\": {\n        \"id\": 0,\n        \"name\": \"string\",\n        \"slug\": \"string\",\n        \"description\": \"string\",\n        \"price\": 0,\n        \"weight\": 0,\n        \"stock\": 0,\n        \"sold\": 0\n    }\n}"},{"id":"66fcc498-e9ea-4288-9f1a-25595ba9ceac","name":"Product image not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/product-images/:name","host":["https://laracommerce.test/api"],"path":["merchant","product-images",":name"],"variable":[{"key":"name","value":"name as slug","description":"(Required) name of product to return"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:30:33 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"addaf8dd-c848-427d-8e21-81cf8805c589"},{"name":"Delete product image","id":"d858fd28-289d-45a2-8590-eb6c1037aa9e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/product-images/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","name":"product image","type":"folder"}},"urlObject":{"path":["merchant","product-images",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of product image to  be deleted</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"15ec96c2-84ef-49fe-bdb8-4fc28148ba7f","name":"Successfull operation","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/product-images/:name","host":["https://laracommerce.test/api"],"path":["merchant","product-images",":name"],"variable":[{"key":"name","value":"name as slug","description":"(Required) name of product image to  be deleted"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:32:45 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The product image deleted successfully.\"\n}"},{"id":"5c0f761a-c998-4a33-a5ed-f122d4bd1fe7","name":"Product image not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/product-images/:name","host":["https://laracommerce.test/api"],"path":["merchant","product-images",":name"],"variable":[{"key":"name","value":"name as slug","description":"(Required) name of product image to  be deleted"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 00:35:21 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"ProductImage beatles.png not found.\"\n}"}],"_postman_id":"d858fd28-289d-45a2-8590-eb6c1037aa9e"}],"id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88","description":"<h2 id=\"this-section-contains-about-product-image-endpoints\"><strong>This section contains about product image endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e606590f-3ccd-4c51-8d42-3dcef791e800","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e538ab4f-033f-4a82-b79c-77a3d55f0b49","type":"text/javascript","exec":[""]}}],"_postman_id":"29e6ad2b-006f-4674-9cc8-c2c11644ef88"},{"name":"coupon","item":[{"name":"Create coupon","id":"2721604b-1c81-48b5-8044-91579baddfaf","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"string\",\r\n    \"discount_amount\": 50000,\r\n    \"expired\": \"2023-02-28 00:00\"\r\n}"},"url":"https://laracommerce.test/api/merchant/coupons","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","name":"coupon","type":"folder"}},"urlObject":{"path":["merchant","coupons"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"71dbbdac-4b31-4cad-9b4c-426556a90d93","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"coupon 1\",\r\n    \"discount_amount\": 50000,\r\n    \"expired\": \"2023-02-28 00:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/coupons"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:50:24 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"The coupon created successfully.\",\n    \"data\": {\n        \"id\": 5,\n        \"name\": \"Coupon 1\",\n        \"slug\": \"coupon-1\",\n        \"discountAmount\": \"Rp. 50.000\",\n        \"expired\": \"2023-02-28 00:00\"\n    }\n}"},{"id":"829b2a4c-51f5-4f5d-995f-da4c75e7d0b2","name":"Unprocessable content (Duplicate coupon's name)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"coupon 1\",\r\n    \"discount_amount\": 50000,\r\n    \"expired\": \"2023-02-28 00:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/coupons"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:51:48 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"},{"id":"afe59c14-1fbc-4579-9039-07c619c73090","name":"Unprocessable content (Invalid expired date format)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"coupon 1\",\r\n    \"discount_amount\": 50000,\r\n    \"expired\": \"2023-02-28\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/coupons"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:53:56 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"55"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"expired\": [\n            \"The expired does not match the format Y-m-d H:i (example: 2023-12-30 00:00).\"\n        ]\n    }\n}"},{"id":"cd5c2858-7add-4174-a4c5-f78639cbc32d","name":"Unprocessable content (Invalid minimal expired date)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"coupon 1\",\r\n    \"discount_amount\": 50000,\r\n    \"expired\": \"2023-01-01 00:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/coupons"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:54:59 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"expired\": [\n            \"The expired must be a date after tomorrow.\"\n        ]\n    }\n}"},{"id":"1d88b471-f720-4d43-896e-38161e36d935","name":"Unprocessable content (Invalid minimal discount amount)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"coupon 1\",\r\n    \"discount_amount\": 500,\r\n    \"expired\": \"2023-02-28 00:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/coupons"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:56:44 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"discount_amount\": [\n            \"The discount amount must be at least 1000.\"\n        ]\n    }\n}"}],"_postman_id":"2721604b-1c81-48b5-8044-91579baddfaf"},{"name":"Show all coupons","id":"1a34942d-6b0a-448d-ac06-e5e855d8719b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/coupons","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","name":"coupon","type":"folder"}},"urlObject":{"path":["merchant","coupons"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"828f10b0-7e21-49d8-b5a5-338425321553","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/coupons"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:58:15 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Coupon 1\",\n            \"slug\": \"coupon-1\",\n            \"discountAmount\": \"Rp. 50.000\",\n            \"expired\": \"2023-02-28 00:00:00\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Coupon 2\",\n            \"slug\": \"coupon-2\",\n            \"discountAmount\": \"Rp. 100.000\",\n            \"expired\": \"2023-02-10 00:00:00\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/coupons?page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/coupons?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/coupons?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/coupons\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"1a34942d-6b0a-448d-ac06-e5e855d8719b"},{"name":"Show the coupons by name","id":"2b9e42f1-74da-4257-8b4c-dca3fcce5c3f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/coupons?keyword=name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","name":"coupon","type":"folder"}},"urlObject":{"path":["merchant","coupons"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Optional) search the coupons by name</p>\n","type":"text/plain"},"key":"keyword","value":"name"}],"variable":[]}},"response":[{"id":"25dfd9f4-5797-4bc1-add7-8288498847bf","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/coupons?keyword=coupon 1","host":["https://laracommerce.test/api"],"path":["merchant","coupons"],"query":[{"key":"keyword","value":"coupon 1","description":"(Optional) search the coupons by name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 19:59:38 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"name\": \"Coupon 1\",\n            \"slug\": \"coupon-1-kani633\",\n            \"discountAmount\": \"Rp. 100.000\",\n            \"expired\": \"2023-02-10 00:00:00\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/coupons?keyword=coupon%201&page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/coupons?keyword=coupon%201&page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/coupons?keyword=coupon%201&page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/coupons\",\n            \"per_page\": 6,\n            \"to\": 1,\n            \"total\": 1\n        }\n    }\n}"},{"id":"c96fe103-2a2e-4af0-afd5-adef365e651e","name":"Coupon not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/coupons?keyword=coupon xxx","host":["https://laracommerce.test/api"],"path":["merchant","coupons"],"query":[{"key":"keyword","value":"coupon xxx","description":"(Optional) search the coupons by name"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 20:00:16 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Coupon not found.\"\n}"}],"_postman_id":"2b9e42f1-74da-4257-8b4c-dca3fcce5c3f"},{"name":"Delete coupon","id":"53387601-5c01-47d1-b5e7-81bf5f703964","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/coupons/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","name":"coupon","type":"folder"}},"urlObject":{"path":["merchant","coupons",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name that need to be deleted</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"94ec5455-6368-4993-a895-59e99ba9d62a","name":"Successfull operation","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/coupons/:name","host":["https://laracommerce.test/api"],"path":["merchant","coupons",":name"],"variable":[{"key":"name","value":"coupon-1","description":"(Required) name that need to be deleted"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 03:55:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The coupon deleted successfully.\"\n}"},{"id":"dabddf43-b35f-487f-9fea-4e04cb3aae0f","name":"Coupon not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://laracommerce.test/api/merchant/coupons/:name","host":["https://laracommerce.test/api"],"path":["merchant","coupons",":name"],"variable":[{"key":"name","value":"coupon-xxx","description":"(Required) name that need to be deleted"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 08 Feb 2023 03:56:38 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Coupon. not found.\"\n}"}],"_postman_id":"53387601-5c01-47d1-b5e7-81bf5f703964"}],"id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a","description":"<h2 id=\"this-section-contains-about-coupon-endpoints\"><strong>This section contains about coupon endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"2b0e87af-5ffe-40a8-a283-723e06bfe3c7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a7fda619-ffe1-4191-b3ea-d140480fe27f","type":"text/javascript","exec":[""]}}],"_postman_id":"2c3ccf88-4585-40c2-a120-ef7dc4cd4e3a"},{"name":"merchant account","item":[{"name":"Create merchant account","id":"68064dae-3926-4c82-9948-b441ff050271","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"0","description":"<p>Id of the banking</p>\n","type":"text"},{"key":"name","value":"name","description":"<p>Name of the merchant account</p>\n","type":"text"},{"key":"address","value":"address","description":"<p>Address of the merchant account</p>\n","type":"text"},{"key":"bank_account_name","value":"name","description":"<p>Name of merchant's bank account</p>\n","type":"text"},{"key":"bank_account_number","value":"number","description":"<p>Number of merchant's bank account</p>\n","type":"text"},{"key":"bank_branch_name","value":"branch name","description":"<p>Branch name of merchant's bank account</p>\n","type":"text"},{"key":"image","description":"<p>File (image) to upload</p>\n","type":"file","value":null}]},"url":"https://laracommerce.test/api/merchant/accounts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"60356196-a3c4-4aca-8fc1-6bdec088e589","id":"60356196-a3c4-4aca-8fc1-6bdec088e589","name":"merchant account","type":"folder"}},"urlObject":{"path":["merchant","accounts"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"a9aa2323-862f-4e57-9971-99e6a0f410ee","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"furniture store","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 13:45:37 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"The merchant account created successfully.\",\n    \"data\": {\n        \"id\": 3,\n        \"name\": \"Furniture Store\",\n        \"slug\": \"furniture-store\",\n        \"address\": \"jl.test\",\n        \"bankAccountName\": \"John Doe\",\n        \"bankAccountNumber\": \"12345\",\n        \"bankBranchName\": \"parung\",\n        \"image\": \"https://laracommerce.test/storage/merchant-images/Screenshot (1)32.png\",\n        \"balance\": \"Rp. 0\"\n    }\n}"},{"id":"eeffae74-b185-4b8f-bb86-b42416b3aca4","name":"Bad Request (User can only create one merchant account)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"furniture store","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 13:49:31 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"message\": \"You already have merchant account.\"\n}"},{"id":"b9fea9bb-0f21-4839-b16b-94eda1bf05f6","name":"Unprocessable content (Banking not found)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"99","type":"text"},{"key":"name","value":"furniture store","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 14:04:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"banking_id\": [\n            \"The selected banking is invalid.\"\n        ]\n    }\n}"},{"id":"bc77888d-cce5-4e77-a26f-cebaf135374e","name":"Unprocessable content (Duplicate of merchant account's name)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"Fa Pratama Handayani","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 14:07:54 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"},{"id":"8a4e6dc5-03d5-42fc-92ef-2697747c9334","name":"Unprocessble content (Duplicate of banking account name and/or banking account number)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"john doe","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"Tedi Saptono","type":"text"},{"key":"bank_account_number","value":"895878254921467","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/Screenshots/Screenshot (1).png"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 14:09:38 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"bank_account_name\": [\n            \"The bank account name has already been taken.\"\n        ],\n        \"bank_account_number\": [\n            \"The bank account number has already been taken.\"\n        ]\n    }\n}"},{"id":"19381c5b-4d4f-4f2f-943a-64539ede5f55","name":"Unprocessable content (The file must be an image)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"furniture store","type":"text"},{"key":"address","value":"jl.test","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Downloads/SpotifySetup (1).exe"}]},"url":"https://laracommerce.test/api/merchant/accounts"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 09 Feb 2023 14:14:42 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"image\": [\n            \"The image must be an image.\"\n        ]\n    }\n}"}],"_postman_id":"68064dae-3926-4c82-9948-b441ff050271"},{"name":"Update merchant account with form data","id":"6378f24b-203e-46c4-8c09-fff7162d4edc","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"0","type":"text","description":"<p>Id of the banking</p>\n"},{"key":"name","value":"name","type":"text","description":"<p>Name of the merhcant account</p>\n"},{"key":"address","value":"address","type":"text","description":"<p>Address of the merchant account</p>\n"},{"key":"bank_account_name","value":"name","type":"text","description":"<p>Name of merchant's bank account</p>\n"},{"key":"bank_account_number","value":"number","type":"text","description":"<p>Number of merchant's bank account</p>\n"},{"key":"bank_branch_name","value":"branch name","type":"text","description":"<p>Branch name of merchant's bank account</p>\n"},{"key":"image","type":"file","description":"<p>File (image) to upload</p>\n","value":null}]},"url":"https://laracommerce.test/api/merchant/accounts?_method=PUT","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"60356196-a3c4-4aca-8fc1-6bdec088e589","id":"60356196-a3c4-4aca-8fc1-6bdec088e589","name":"merchant account","type":"folder"}},"urlObject":{"path":["merchant","accounts"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Required)</p>\n","type":"text/plain"},"key":"_method","value":"PUT"}],"variable":[]}},"response":[{"id":"829dbc2c-1bd8-4295-b49b-700bf65892e5","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"Fa Pratama Handayani","type":"text"},{"key":"address","value":"Gg. Juanda No. 333, Denpasar 10058, Kalbar","type":"text"},{"key":"bank_account_name","value":"Tedi Saptono","type":"text"},{"key":"bank_account_number","value":"895878254921467","type":"text"},{"key":"bank_branch_name","value":"Pekanbaru","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/20170825_190821.jpg"}]},"url":{"raw":"https://laracommerce.test/api/merchant/accounts?_method=PUT","host":["https://laracommerce.test/api"],"path":["merchant","accounts"],"query":[{"key":"_method","value":"PUT"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 02:35:00 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The merchant account updated successfully.\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Fa Pratama Handayani\",\n        \"slug\": \"fa-pratama-handayani\",\n        \"address\": \"Gg. Juanda No. 333, Denpasar 10058, Kalbar\",\n        \"bankAccountName\": \"Tedi Saptono\",\n        \"bankAccountNumber\": \"895878254921467\",\n        \"bankBranchName\": \"Pekanbaru\",\n        \"image\": \"https://laracommerce.test/images/no-image.png\",\n        \"balance\": \"Rp. 140.000\"\n    }\n}"},{"id":"7c3b3eca-8998-45f5-a588-922574ffb3a2","name":"Unprocessable content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bankingId","value":"1","type":"text"},{"key":"name","value":"furniture store","type":"text"},{"key":"address","value":"jl.test123","type":"text"},{"key":"bank_account_name","value":"john doe","type":"text"},{"key":"bank_account_number","value":"12345","type":"text"},{"key":"bank_branch_name","value":"parung","type":"text"},{"key":"image","type":"file","src":"/C:/Users/asus/Pictures/20170825_190821.jpg"}]},"url":{"raw":"https://laracommerce.test/api/merchant/accounts?_method=PUT","host":["https://laracommerce.test/api"],"path":["merchant","accounts"],"query":[{"key":"_method","value":"PUT"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 02:35:50 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ],\n        \"bank_account_name\": [\n            \"The bank account name has already been taken.\"\n        ],\n        \"bank_account_number\": [\n            \"The bank account number has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"6378f24b-203e-46c4-8c09-fff7162d4edc"},{"name":"Show a merchant account","id":"6fcc25a1-df80-497d-ac6c-1d486503bd81","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/accounts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"60356196-a3c4-4aca-8fc1-6bdec088e589","id":"60356196-a3c4-4aca-8fc1-6bdec088e589","name":"merchant account","type":"folder"}},"urlObject":{"path":["merchant","accounts"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"c7853fd1-36a8-4bec-8d67-984c661cd21a","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:59:34 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Fa Pratama Handayani\",\n        \"slug\": \"fa-pratama-handayani\",\n        \"address\": \"Gg. Juanda No. 333, Denpasar 10058, Kalbar\",\n        \"bankAccountName\": \"Tedi Saptono\",\n        \"bankAccountNumber\": \"895878254921467\",\n        \"bankBranchName\": \"Pekanbaru\",\n        \"image\": \"https://laracommerce.test/images/no-image.png\",\n        \"bankingName\": \"Pt. Bank Central Asia Tbk.\",\n        \"balance\": \"Rp. 110.000\",\n        \"user\": {\n            \"id\": 4,\n            \"name\": \"John Lennon\",\n            \"username\": \"kani-ika-suartini\",\n            \"email\": \"tugiman43@example.com\",\n            \"phone\": \"0893463645491\",\n            \"address\": \"jl. test lorem\",\n            \"avatar\": \"https://laracommerce.test/images/no-user.jpg\"\n        }\n    }\n}"}],"_postman_id":"6fcc25a1-df80-497d-ac6c-1d486503bd81"}],"id":"60356196-a3c4-4aca-8fc1-6bdec088e589","description":"<h2 id=\"this-section-contains-about-merchant-account-endpoints\"><strong>This section contains about merchant account endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"2105401d-d61b-4da2-bbfb-bf1b1508ae30","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"39878a1a-b468-4935-8fb6-eb849885c9c9","type":"text/javascript","exec":[""]}}],"_postman_id":"60356196-a3c4-4aca-8fc1-6bdec088e589"},{"name":"order","item":[{"name":"Show all order","id":"b6b45362-d6f3-48e6-832e-c08db217005c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"36b1382d-4352-4a4e-8203-b6f45d6c0630","id":"36b1382d-4352-4a4e-8203-b6f45d6c0630","name":"order","type":"folder"}},"urlObject":{"path":["merchant","orders"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"dceea273-9aa4-4692-9fd7-a2a98fb77813","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 18:11:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"invoiceNumber\": \"test-234\",\n            \"totalPrice\": \"Rp. 100.000\",\n            \"status\": \"SUCCES\"\n        },\n        {\n            \"id\": 2,\n            \"invoiceNumber\": \"test-123\",\n            \"totalPrice\": \"Rp. 200.000\",\n            \"status\": \"SUCCES\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/orders?page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/orders?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/orders?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/orders\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"b6b45362-d6f3-48e6-832e-c08db217005c"},{"name":"Find an order by invoice number","id":"28aeaa37-066c-4b12-ba34-30551315a0b5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders/:name","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"36b1382d-4352-4a4e-8203-b6f45d6c0630","id":"36b1382d-4352-4a4e-8203-b6f45d6c0630","name":"order","type":"folder"}},"urlObject":{"path":["merchant","orders",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of order to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"9ef77d2f-f08e-4a9d-8a46-7ef9f83b213d","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders/test-123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 18:15:56 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 2,\n        \"invoiceNumber\": \"test-123\",\n        \"totalPrice\": \"Rp. 200.000\",\n        \"status\": \"SUCCES\",\n        \"products\": [\n            {\n                \"id\": 13,\n                \"name\": \"Product 1\",\n                \"slug\": \"product-1-kani992\",\n                \"description\": \"lorem ipsum\",\n                \"price\": \"Rp. 100.000\",\n                \"weight\": 100,\n                \"stock\": 3,\n                \"sold\": 0,\n                \"quantity\": 1,\n                \"totalPrice\": \"Rp. 100.000\"\n            },\n            {\n                \"id\": 15,\n                \"name\": \"Product 2\",\n                \"slug\": \"product-2-kani783\",\n                \"description\": \"lorem ipsum\",\n                \"price\": \"Rp. 100.000\",\n                \"weight\": 100,\n                \"stock\": 3,\n                \"sold\": 0,\n                \"quantity\": 1,\n                \"totalPrice\": \"Rp. 100.000\"\n            }\n        ]\n    }\n}"},{"id":"134248e1-e775-4fe8-8f93-079518e5abe4","name":"Order not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders/test-345"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 18:18:03 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Order. not found.\"\n}"},{"id":"a6628c94-688c-4317-a94a-4fe77f3a0dd5","name":"Order not found (By another merchant)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/orders/test-123"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 10 Feb 2023 18:19:39 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Order. not found.\"\n}"}],"_postman_id":"28aeaa37-066c-4b12-ba34-30551315a0b5"}],"id":"36b1382d-4352-4a4e-8203-b6f45d6c0630","description":"<h2 id=\"this-section-contains-about-the-orders-owned-merchant-related-endpoints\"><strong>This section contains about the orders owned merchant related endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1cf9feac-6d3d-4e5f-a360-05d95ae19107","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2c475203-72f2-4b50-a319-f9fa74c7b758","type":"text/javascript","exec":[""]}}],"_postman_id":"36b1382d-4352-4a4e-8203-b6f45d6c0630"},{"name":"finance","item":[{"name":"Show all finances","id":"35b8a03a-1bee-4d8f-a755-0e27a89f7f17","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/finances?page=2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"465151d4-35e7-4875-a61b-841101b0e5a5","id":"465151d4-35e7-4875-a61b-841101b0e5a5","name":"finance","type":"folder"}},"urlObject":{"path":["merchant","finances"],"host":["https://laracommerce.test/api"],"query":[{"key":"page","value":"2"}],"variable":[]}},"response":[{"id":"e260645a-690d-4d62-adb3-8eaa52d2a142","name":"Successfull operation","originalRequest":{"method":"GET","header":[],"url":"https://laracommerce.test/api/merchant/finances"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 00:58:48 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-123\",\n            \"description\": \"Incoming funds from #OrderId-test-123\",\n            \"amount\": \"Rp. 200.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 200.000\",\n            \"createdAt\": \"2023-02-12 21:25\"\n        },\n        {\n            \"id\": 3,\n            \"type\": \"KREDIT\",\n            \"orderId\": \"test-123\",\n            \"description\": \"20% merchant tax from #OrderId-test-123\",\n            \"amount\": \"Rp. 40.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 160.000\",\n            \"createdAt\": \"2023-02-12 21:35\"\n        },\n        {\n            \"id\": 6,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-234\",\n            \"description\": \"Incoming funds from #OrderId-test-234\",\n            \"amount\": \"Rp. 100.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 260.000\",\n            \"createdAt\": \"2023-02-12 21:41\"\n        },\n        {\n            \"id\": 10,\n            \"type\": \"KREDIT\",\n            \"orderId\": \"test-234\",\n            \"description\": \"20% merchant tax from #OrderId-test-234\",\n            \"amount\": \"Rp. 20.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 240.000\",\n            \"createdAt\": \"2023-02-12 22:36\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/finances?page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/finances?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/finances?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/finances\",\n            \"per_page\": 6,\n            \"to\": 4,\n            \"total\": 4\n        }\n    }\n}"}],"_postman_id":"35b8a03a-1bee-4d8f-a755-0e27a89f7f17"},{"name":"Show the finances by type","id":"2e61aed5-90ff-4d24-9669-eb9b6cf65a5b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/finances?type=debit|kredit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"465151d4-35e7-4875-a61b-841101b0e5a5","id":"465151d4-35e7-4875-a61b-841101b0e5a5","name":"finance","type":"folder"}},"urlObject":{"path":["merchant","finances"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Required) Type values that need to be considered for filter</p>\n","type":"text/plain"},"key":"type","value":"debit|kredit"}],"variable":[]}},"response":[{"id":"0a6d7726-94f0-4f84-8481-1627ba3e6daf","name":"Successfull operation","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://laracommerce.test/api/merchant/finances?type=debit","host":["https://laracommerce.test/api"],"path":["merchant","finances"],"query":[{"key":"type","value":"debit"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:01:03 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-123\",\n            \"description\": \"Incoming funds from #OrderId-test-123\",\n            \"amount\": \"Rp. 200.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 200.000\",\n            \"createdAt\": \"2023-02-12 21:25\"\n        },\n        {\n            \"id\": 6,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-234\",\n            \"description\": \"Incoming funds from #OrderId-test-234\",\n            \"amount\": \"Rp. 100.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 260.000\",\n            \"createdAt\": \"2023-02-12 21:41\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/finances?type=debit&page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/finances?type=debit&page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/finances?type=debit&page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/finances\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"2e61aed5-90ff-4d24-9669-eb9b6cf65a5b"},{"name":"Show the finances by status","id":"e9b98cb9-f885-4329-866c-b8eeb2c9b590","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/finances?status=pending|success|accept|reject","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"465151d4-35e7-4875-a61b-841101b0e5a5","id":"465151d4-35e7-4875-a61b-841101b0e5a5","name":"finance","type":"folder"}},"urlObject":{"path":["merchant","finances"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Required) Status values that need to be considered for filter</p>\n","type":"text/plain"},"key":"status","value":"pending|success|accept|reject"}],"variable":[]}},"response":[{"id":"59383e67-e1c5-4ca2-9a08-f286c5fce33c","name":"Successfull operation","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://laracommerce.test/api/merchant/finances?status=success","host":["https://laracommerce.test/api"],"path":["merchant","finances"],"query":[{"key":"status","value":"success"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:02:25 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-123\",\n            \"description\": \"Incoming funds from #OrderId-test-123\",\n            \"amount\": \"Rp. 200.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 200.000\",\n            \"createdAt\": \"2023-02-12 21:25\"\n        },\n        {\n            \"id\": 3,\n            \"type\": \"KREDIT\",\n            \"orderId\": \"test-123\",\n            \"description\": \"20% merchant tax from #OrderId-test-123\",\n            \"amount\": \"Rp. 40.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 160.000\",\n            \"createdAt\": \"2023-02-12 21:35\"\n        },\n        {\n            \"id\": 6,\n            \"type\": \"DEBIT\",\n            \"orderId\": \"test-234\",\n            \"description\": \"Incoming funds from #OrderId-test-234\",\n            \"amount\": \"Rp. 100.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 260.000\",\n            \"createdAt\": \"2023-02-12 21:41\"\n        },\n        {\n            \"id\": 10,\n            \"type\": \"KREDIT\",\n            \"orderId\": \"test-234\",\n            \"description\": \"20% merchant tax from #OrderId-test-234\",\n            \"amount\": \"Rp. 20.000\",\n            \"status\": \"SUCCESS\",\n            \"balance\": \"Rp. 240.000\",\n            \"createdAt\": \"2023-02-12 22:36\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/merchant/finances?status=success&page=1\",\n            \"last\": \"https://laracommerce.test/api/merchant/finances?status=success&page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/merchant/finances?status=success&page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/merchant/finances\",\n            \"per_page\": 6,\n            \"to\": 4,\n            \"total\": 4\n        }\n    }\n}"}],"_postman_id":"e9b98cb9-f885-4329-866c-b8eeb2c9b590"}],"id":"465151d4-35e7-4875-a61b-841101b0e5a5","description":"<h2 id=\"this-section-contains-history-of-merchants-finance-related-endpoints\"><strong>This section contains history of merchant's finance related endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"19bcea0b-1593-4a5d-aa57-a3e37d805a1e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3072afe4-8844-4ecc-b72d-15537ff21069","type":"text/javascript","exec":[""]}}],"_postman_id":"465151d4-35e7-4875-a61b-841101b0e5a5"},{"name":"withdraw","item":[{"name":"Show the resource needed for withdraw request form","id":"dd61e516-d820-4bf1-a687-a65a2530eefb","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/finances/withdraw","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"ae59f39e-0724-4773-8572-860a0aa6c350","id":"ae59f39e-0724-4773-8572-860a0aa6c350","name":"withdraw","type":"folder"}},"urlObject":{"path":["merchant","finances","withdraw"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"72f3f977-f830-4458-bee9-310f91fca289","name":"Successfull operation","originalRequest":{"method":"GET","header":[],"url":"https://laracommerce.test/api/merchant/finances/withdraw"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:14:54 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Fa Pratama Handayani\",\n        \"slug\": \"fa-pratama-handayani\",\n        \"address\": \"Gg. Juanda No. 333, Denpasar 10058, Kalbar\",\n        \"bankAccountName\": \"Tedi Saptono\",\n        \"bankAccountNumber\": \"895878254921467\",\n        \"bankBranchName\": \"Pekanbaru\",\n        \"image\": \"https://laracommerce.test/images/no-image.png\",\n        \"bankingName\": \"Pt. Bank Central Asia Tbk.\",\n        \"balance\": \"Rp. 240.000\"\n    }\n}"}],"_postman_id":"dd61e516-d820-4bf1-a687-a65a2530eefb"},{"name":"Create withdraw request","id":"fe8099e2-afe1-446f-be6e-fe79dc52881e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PD Nuraini Sudiati (Persero) Tbk\",\r\n    \"bankAccountName\": \"Tania Ika Purnawati\",\r\n    \"bankAccountNumber\": \"642351444373981\",\r\n    \"amount\": 300\r\n}"},"url":"https://laracommerce.test/api/merchant/finances/withdraw","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"ae59f39e-0724-4773-8572-860a0aa6c350","id":"ae59f39e-0724-4773-8572-860a0aa6c350","name":"withdraw","type":"folder"}},"urlObject":{"path":["merchant","finances","withdraw"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"9ac54503-7352-4cf9-b592-1ca60f412ce5","name":"Successfull operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Fa Pratama Handayani\",\r\n    \"bankAccountName\": \"Tedi Saptono\",\r\n    \"bankAccountNumber\": \"895878254921467\",\r\n    \"amount\": 100000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/finances/withdraw"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:19:59 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"The withdraw request has been sent.\",\n    \"data\": {\n        \"id\": 18,\n        \"type\": \"KREDIT\",\n        \"orderId\": null,\n        \"description\": \"withdraw of merchant funds\",\n        \"amount\": \"Rp. 100.000\",\n        \"status\": \"PENDING\",\n        \"balance\": \"Rp. 140.000\",\n        \"createdAt\": \"2023-02-13 08:19\"\n    }\n}"},{"id":"4b84a298-ad36-4aa0-abee-68deb401016f","name":"Unprocessable content (Invalid merchant account name)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Furniture Store\",\r\n    \"bankAccountName\": \"Tedi Saptono\",\r\n    \"bankAccountNumber\": \"895878254921467\",\r\n    \"amount\": 100000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/finances/withdraw"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:22:24 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"name\": [\n            \"The selected name is invalid.\"\n        ]\n    }\n}"},{"id":"80e996db-19a1-4448-a120-178e54756187","name":"Unprocessable content (Invalid bank account name and/or bank account number)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Fa Pratama Handayani\",\r\n    \"bankAccountName\": \"john lennon\",\r\n    \"bankAccountNumber\": \"12345\",\r\n    \"amount\": 100000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/finances/withdraw"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:23:34 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"bankAccountName\": [\n            \"The selected bank account name is invalid.\"\n        ],\n        \"bankAccountNumber\": [\n            \"The selected bank account number is invalid.\"\n        ]\n    }\n}"},{"id":"084073d5-3e38-4119-814d-f305890f949b","name":"Unprocessable content (invalid withdraw request amount)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Fa Pratama Handayani\",\r\n    \"bankAccountName\": \"Tedi Saptono\",\r\n    \"bankAccountNumber\": \"895878254921467\",\r\n    \"amount\": 500000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/merchant/finances/withdraw"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 01:25:01 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"amount\": [\n            \"Your balance is not enough to withdraw funds.\"\n        ]\n    }\n}"}],"_postman_id":"fe8099e2-afe1-446f-be6e-fe79dc52881e"}],"id":"ae59f39e-0724-4773-8572-860a0aa6c350","description":"<h2 id=\"this-section-contains-about-merchant-withdraw-funds-endpoints\"><strong>This section contains about merchant withdraw funds endpoints</strong></h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"257da06c-3fa5-4f59-822c-cf57c53c4544","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"910749d9-b1af-44ae-94bb-bc95cfe00b68","type":"text/javascript","exec":[""]}}],"_postman_id":"ae59f39e-0724-4773-8572-860a0aa6c350"}],"id":"2832c856-0be2-4b16-8cc5-ee20be5c6d6f","description":"<h2 id=\"this-section-contains-about-merchant-activity\"><strong>This section contains about merchant activity</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"827eb0fe-a894-4a8d-9b91-5b5a43c05839","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f5f541e2-e102-4c75-9c0e-5c4b1c804c85","type":"text/javascript","exec":[""]}}],"_postman_id":"2832c856-0be2-4b16-8cc5-ee20be5c6d6f"},{"name":"customer","item":[{"name":"category","item":[{"name":"Show all categories","id":"db115fad-864a-4c6d-9213-9ba48ef4650f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"bbc77af3-34eb-477c-a912-128f9da78f0b","id":"bbc77af3-34eb-477c-a912-128f9da78f0b","name":"category","type":"folder"}},"urlObject":{"path":["categories"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"c976b0d8-4dcc-4fdc-b8e8-f5df80253ab6","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 22:14:01 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Gadget\",\n            \"slug\": \"gadget\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Furniture\",\n            \"slug\": \"furniture\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Sneaker\",\n            \"slug\": \"sneaker\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/categories?page=1\",\n            \"last\": \"https://laracommerce.test/api/categories?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/categories?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/categories\",\n            \"per_page\": 6,\n            \"to\": 3,\n            \"total\": 3\n        }\n    }\n}"}],"_postman_id":"db115fad-864a-4c6d-9213-9ba48ef4650f"},{"name":"Find a category by name (As slug)","id":"1774f4fd-916e-4b62-a86c-174c1afa2f0f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories/:name","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"bbc77af3-34eb-477c-a912-128f9da78f0b","id":"bbc77af3-34eb-477c-a912-128f9da78f0b","name":"category","type":"folder"}},"urlObject":{"path":["categories",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) Name of category to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"65467f60-5051-4291-80e4-942bf796984e","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories/gadget"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 22:16:31 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Gadget\",\n        \"slug\": \"gadget\",\n        \"products\": {\n            \"data\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Enim Quidem\",\n                    \"slug\": \"enim-quidem\",\n                    \"description\": \"Similique et distinctio aut aliquam eligendi non. Sint sit et rerum nemo.\\n\\nIpsum est ut voluptas eum quas esse. Aspernatur optio sed officiis odit iure eos. Voluptatem voluptatem molestiae dolorum et doloribus dolor ad.\\n\\nNostrum culpa sunt error qui architecto aut fuga dicta. Quaerat consequatur rerum voluptatem veniam numquam. Modi excepturi quaerat cumque enim repellendus eos dolores.\",\n                    \"price\": \"Rp. 80.332\",\n                    \"weight\": 4536,\n                    \"stock\": 7,\n                    \"sold\": 1\n                },\n                {\n                    \"id\": 3,\n                    \"name\": \"Dignissimos Sint\",\n                    \"slug\": \"dignissimos-sint\",\n                    \"description\": \"Nulla et odio commodi iste quidem aperiam atque. Ea iure ea aperiam voluptates quos mollitia illo. Vero vero cupiditate rerum tempore est voluptatem. Eligendi labore similique nisi iste mollitia ea.\\n\\nNon voluptatum voluptas dolore. Enim dolores quod aspernatur consequuntur dolorem nisi sunt.\\n\\nIllo ut laudantium rem enim excepturi et et. Quia et blanditiis dicta nobis repudiandae quidem consequatur. Praesentium iste necessitatibus facilis dolores consequatur maxime minima dicta.\",\n                    \"price\": \"Rp. 150.000\",\n                    \"weight\": 6133,\n                    \"stock\": 10,\n                    \"sold\": 6\n                },\n                {\n                    \"id\": 13,\n                    \"name\": \"Product 1\",\n                    \"slug\": \"product-1-kani992\",\n                    \"description\": \"lorem ipsum\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"stock\": 3,\n                    \"sold\": 0\n                },\n                {\n                    \"id\": 15,\n                    \"name\": \"Product 2\",\n                    \"slug\": \"product-2-kani783\",\n                    \"description\": \"lorem ipsum\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"stock\": 3,\n                    \"sold\": 0\n                }\n            ],\n            \"pages\": {\n                \"links\": {\n                    \"first\": \"https://laracommerce.test/api/categories/gadget?page=1\",\n                    \"last\": \"https://laracommerce.test/api/categories/gadget?page=1\",\n                    \"prev\": null,\n                    \"next\": null\n                },\n                \"meta\": {\n                    \"current_page\": 1,\n                    \"from\": 1,\n                    \"last_page\": 1,\n                    \"links\": [\n                        {\n                            \"url\": null,\n                            \"label\": \"&laquo; Previous\",\n                            \"active\": false\n                        },\n                        {\n                            \"url\": \"https://laracommerce.test/api/categories/gadget?page=1\",\n                            \"label\": \"1\",\n                            \"active\": true\n                        },\n                        {\n                            \"url\": null,\n                            \"label\": \"Next &raquo;\",\n                            \"active\": false\n                        }\n                    ],\n                    \"path\": \"https://laracommerce.test/api/categories/gadget\",\n                    \"per_page\": 6,\n                    \"to\": 4,\n                    \"total\": 4\n                }\n            }\n        }\n    }\n}"},{"id":"19af76c7-b0c0-4655-bb9f-d9f4f09290ec","name":"Category not found (Invalid name)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories/xxx"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 22:17:45 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Category xxx not found.\"\n}"},{"id":"1d290274-a31b-43ee-b0e1-9b5bf7590974","name":"Category not found (Without name)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/categories/ "},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 22:19:16 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Category   not found.\"\n}"}],"_postman_id":"1774f4fd-916e-4b62-a86c-174c1afa2f0f"}],"id":"bbc77af3-34eb-477c-a912-128f9da78f0b","description":"<h2 id=\"this-section-contains-about-the-resource-of-category-for-frontend-pages\"><strong>This section contains about the resource of category for frontend pages</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"d14f7ed6-67f4-42aa-b22a-82e0ded1d14a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c9594212-80e0-46af-9204-8064db78b151","type":"text/javascript","exec":[""]}}],"_postman_id":"bbc77af3-34eb-477c-a912-128f9da78f0b"},{"name":"product","item":[{"name":"Show the products by name or description (As query params)","id":"f27e7ba3-daf5-47fb-80d4-a8637fda1118","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/product/search?q=product","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"03e67918-ca89-47f1-8edb-0f4ee16ada82","id":"03e67918-ca89-47f1-8edb-0f4ee16ada82","name":"product","type":"folder"}},"urlObject":{"path":["product","search"],"host":["https://laracommerce.test/api"],"query":[{"description":{"content":"<p>(Optional) search the products by name</p>\n","type":"text/plain"},"key":"q","value":"product"}],"variable":[]}},"response":[{"id":"f89bef49-0bb8-4905-88b7-6f00a55c90e9","name":"Successfull operation","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://laracommerce.test/api/product/search?q=rerum","host":["https://laracommerce.test/api"],"path":["product","search"],"query":[{"key":"q","value":"rerum"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:25:03 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 5,\n            \"name\": \"Impedit Consequatur\",\n            \"slug\": \"impedit-consequatur\",\n            \"description\": \"Inventore quia quia aspernatur laborum omnis dignissimos. Iure rerum sint nihil beatae quia ut. Dolor assumenda saepe aut aut est qui dolore. Nesciunt est officia nihil amet perferendis aliquid non ea. Maxime numquam magnam necessitatibus voluptas similique tempore ipsa magni.\\n\\nRem voluptates modi rem placeat cumque asperiores veritatis ullam. Eveniet dignissimos accusamus animi maiores. Accusamus libero qui laborum dolores tempora cumque.\\n\\nTotam quod ut et debitis ipsum quasi. Ratione sint et est eum esse et. Tempore aut qui odio ut.\",\n            \"price\": \"Rp. 312.626\",\n            \"weight\": 7085,\n            \"stock\": 10,\n            \"sold\": 9\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Vel Mollitia\",\n            \"slug\": \"vel-mollitia\",\n            \"description\": \"Amet ut doloremque dolor et ut explicabo. Minus dolores et fugiat minima non. Maiores sit cupiditate ipsum voluptas. Consequatur vel laboriosam ipsum fuga et sit accusantium.\\n\\nAut dolorum nihil culpa ipsum quia laudantium. Eveniet deserunt tenetur eligendi omnis id. Ratione aut aliquid sed deleniti rerum et animi. Illum vel consequatur et. Ut hic voluptatem nobis libero nam voluptatem excepturi.\\n\\nRem aut est sequi necessitatibus amet consequatur distinctio. Placeat nihil vel voluptates repudiandae voluptas qui. Nesciunt nihil molestiae voluptatem fugiat doloremque omnis qui dolor.\",\n            \"price\": \"Rp. 200.000\",\n            \"weight\": 7018,\n            \"stock\": 2,\n            \"sold\": 1\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Dignissimos Sint\",\n            \"slug\": \"dignissimos-sint\",\n            \"description\": \"Nulla et odio commodi iste quidem aperiam atque. Ea iure ea aperiam voluptates quos mollitia illo. Vero vero cupiditate rerum tempore est voluptatem. Eligendi labore similique nisi iste mollitia ea.\\n\\nNon voluptatum voluptas dolore. Enim dolores quod aspernatur consequuntur dolorem nisi sunt.\\n\\nIllo ut laudantium rem enim excepturi et et. Quia et blanditiis dicta nobis repudiandae quidem consequatur. Praesentium iste necessitatibus facilis dolores consequatur maxime minima dicta.\",\n            \"price\": \"Rp. 150.000\",\n            \"weight\": 6133,\n            \"stock\": 10,\n            \"sold\": 6\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Neque Minima\",\n            \"slug\": \"neque-minima\",\n            \"description\": \"Quo numquam numquam id. Temporibus possimus adipisci est cum minus voluptatem voluptatem aut. Delectus odio animi quo. Necessitatibus non maiores soluta rerum.\\n\\nQuasi vitae et qui animi enim sapiente nihil quas. Fugiat mollitia enim consequatur qui. Perspiciatis perferendis aut repellendus eius sit illo harum eum. Quos eum modi et voluptas iure.\\n\\nVero repellendus dolorem commodi ex in sed a. Nisi ratione eveniet est. Commodi sint earum facilis dolores doloremque voluptatem.\",\n            \"price\": \"Rp. 894.671\",\n            \"weight\": 3406,\n            \"stock\": 9,\n            \"sold\": 2\n        },\n        {\n            \"id\": 1,\n            \"name\": \"Enim Quidem\",\n            \"slug\": \"enim-quidem\",\n            \"description\": \"Similique et distinctio aut aliquam eligendi non. Sint sit et rerum nemo.\\n\\nIpsum est ut voluptas eum quas esse. Aspernatur optio sed officiis odit iure eos. Voluptatem voluptatem molestiae dolorum et doloribus dolor ad.\\n\\nNostrum culpa sunt error qui architecto aut fuga dicta. Quaerat consequatur rerum voluptatem veniam numquam. Modi excepturi quaerat cumque enim repellendus eos dolores.\",\n            \"price\": \"Rp. 80.332\",\n            \"weight\": 4536,\n            \"stock\": 7,\n            \"sold\": 1\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/product/search?query=rerum&q=rerum&page=1\",\n            \"last\": \"https://laracommerce.test/api/product/search?query=rerum&q=rerum&page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/product/search?query=rerum&q=rerum&page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/product/search\",\n            \"per_page\": 6,\n            \"to\": 5,\n            \"total\": 5\n        }\n    }\n}"},{"id":"a87ef354-9554-452f-87ca-2abd5ca0f0e9","name":"Product not found (Invalid name or description)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://laracommerce.test/api/product/search?q=xxx","host":["https://laracommerce.test/api"],"path":["product","search"],"query":[{"key":"q","value":"xxx"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:25:52 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Products xxx not found.\"\n}"},{"id":"222dfd1e-13ba-4520-abb0-1e0638ad5656","name":"Product not found (Without query params)","originalRequest":{"method":"GET","header":[],"url":"https://laracommerce.test/api/product/search"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:26:32 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"f27e7ba3-daf5-47fb-80d4-a8637fda1118"},{"name":"Find a product by name (As slug)","id":"f5db1751-626c-4e72-9d1c-9774d29716a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/product/:name","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"03e67918-ca89-47f1-8edb-0f4ee16ada82","id":"03e67918-ca89-47f1-8edb-0f4ee16ada82","name":"product","type":"folder"}},"urlObject":{"path":["product",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of product to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"3842993b-bb1d-44ba-81a4-40b545edb52e","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/product/product-2-kani783"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:30:39 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 15,\n        \"name\": \"Product 2\",\n        \"slug\": \"product-2-kani783\",\n        \"description\": \"lorem ipsum\",\n        \"price\": \"Rp. 100.000\",\n        \"weight\": 100,\n        \"stock\": 3,\n        \"sold\": 0,\n        \"merchant\": {\n            \"id\": 2,\n            \"name\": \"Fa Pratama Handayani\",\n            \"slug\": \"fa-pratama-handayani\",\n            \"address\": \"Gg. Juanda No. 333, Denpasar 10058, Kalbar\",\n            \"image\": \"https://laracommerce.test/images/no-image.png\"\n        },\n        \"category\": {\n            \"id\": 1,\n            \"name\": \"Gadget\",\n            \"slug\": \"gadget\"\n        }\n    }\n}"},{"id":"82cdec6a-fd5c-4b2e-bc27-9b72cb7dbd27","name":"Product not found (Invalid name)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/product/xxx"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:31:19 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Product. not found.\"\n}"}],"_postman_id":"f5db1751-626c-4e72-9d1c-9774d29716a9"}],"id":"03e67918-ca89-47f1-8edb-0f4ee16ada82","description":"<h2 id=\"this-section-contains-about-the-resource-of-product-for-frontend-pages\"><strong>This section contains about the resource of product for frontend pages</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"5a9e8f3b-d65a-41de-be16-aee1777cb359","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4b40532e-addb-45eb-aeff-b2bb01ec80af","type":"text/javascript","exec":[""]}}],"_postman_id":"03e67918-ca89-47f1-8edb-0f4ee16ada82"},{"name":"merchant account","item":[{"name":"FInd a merchant account by name (As slug)","id":"96925ae0-1609-4f60-b8d4-29f66503af09","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/detail/:name","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"e84e3362-c92d-4219-9c23-fed7263d3ac1","id":"e84e3362-c92d-4219-9c23-fed7263d3ac1","name":"merchant account","type":"folder"}},"urlObject":{"path":["merchant","detail",":name"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) name of merhcant account to return</p>\n","type":"text/plain"},"type":"any","value":"name as slug","key":"name"}]}},"response":[{"id":"abcc1c05-bfa0-4664-b4bb-200656cc5ace","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/detail/fa-pratama-handayani"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:35:40 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Fa Pratama Handayani\",\n        \"slug\": \"fa-pratama-handayani\",\n        \"address\": \"Gg. Juanda No. 333, Denpasar 10058, Kalbar\",\n        \"image\": \"https://laracommerce.test/images/no-image.png\",\n        \"products\": {\n            \"data\": [\n                {\n                    \"id\": 13,\n                    \"name\": \"Product 1\",\n                    \"slug\": \"product-1-kani992\",\n                    \"description\": \"lorem ipsum\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"stock\": 3,\n                    \"sold\": 0\n                },\n                {\n                    \"id\": 15,\n                    \"name\": \"Product 2\",\n                    \"slug\": \"product-2-kani783\",\n                    \"description\": \"lorem ipsum\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"stock\": 3,\n                    \"sold\": 0\n                }\n            ],\n            \"pages\": {\n                \"links\": {\n                    \"first\": \"https://laracommerce.test/api/merchant/detail/fa-pratama-handayani?page=1\",\n                    \"last\": \"https://laracommerce.test/api/merchant/detail/fa-pratama-handayani?page=1\",\n                    \"prev\": null,\n                    \"next\": null\n                },\n                \"meta\": {\n                    \"current_page\": 1,\n                    \"from\": 1,\n                    \"last_page\": 1,\n                    \"links\": [\n                        {\n                            \"url\": null,\n                            \"label\": \"&laquo; Previous\",\n                            \"active\": false\n                        },\n                        {\n                            \"url\": \"https://laracommerce.test/api/merchant/detail/fa-pratama-handayani?page=1\",\n                            \"label\": \"1\",\n                            \"active\": true\n                        },\n                        {\n                            \"url\": null,\n                            \"label\": \"Next &raquo;\",\n                            \"active\": false\n                        }\n                    ],\n                    \"path\": \"https://laracommerce.test/api/merchant/detail/fa-pratama-handayani\",\n                    \"per_page\": 6,\n                    \"to\": 2,\n                    \"total\": 2\n                }\n            }\n        }\n    }\n}"},{"id":"e819bec2-08c9-4792-9675-e0b46713bd9f","name":"Merchant account not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/merchant/detail/test-merchant"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Tue, 14 Feb 2023 06:36:23 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"MerchantAccount test-merchant not found.\"\n}"}],"_postman_id":"96925ae0-1609-4f60-b8d4-29f66503af09"}],"id":"e84e3362-c92d-4219-9c23-fed7263d3ac1","description":"<h2 id=\"this-section-contains-about-the-resource-of-merchant-account-for-frontend-pages\"><strong>This section contains about the resource of merchant account for frontend pages</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"08f4462f-62ed-4c36-9001-1994ad1b70a7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4cd9374c-e6d4-40b2-bf6b-d246133fa6c3","type":"text/javascript","exec":[""]}}],"_postman_id":"e84e3362-c92d-4219-9c23-fed7263d3ac1"},{"name":"checkout","item":[{"name":"Update the user's shipping address","id":"77389eee-dfa2-4879-bdbc-17d7e4aa96ec","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"string\",\r\n    \"phone\": \"string\",\r\n    \"address\": \"string\",\r\n    \"provinceId\": 0,\r\n    \"cityId\": 0\r\n}"},"url":"https://laracommerce.test/api/checkout/shipping","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","name":"checkout","type":"folder"}},"urlObject":{"path":["checkout","shipping"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"e9ae57e2-ba18-4923-a51b-0be249ce4e8c","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John Lennon\",\r\n    \"phone\": \"0893463645491\",\r\n    \"address\": \"jl. test lorem\",\r\n    \"provinceId\": 4,\r\n    \"cityId\": 25\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/shipping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:34:47 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The shipping address has been updated\",\n    \"data\": {\n        \"id\": 4,\n        \"name\": \"John Lennon\",\n        \"username\": \"kani-ika-suartini\",\n        \"email\": \"tugiman43@example.com\",\n        \"phone\": \"0893463645491\",\n        \"address\": \"jl. test lorem\",\n        \"avatar\": \"https://laracommerce.test/images/no-user.jpg\",\n        \"city\": {\n            \"id\": 25,\n            \"name\": \"Tangerang Selatan\",\n            \"type\": \"Kota\",\n            \"postalCode\": \"15435\"\n        }\n    }\n}"},{"id":"2beb2b69-967b-41f2-adb4-b890e2764982","name":"Unprocessable content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John Lennon\",\r\n    \"phone\": \"0812345678900\",\r\n    \"provinceId\": 4,\r\n    \"cityId\": 25\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/shipping"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:36:00 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"address\": [\n            \"The address field is required.\"\n        ],\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"77389eee-dfa2-4879-bdbc-17d7e4aa96ec"},{"name":"Proccess the user's checkout (Get the courier services)","id":"cb5d8f34-e010-48a8-9926-982a2826f096","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"string\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 0,\r\n                    \"name\": \"string\",\r\n                    \"price\": \"string\",\r\n                    \"weight\": 0,\r\n                    \"cover\": \"string\",\r\n                    \"quantity\": 0\r\n                },\r\n                {\r\n                    \"id\": 0,\r\n                    \"name\": \"string\",\r\n                    \"price\": \"string\",\r\n                    \"weight\": 0,\r\n                    \"cover\": \"string\",\r\n                    \"quantity\": 0\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"string\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 0,\r\n                    \"name\": \"string\",\r\n                    \"price\": \"string\",\r\n                    \"weight\": 0,\r\n                    \"cover\": \"string\",\r\n                    \"quantity\": 0\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"https://laracommerce.test/api/checkout/get-courier-services","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","name":"checkout","type":"folder"}},"urlObject":{"path":["checkout","get-courier-services"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"7d495ea7-0f18-4cdf-bd53-4f289600d73e","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"jne\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 1\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/get-courier-services"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:39:57 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The costs of courier services has been added\",\n    \"data\": [\n        {\n            \"courier\": \"jne\",\n            \"cart\": [\n                {\n                    \"id\": 13,\n                    \"name\": \"Product 1\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"quantity\": 1\n                },\n                {\n                    \"id\": 15,\n                    \"name\": \"Product 2\",\n                    \"price\": \"Rp. 100.000\",\n                    \"weight\": 100,\n                    \"quantity\": 1\n                }\n            ],\n            \"courierServices\": [\n                {\n                    \"service\": \"CTC\",\n                    \"description\": \"JNE City Courier\",\n                    \"cost\": [\n                        {\n                            \"value\": \"Rp. 28.000\",\n                            \"etd\": \"3-5\",\n                            \"note\": \"\"\n                        }\n                    ]\n                }\n            ],\n            \"total\": {\n                \"totalPrice\": \"Rp. 200.000\",\n                \"totalWeight\": 200,\n                \"totalQuantity\": 2\n            }\n        },\n        {\n            \"courier\": \"tiki\",\n            \"cart\": [\n                {\n                    \"id\": 4,\n                    \"name\": \"Vel Mollitia\",\n                    \"price\": \"Rp. 200.000\",\n                    \"weight\": 7018,\n                    \"quantity\": 1\n                }\n            ],\n            \"courierServices\": [\n                {\n                    \"service\": \"REG\",\n                    \"description\": \"Regular Service\",\n                    \"cost\": [\n                        {\n                            \"value\": \"Rp. 658.000\",\n                            \"etd\": \"3\",\n                            \"note\": \"\"\n                        }\n                    ]\n                }\n            ],\n            \"total\": {\n                \"totalPrice\": \"Rp. 200.000\",\n                \"totalWeight\": 7018,\n                \"totalQuantity\": 1\n            }\n        }\n    ]\n}"},{"id":"d4b3bf30-ffb6-4434-97a1-50d0508c3983","name":"Unprocessable content (The product is invalid)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"jne\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 99\",\r\n                    \"price\": \"Rp. 123.000\",\r\n                    \"weight\": 123,\r\n                    \"cover\": null,\r\n                    \"quantity\": 99\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/get-courier-services"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:41:05 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"data.0.cart.0.name\": [\n            \"The selected data.0.cart.0.name is invalid.\"\n        ],\n        \"data.0.cart.0.price\": [\n            \"The selected data.0.cart.0.price is invalid.\"\n        ],\n        \"data.0.cart.0.weight\": [\n            \"The selected data.0.cart.0.weight is invalid.\"\n        ],\n        \"data.0.cart.0.quantity\": [\n            \"The Product 99 does not have enough stock.\"\n        ]\n    }\n}"},{"id":"d6cab10a-d716-404c-b10c-9e3ce69635e0","name":"Unprocessable content (The courier service is invalid)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"gosend\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 1\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/get-courier-services"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:43:28 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"data.0.courier\": [\n            \"The selected data.0.courier is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"cb5d8f34-e010-48a8-9926-982a2826f096"},{"name":"Validate the coupon code","id":"bd53c35e-620e-4b8a-8215-45132282ff1a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"coupon\": \"string\"\r\n}"},"url":"https://laracommerce.test/api/checkout/coupon/validate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","name":"checkout","type":"folder"}},"urlObject":{"path":["checkout","coupon","validate"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"b0b08ccf-e172-4d62-9e1b-0530869185e9","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"coupon\": \"coupon 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/coupon/validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:46:35 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The coupon has been added\",\n    \"data\": {\n        \"value\": 50000,\n        \"discounAmount\": \"Rp. 50.000\"\n    }\n}"},{"id":"eaf5bf3e-148e-4b3e-890b-66093f949121","name":"Unprocessable content","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"coupon\": \"coupon 999\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/coupon/validate"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 21:47:21 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 422,\n    \"message\": \"The given data was invalid\",\n    \"errors\": {\n        \"coupon\": [\n            \"The selected coupon is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"bd53c35e-620e-4b8a-8215-45132282ff1a"},{"name":"Submit the user's checkout (Go to payment)","id":"ad336a78-b819-4530-aa18-7f80f198d7a3","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"jne\",\r\n            \"courierService\": \"CTC\",\r\n            \"coupon\": \"\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 1\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"courierService\": \"REG\",\r\n            \"coupon\": \"\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"https://laracommerce.test/api/checkout/payment","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","name":"checkout","type":"folder"}},"urlObject":{"path":["checkout","payment"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"6252636c-7270-4aeb-87eb-824a76860b20","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"jne\",\r\n            \"courierService\": \"CTC\",\r\n            \"coupon\": \"coupon 2\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 1\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"courierService\": \"REG\",\r\n            \"coupon\": \"\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:20:00 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"The payment link successfully created\",\n    \"data\": {\n        \"paymentLink\": \"https://app.sandbox.midtrans.com/snap/v3/redirection/05fe76a6-2ad7-4022-9478-8b50e39c6e9d\"\n    }\n}"},{"id":"9c702008-3759-4034-a506-f5514865f8de","name":"Costs of courier services not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"courier\": \"jne\",\r\n            \"courierService\": \"ABC\",\r\n            \"coupon\": \"coupon 2\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 13,\r\n                    \"name\": \"Product 1\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                },\r\n                {\r\n                    \"id\": 15,\r\n                    \"name\": \"Product 2\",\r\n                    \"price\": \"Rp. 100.000\",\r\n                    \"weight\": 100,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"courier\": \"tiki\",\r\n            \"courierService\": \"BCA\",\r\n            \"coupon\": \"\",\r\n            \"cart\": [\r\n                {\r\n                    \"id\": 4,\r\n                    \"name\": \"Vel Mollitia\",\r\n                    \"price\": \"Rp. 200.000\",\r\n                    \"weight\": 7018,\r\n                    \"cover\": null,\r\n                    \"quantity\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://laracommerce.test/api/checkout/payment"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:23:15 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Cost of courier service not available\"\n}"}],"_postman_id":"ad336a78-b819-4530-aa18-7f80f198d7a3"}],"id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8","description":"<h2 id=\"this-section-contains-the-acitivity-of-customers-checkout-endpoints\"><strong>This section contains</strong> the acitivity of customer's checkout endpoints</h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"8aa6070a-f70f-46f0-b765-b7ac11359c83","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8ff87842-9767-46bc-9653-0325615f9194","type":"text/javascript","exec":[""]}}],"_postman_id":"9e336e6d-fa43-4343-b97d-c5b0dd2ec1d8"},{"name":"order","item":[{"name":"Show all orders","id":"d63578d8-9ae3-4030-9fe0-a0f8114f7237","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/orders","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f36c26a5-dd0b-471d-982f-23a51b34fed7","id":"f36c26a5-dd0b-471d-982f-23a51b34fed7","name":"order","type":"folder"}},"urlObject":{"path":["orders"],"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"724f9e0e-8c7c-4c91-9405-0557eae74343","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:54:05 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"invoiceNumber\": \"LARACOMMERCE-210223YbexXUjkigxA\",\n            \"totalPrice\": \"Rp. 1.086.000\",\n            \"coupons\": [\n                \"coupon 2\"\n            ],\n            \"courierServices\": [\n                \"jne CTC(JNE City Courier) 3-5 Hari Rp. 28.000\",\n                \"tiki REG(Regular Service) 3 Hari Rp. 658.000\"\n            ],\n            \"status\": \"FAILED\"\n        },\n        {\n            \"invoiceNumber\": \"LARACOMMERCE-2102236BuF9bz1KF4A\",\n            \"totalPrice\": \"Rp. 1.086.000\",\n            \"coupons\": [\n                \"coupon 2\"\n            ],\n            \"courierServices\": [\n                \"jne CTC(JNE City Courier) 3-5 Hari Rp. 28.000\",\n                \"tiki REG(Regular Service) 3 Hari Rp. 658.000\"\n            ],\n            \"status\": \"SUCCESS\"\n        }\n    ],\n    \"pages\": {\n        \"links\": {\n            \"first\": \"https://laracommerce.test/api/orders?page=1\",\n            \"last\": \"https://laracommerce.test/api/orders?page=1\",\n            \"prev\": null,\n            \"next\": null\n        },\n        \"meta\": {\n            \"current_page\": 1,\n            \"from\": 1,\n            \"last_page\": 1,\n            \"links\": [\n                {\n                    \"url\": null,\n                    \"label\": \"&laquo; Previous\",\n                    \"active\": false\n                },\n                {\n                    \"url\": \"https://laracommerce.test/api/orders?page=1\",\n                    \"label\": \"1\",\n                    \"active\": true\n                },\n                {\n                    \"url\": null,\n                    \"label\": \"Next &raquo;\",\n                    \"active\": false\n                }\n            ],\n            \"path\": \"https://laracommerce.test/api/orders\",\n            \"per_page\": 6,\n            \"to\": 2,\n            \"total\": 2\n        }\n    }\n}"}],"_postman_id":"d63578d8-9ae3-4030-9fe0-a0f8114f7237"},{"name":"Find an order by invoice number","id":"345822a0-5fa6-4c85-8568-32f1f457613c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/orders/:invoiceNumber","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"f36c26a5-dd0b-471d-982f-23a51b34fed7","id":"f36c26a5-dd0b-471d-982f-23a51b34fed7","name":"order","type":"folder"}},"urlObject":{"path":["orders",":invoiceNumber"],"host":["https://laracommerce.test/api"],"query":[],"variable":[{"description":{"content":"<p>(Required) Invoice number of order to return</p>\n","type":"text/plain"},"type":"any","value":"invoice number as slug","key":"invoiceNumber"}]}},"response":[{"id":"11ec9ce0-38a4-4688-8e6d-3991875ed0ed","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/orders/LARACOMMERCE-2102236BuF9bz1KF4A"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:56:28 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"invoiceNumber\": \"LARACOMMERCE-2102236BuF9bz1KF4A\",\n        \"totalPrice\": \"Rp. 1.086.000\",\n        \"coupons\": [\n            \"coupon 2\"\n        ],\n        \"courierServices\": [\n            \"jne CTC(JNE City Courier) 3-5 Hari Rp. 28.000\",\n            \"tiki REG(Regular Service) 3 Hari Rp. 658.000\"\n        ],\n        \"status\": \"SUCCESS\",\n        \"products\": [\n            {\n                \"name\": \"Product 1\",\n                \"description\": \"lorem ipsum\",\n                \"price\": \"Rp. 100.000\",\n                \"weight\": 100,\n                \"quantity\": 1\n            },\n            {\n                \"name\": \"Product 2\",\n                \"description\": \"lorem ipsum\",\n                \"price\": \"Rp. 100.000\",\n                \"weight\": 100,\n                \"quantity\": 1\n            },\n            {\n                \"name\": \"Vel Mollitia\",\n                \"description\": \"Amet ut doloremque dolor et ut explicabo. Minus dolores et fugiat minima non. Maiores sit cupiditate ipsum voluptas. Consequatur vel laboriosam ipsum fuga et sit accusantium.\\n\\nAut dolorum nihil culpa ipsum quia laudantium. Eveniet deserunt tenetur eligendi omnis id. Ratione aut aliquid sed deleniti rerum et animi. Illum vel consequatur et. Ut hic voluptatem nobis libero nam voluptatem excepturi.\\n\\nRem aut est sequi necessitatibus amet consequatur distinctio. Placeat nihil vel voluptates repudiandae voluptas qui. Nesciunt nihil molestiae voluptatem fugiat doloremque omnis qui dolor.\",\n                \"price\": \"Rp. 200.000\",\n                \"weight\": 7018,\n                \"quantity\": 1\n            }\n        ]\n    }\n}"},{"id":"107d9ebd-8af5-4f07-94a7-81b31c034681","name":"Order not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api/orders/LARACOMMERCE-xxxabc"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 20 Feb 2023 22:57:19 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"message\": \"Order. not found.\"\n}"}],"_postman_id":"345822a0-5fa6-4c85-8568-32f1f457613c"}],"id":"f36c26a5-dd0b-471d-982f-23a51b34fed7","description":"<h2 id=\"this-section-contains-about-the-resource-of-users-orders\"><strong>This section contains</strong> about the resource of user's orders</h2>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e6054c1c-e9fb-4ed8-9005-9f5ff4f54a72","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5a22aeaa-08e8-4dc6-9328-a2f1d6e46870","type":"text/javascript","exec":[""]}}],"_postman_id":"f36c26a5-dd0b-471d-982f-23a51b34fed7"},{"name":"Show the resource for landing page","id":"86485aac-89b3-4384-adc6-062692906663","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"2227be86-516b-4f1e-848b-d453486044b8","id":"2227be86-516b-4f1e-848b-d453486044b8","name":"customer","type":"folder"}},"urlObject":{"host":["https://laracommerce.test/api"],"query":[],"variable":[]}},"response":[{"id":"837e96cd-c468-4a67-909f-6181ab5380b5","name":"Successfull operation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://laracommerce.test/api"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.5"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.10"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 13 Feb 2023 22:13:16 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"categories\": [\n            {\n                \"id\": 3,\n                \"name\": \"Sneaker\",\n                \"slug\": \"sneaker\"\n            },\n            {\n                \"id\": 1,\n                \"name\": \"Gadget\",\n                \"slug\": \"gadget\"\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Furniture\",\n                \"slug\": \"furniture\"\n            }\n        ],\n        \"products\": {\n            \"data\": [\n                {\n                    \"id\": 3,\n                    \"name\": \"Dignissimos Sint\",\n                    \"slug\": \"dignissimos-sint\",\n                    \"description\": \"Nulla et odio commodi iste quidem aperiam atque. Ea iure ea aperiam voluptates quos mollitia illo. Vero vero cupiditate rerum tempore est voluptatem. Eligendi labore similique nisi iste mollitia ea.\\n\\nNon voluptatum voluptas dolore. Enim dolores quod aspernatur consequuntur dolorem nisi sunt.\\n\\nIllo ut laudantium rem enim excepturi et et. Quia et blanditiis dicta nobis repudiandae quidem consequatur. Praesentium iste necessitatibus facilis dolores consequatur maxime minima dicta.\",\n                    \"price\": \"Rp. 150.000\",\n                    \"weight\": 6133,\n                    \"stock\": 10,\n                    \"sold\": 6\n                },\n                {\n                    \"id\": 5,\n                    \"name\": \"Impedit Consequatur\",\n                    \"slug\": \"impedit-consequatur\",\n                    \"description\": \"Inventore quia quia aspernatur laborum omnis dignissimos. Iure rerum sint nihil beatae quia ut. Dolor assumenda saepe aut aut est qui dolore. Nesciunt est officia nihil amet perferendis aliquid non ea. Maxime numquam magnam necessitatibus voluptas similique tempore ipsa magni.\\n\\nRem voluptates modi rem placeat cumque asperiores veritatis ullam. Eveniet dignissimos accusamus animi maiores. Accusamus libero qui laborum dolores tempora cumque.\\n\\nTotam quod ut et debitis ipsum quasi. Ratione sint et est eum esse et. Tempore aut qui odio ut.\",\n                    \"price\": \"Rp. 312.626\",\n                    \"weight\": 7085,\n                    \"stock\": 10,\n                    \"sold\": 9\n                }\n            ],\n            \"pages\": {\n                \"links\": {\n                    \"first\": \"https://laracommerce.test/api?page=1\",\n                    \"last\": \"https://laracommerce.test/api?page=1\",\n                    \"prev\": null,\n                    \"next\": null\n                },\n                \"meta\": {\n                    \"current_page\": 1,\n                    \"from\": 1,\n                    \"last_page\": 1,\n                    \"links\": [\n                        {\n                            \"url\": null,\n                            \"label\": \"&laquo; Previous\",\n                            \"active\": false\n                        },\n                        {\n                            \"url\": \"https://laracommerce.test/api?page=1\",\n                            \"label\": \"1\",\n                            \"active\": true\n                        },\n                        {\n                            \"url\": null,\n                            \"label\": \"Next &raquo;\",\n                            \"active\": false\n                        }\n                    ],\n                    \"path\": \"https://laracommerce.test/api\",\n                    \"per_page\": 6,\n                    \"to\": 2,\n                    \"total\": 2\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"86485aac-89b3-4384-adc6-062692906663"}],"id":"2227be86-516b-4f1e-848b-d453486044b8","description":"<h2 id=\"this-section-contains-about-customer-activity\"><strong>This section contains about customer activity</strong></h2>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"75e01307-7cf3-4c18-9ec8-91a159e160e7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a3c3c5eb-e3bf-4f7f-b386-efff9e9b2fe1","type":"text/javascript","exec":[""]}}],"_postman_id":"2227be86-516b-4f1e-848b-d453486044b8"}],"event":[{"listen":"prerequest","script":{"id":"0181fc5a-ed8a-4338-9265-50a810cb78b5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ea62509a-e6f9-4035-9aef-0b5198e67dc0","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BearerToken","value":"theTokenWillBeAvailableAfterAccessingTheLoginEndpoint","type":"string"},{"key":"baseUrl","value":"https://laracommerce.test/api","type":"string"}]}