{"info":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","description":"<html><head></head><body><p>Vzy API (Backend)</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24154143","collectionId":"d170f094-c791-445f-adfe-0be7836efbe2","publishedId":"2sA2r55RxV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-14T22:04:30.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","event":[{"listen":"test","script":{"id":"64a944d8-6eb7-4e3c-8983-a4193a85790b","exec":["pm.test(\"Response status code is 400\", function () {","    pm.response.to.have.status(400);","});","","pm.test(\"Response Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Message field is an array and not empty\", function () {","    pm.expect(pm.response.json().message).to.be.an('array').and.to.have.lengthOf.at.least(1, \"Message field should not be empty\");","});","","pm.test(\"Error field must be a non-empty string\", function () {","    pm.expect(pm.response.json().error).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Error field should be a non-empty string\");","});","","pm.test(\"StatusCode should be a non-zero number\", function () {","    pm.expect(pm.response.json().statusCode).to.exist.and.to.be.a('number').and.to.not.equal(0);","});"],"type":"text/javascript"}}],"id":"88f7f3ff-0e5c-4186-ab71-2c2609a1ac71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"victor\",\n  \"email\": \"victor@mailinator.com\",\n  \"phoneNumber\": \"+2347088949042\",\n  \"password\": \"Password123!\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/auth/register","description":"<p>This endpoint allows users to register with the application. Upon a successful registration, the server responds with a status code of 201 and a JSON object containing the registered user's details.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>username</code> (string): The username of the user.</li>\n<li><code>email</code> (string): The email address of the user.</li>\n<li><code>phoneNumber</code> (string): The phone number of the user.</li>\n<li><code>password</code> (string): The password for the user account.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 201</li>\n<li>Content-Type: application/json</li>\n<li><code>statusCode</code> (number): Indicates the status of the response.</li>\n<li><code>data</code> (object): Contains the registered user's details including username, email, phone number, password, user ID, creation and update timestamps, and version.</li>\n<li><code>message</code> (string): Any additional message from the server.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}},"urlObject":{"path":["auth","register"],"host":["https://vzy-backend-8ycr.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d57e17a2-0562-4b1e-a196-bfce5185d5a4","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"victor\",\n  \"email\": \"victor@mailinator.com\",\n  \"phoneNumber\": \"+2347088949042\",\n  \"password\": \"Password123!\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"357"},{"key":"ETag","value":"W/\"165-jTDPOSACyhonh6srFxUEDcwe2oM\""},{"key":"Date","value":"Wed, 14 Feb 2024 17:55:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 201,\n    \"data\": {\n        \"username\": \"victor\",\n        \"email\": \"victor@mailinator.com\",\n        \"phoneNumber\": \"+2347088949042\",\n        \"password\": \"$2b$10$GhFSUsFlL361Xfa2LSqjG.HPgaTryWT7VNQPNPeB38SOfh2BXU2V2\",\n        \"payments\": [],\n        \"status\": \"not_paid\",\n        \"_id\": \"65ccfe7e6e3b754b11db68cf\",\n        \"createdAt\": \"2024-02-14T17:55:10.684Z\",\n        \"updatedAt\": \"2024-02-14T17:55:10.684Z\",\n        \"__v\": 0\n    },\n    \"message\": \"success\"\n}"}],"_postman_id":"88f7f3ff-0e5c-4186-ab71-2c2609a1ac71"},{"name":"Login","event":[{"listen":"test","script":{"id":"764e680c-1c91-48f8-9073-bdf734129b07","exec":["// Test to save the value of the \"token\" from the API JSON response to a collection variable named \"jwtToken\"","pm.test(\"Save the value of the 'token' to collection variable 'jwtToken'\", function () {","    const token = pm.response.json().data.token;","    pm.collectionVariables.set(\"jwtToken\", token);","});"],"type":"text/javascript"}}],"id":"e5342065-1cbd-459a-994c-ee4d0d4526a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"victor@mailinator.com\",\n  \"password\": \"Password123!\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/auth/login","description":"<p>This endpoint allows users to authenticate and log in. The HTTP POST request should be sent to https://vzy-backend-8ycr.onrender.com/api/v1/auth/login with a raw request body containing the user's email and password.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (text, required): The email of the user.</li>\n<li>password (text, required): The password of the user.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful authentication, the endpoint returns a status code of 200 and a JSON response with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"statusCode\": 0,\n    \"data\": {\n        \"user\": {\n            \"_id\": \"\",\n            \"username\": \"\",\n            \"email\": \"\",\n            \"phoneNumber\": \"\",\n            \"password\": \"\",\n            \"createdAt\": \"\",\n            \"updatedAt\": \"\",\n            \"__v\": 0\n        },\n        \"token\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li>statusCode: The status code of the response.</li>\n<li>data: An object containing user information and a token.<ul>\n<li>user: An object with user details such as _id, username, email, phoneNumber, password, createdAt, updatedAt, and __v.</li>\n<li>token: The authentication token for the user.</li>\n</ul>\n</li>\n<li>message: Any additional message related to the response.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["https://vzy-backend-8ycr.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"bbfc9605-8019-4dc7-b3b3-96c796ee6a72","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"victor@mailinator.com\",\n  \"password\": \"Password123!\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"891"},{"key":"ETag","value":"W/\"37b-i2kcWszxP9MLi0LcKxosNuIF3HM\""},{"key":"Date","value":"Wed, 14 Feb 2024 18:05:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": {\n        \"user\": {\n            \"_id\": \"65ccfe7e6e3b754b11db68cf\",\n            \"username\": \"victor\",\n            \"email\": \"victor@mailinator.com\",\n            \"phoneNumber\": \"+2347088949042\",\n            \"password\": \"$2b$10$GhFSUsFlL361Xfa2LSqjG.HPgaTryWT7VNQPNPeB38SOfh2BXU2V2\",\n            \"payments\": [],\n            \"status\": \"not_paid\",\n            \"createdAt\": \"2024-02-14T17:55:10.684Z\",\n            \"updatedAt\": \"2024-02-14T17:55:10.684Z\",\n            \"__v\": 0\n        },\n        \"token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NWNjZmU3ZTZlM2I3NTRiMTFkYjY4Y2YiLCJlbWFpbCI6InZpY3RvckBtYWlsaW5hdG9yLmNvbSIsImlhdCI6MTcwNzkzMzkzMiwiZXhwIjoxNzA3OTY5OTMyfQ.HJ-m4Mmg9cH2scXmWCktkU_NjuPlH97cohlIvla8GAPidzTEcOjiEZG0d87JsbpifBc6sn_0YfS7My_H1FVzSKRlxhAayyTYWytv56kxcdv1DA_ttt6RJzWdz5V9AdregpTIt5JMf3r0pAYNgPE9uTUcI49m6cWFzTJ5JHVmbEBGSRieofwDqWj7LjKFgttTwW_E09keYhUN9Gn5khg5FJBGFYdFOPZeS7-4haFNw6_L4RKGVrX1IE72ipPapwnE857A_e8Fw-jRHO9ZyhnleFpzwWQ0F4I7BGfE34ruJVgOH3yJJOqvIN7kZOntlP5mUk8TIsgBkdAQoCeXTzN6rw\"\n    },\n    \"message\": \"success\"\n}"}],"_postman_id":"e5342065-1cbd-459a-994c-ee4d0d4526a4"}],"id":"8da76246-5aa5-41bc-a595-c146de3fe145","_postman_id":"8da76246-5aa5-41bc-a595-c146de3fe145","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}}},{"name":"Profile","item":[{"name":"View Profile","id":"770300d8-b774-4ee4-9dce-3e7e9a0a2913","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://vzy-backend-8ycr.onrender.com/api/v1/user/","description":"<p>This endpoint makes an HTTP GET request to retrieve user information from the specified base URL. The response returns a status code of 200 along with a JSON object containing user data, including user ID, username, email, phone number, password, creation and update timestamps, and a version field. The message field is also included in the response.</p>\n<p>Add documentation.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}},"urlObject":{"path":["user",""],"host":["https://vzy-backend-8ycr.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"14617544-ae2d-4713-9a0b-3a5a2a0991a9","name":"View Profile","originalRequest":{"method":"GET","header":[],"url":"https://vzy-backend-8ycr.onrender.com/api/v1/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"546"},{"key":"ETag","value":"W/\"222-NKimcHBbcsuI0AdsgN5ECXv2w9M\""},{"key":"Date","value":"Wed, 14 Feb 2024 18:06:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": {\n        \"_id\": \"65ccfe7e6e3b754b11db68cf\",\n        \"username\": \"victor\",\n        \"email\": \"victor@mailinator.com\",\n        \"phoneNumber\": \"+2347088949042\",\n        \"payments\": [\n            {\n                \"user\": \"65ccfe7e6e3b754b11db68cf\",\n                \"stripeSessionId\": \"cs_test_a1rtlSPzjlmk33LtnHdYe6BsNrGJGtEfLNSxZlm2mYTMbqNTCvpcRF7doc\",\n                \"amount\": 800,\n                \"status\": \"succeeded\",\n                \"_id\": \"65cd012cf903491509612540\",\n                \"createdAt\": \"2024-02-14T18:06:36.320Z\",\n                \"updatedAt\": \"2024-02-14T18:06:36.320Z\",\n                \"__v\": 0\n            }\n        ],\n        \"status\": \"paid\",\n        \"createdAt\": \"2024-02-14T17:55:10.684Z\",\n        \"updatedAt\": \"2024-02-14T18:06:36.625Z\"\n    },\n    \"message\": \"success\"\n}"}],"_postman_id":"770300d8-b774-4ee4-9dce-3e7e9a0a2913"},{"name":"Update Profile","event":[{"listen":"test","script":{"id":"671d6115-1acf-4801-9d7a-69aa5d3682dd","exec":["","pm.test(\"Response status code is 200\", function () {","    pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Email is in a valid format\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData.data.email).to.be.a('string').and.to.match(/^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/);","});","",""],"type":"text/javascript"}}],"id":"85f13ffe-08ca-43fc-9059-02750efdd8c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"okoyevictor\"\n}","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/user/","description":"<p>This endpoint allows you to update user information using an HTTP PATCH request to https://vzy-backend-8ycr.onrender.com/api/v1/user/.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should include a raw JSON payload with the following parameters:</p>\n<ul>\n<li><code>username</code>: (string) The new username for the user.</li>\n<li><code>phoneNumber</code>: (string) The new phone number for the user.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the endpoint returns a status code of 200 and a JSON response with the updated user data, including the user's ID, username, email, phone number, password, payment information, status, and timestamps.</p>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"statusCode\": 0,\n    \"data\": {\n        \"_id\": \"\",\n        \"username\": \"\",\n        \"email\": \"\",\n        \"phoneNumber\": \"\",\n        \"password\": \"\",\n        \"payments\": [\n            {\n                \"user\": \"\",\n                \"stripeSessionId\": \"\",\n                \"amount\": 0,\n                \"status\": \"\",\n                \"_id\": \"\",\n                \"createdAt\": \"\",\n                \"updatedAt\": \"\",\n                \"__v\": 0\n            }\n        ],\n        \"status\": \"\",\n        \"createdAt\": \"\",\n        \"updatedAt\": \"\",\n        \"__v\": 0\n    },\n    \"message\": \"\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}},"urlObject":{"path":["user",""],"host":["https://vzy-backend-8ycr.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"dc9e5999-52d9-456e-9e33-e8c554841a15","name":"Update Profile","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"victorokoye\",\n  \"phoneNumber\": \"+2347088949041\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://vzy-backend-8ycr.onrender.com/api/v1/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"633"},{"key":"ETag","value":"W/\"279-Wm0UolgmWwdm+HGEMiMIvQJNOTo\""},{"key":"Date","value":"Wed, 14 Feb 2024 18:07:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": {\n        \"_id\": \"65ccfe7e6e3b754b11db68cf\",\n        \"username\": \"victorokoye\",\n        \"email\": \"victor@mailinator.com\",\n        \"phoneNumber\": \"+2347088949041\",\n        \"password\": \"$2b$10$GhFSUsFlL361Xfa2LSqjG.HPgaTryWT7VNQPNPeB38SOfh2BXU2V2\",\n        \"payments\": [\n            {\n                \"user\": \"65ccfe7e6e3b754b11db68cf\",\n                \"stripeSessionId\": \"cs_test_a1rtlSPzjlmk33LtnHdYe6BsNrGJGtEfLNSxZlm2mYTMbqNTCvpcRF7doc\",\n                \"amount\": 800,\n                \"status\": \"succeeded\",\n                \"_id\": \"65cd012cf903491509612540\",\n                \"createdAt\": \"2024-02-14T18:06:36.320Z\",\n                \"updatedAt\": \"2024-02-14T18:06:36.320Z\",\n                \"__v\": 0\n            }\n        ],\n        \"status\": \"paid\",\n        \"createdAt\": \"2024-02-14T17:55:10.684Z\",\n        \"updatedAt\": \"2024-02-14T18:07:25.842Z\",\n        \"__v\": 0\n    },\n    \"message\": \"success\"\n}"}],"_postman_id":"85f13ffe-08ca-43fc-9059-02750efdd8c4"}],"id":"1b2cecaf-a97f-4654-8b9d-f413be9d2f72","_postman_id":"1b2cecaf-a97f-4654-8b9d-f413be9d2f72","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}}},{"name":"Payments","item":[{"name":"Create Stripe Checkout Session","id":"11919201-b381-4adf-b29e-3dd530060e2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://vzy-backend-8ycr.onrender.com/api/v1/payment/create-checkout-session","description":"<p>This HTTP POST request is used to create a checkout session for payment. The response returns a status code of 201 and a JSON object with various attributes related to the checkout session. The attributes include details such as the session ID, amount, currency, customer details, payment status, and various configuration options for the checkout session.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"object\": \"\",\n    \"after_expiration\": null,\n    \"allow_promotion_codes\": null,\n    \"amount_subtotal\": 0,\n    \"amount_total\": 0,\n    \"automatic_tax\": {\n        \"enabled\": true,\n        \"liability\": null,\n        \"status\": null\n    },\n    \"billing_address_collection\": null,\n    \"cancel_url\": \"\",\n    \"client_reference_id\": null,\n    \"client_secret\": null,\n    ...\n    // Other attributes\n    ...\n    \"ui_mode\": \"\",\n    \"url\": \"\"\n}\n</code></pre>\n<p>This API request is used to initiate a checkout session and retrieve the details of the created session, including various configuration options and customer-related information.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}},"urlObject":{"path":["payment","create-checkout-session"],"host":["https://vzy-backend-8ycr.onrender.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9f2102f7-b4f6-4da4-b3d2-585ea1e0950c","name":"Create Stripe Checkout Session","originalRequest":{"method":"POST","header":[],"url":"https://vzy-backend-8ycr.onrender.com/api/v1/payment/create-checkout-session"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2135"},{"key":"ETag","value":"W/\"857-B98RQtbMLFn2dD+9T7tGk3lhnlg\""},{"key":"Date","value":"Tue, 13 Feb 2024 20:38:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cs_test_a1JeKAkaDdDKvooUyoI1NTm1Qoj6ym00Pl8kvsU6JV2WPQQEItdTuhrOsI\",\n    \"object\": \"checkout.session\",\n    \"after_expiration\": null,\n    \"allow_promotion_codes\": null,\n    \"amount_subtotal\": 800,\n    \"amount_total\": 800,\n    \"automatic_tax\": {\n        \"enabled\": false,\n        \"liability\": null,\n        \"status\": null\n    },\n    \"billing_address_collection\": null,\n    \"cancel_url\": \"https://example.com/cancel\",\n    \"client_reference_id\": null,\n    \"client_secret\": null,\n    \"consent\": null,\n    \"consent_collection\": null,\n    \"created\": 1707856718,\n    \"currency\": \"usd\",\n    \"currency_conversion\": null,\n    \"custom_fields\": [],\n    \"custom_text\": {\n        \"after_submit\": null,\n        \"shipping_address\": null,\n        \"submit\": null,\n        \"terms_of_service_acceptance\": null\n    },\n    \"customer\": null,\n    \"customer_creation\": \"if_required\",\n    \"customer_details\": {\n        \"address\": null,\n        \"email\": \"john52@example.com\",\n        \"name\": null,\n        \"phone\": null,\n        \"tax_exempt\": \"none\",\n        \"tax_ids\": null\n    },\n    \"customer_email\": \"john52@example.com\",\n    \"expires_at\": 1707943117,\n    \"invoice\": null,\n    \"invoice_creation\": {\n        \"enabled\": false,\n        \"invoice_data\": {\n            \"account_tax_ids\": null,\n            \"custom_fields\": null,\n            \"description\": null,\n            \"footer\": null,\n            \"issuer\": null,\n            \"metadata\": {},\n            \"rendering_options\": null\n        }\n    },\n    \"livemode\": false,\n    \"locale\": null,\n    \"metadata\": {},\n    \"mode\": \"payment\",\n    \"payment_intent\": null,\n    \"payment_link\": null,\n    \"payment_method_collection\": \"if_required\",\n    \"payment_method_configuration_details\": {\n        \"id\": \"pmc_1NXtzrLucIOsd6AQm68ZjTyZ\",\n        \"parent\": null\n    },\n    \"payment_method_options\": {},\n    \"payment_method_types\": [\n        \"card\",\n        \"link\"\n    ],\n    \"payment_status\": \"unpaid\",\n    \"phone_number_collection\": {\n        \"enabled\": false\n    },\n    \"recovered_from\": null,\n    \"setup_intent\": null,\n    \"shipping_address_collection\": null,\n    \"shipping_cost\": null,\n    \"shipping_details\": null,\n    \"shipping_options\": [],\n    \"status\": \"open\",\n    \"submit_type\": null,\n    \"subscription\": null,\n    \"success_url\": \"https://example.com/success\",\n    \"total_details\": {\n        \"amount_discount\": 0,\n        \"amount_shipping\": 0,\n        \"amount_tax\": 0\n    },\n    \"ui_mode\": \"hosted\",\n    \"url\": \"https://checkout.stripe.com/c/pay/cs_test_a1JeKAkaDdDKvooUyoI1NTm1Qoj6ym00Pl8kvsU6JV2WPQQEItdTuhrOsI#fidkdWxOYHwnPyd1blpxYHZxWjA0S0ZOPTJJcGZMSnZhM0RUfExpNlV8Tk5LdEpMX0hjT3c3TGNWTW1yfXczSj1dSXIzdk11TUd1aU9TQUNXf3M3VHVwMlV%2FclJ8bE1wMFBNZEdIcWJSN09cNTVPcmFPTDUyXCcpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl\"\n}"}],"_postman_id":"11919201-b381-4adf-b29e-3dd530060e2c"}],"id":"1ceb1834-0022-40bd-be28-69a62aadfe15","_postman_id":"1ceb1834-0022-40bd-be28-69a62aadfe15","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"d170f094-c791-445f-adfe-0be7836efbe2","id":"d170f094-c791-445f-adfe-0be7836efbe2","name":"Vzy Backend","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"9e86bc47-c98e-4122-ba3e-9e6da8fbdbf2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"829f76d6-6b77-4875-804e-eb85a65e2186","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseurl","value":"https://vzy-backend-8ycr.onrender.com/api/v1"},{"key":"jwtToken","value":""}]}