{"info":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","description":"<html><head></head><body><p>La <strong>API BoxPremier</strong> gestiona la lógica principal del sistema, incluyendo autenticación de usuarios, suscripciones, planes, pagos y pedidos.</p>\n<p>Esta documentación proporciona ejemplos de solicitudes y respuestas para cada endpoint, organizados por módulos.</p>\n<h4 id=\"estructura-principal\">Estructura principal</h4>\n<ul>\n<li><p><strong>Auth:</strong> Registro, login y gestión de sesión</p>\n</li>\n<li><p><strong>Users:</strong> CRUD de usuarios (admin y clientes)</p>\n</li>\n<li><p><strong>Plans:</strong> Planes de suscripción disponibles</p>\n</li>\n<li><p><strong>Subscriptions:</strong> Gestión de suscripciones activas</p>\n</li>\n<li><p><strong>Orders:</strong> Pedidos generados por las cajas mensuales</p>\n</li>\n<li><p><strong>Payments:</strong> Pagos asociados a las suscripciones</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"46421388","collectionId":"d377d469-899c-4eb3-a638-7ae301d22371","publishedId":"2sB3WttK9M","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-11T17:33:13.000Z"},"item":[{"name":"Auth","item":[{"name":"Success","item":[{"name":"Register customer 201 OK","id":"4becfc56-c3e0-4383-b37c-d5665dd7df08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Mariana\",\r\n  \"lastName\": \"García\",\r\n  \"email\": \"mariana@email.com\",\r\n  \"password\": \"123456\",\r\n  \"phone\": \"222444666\",\r\n  \"street\": \"Calle Luna\",\r\n  \"number\": \"45\",\r\n  \"floor\": \"\",\r\n  \"postalCode\": \"28000\",\r\n  \"city\": \"Madrid\",\r\n  \"province\": \"Madrid\",\r\n  \"country\": \"España\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register","urlObject":{"protocol":"http","port":"8000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0393a47a-dcc2-4e8e-9f77-372013e89f26","name":"http://localhost:8000/api/auth/register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Mariana\",\r\n  \"lastName\": \"García\",\r\n  \"email\": \"mariana@email.com\",\r\n  \"password\": \"123456\",\r\n  \"phone\": \"222444666\",\r\n  \"street\": \"Calle Luna\",\r\n  \"number\": \"45\",\r\n  \"floor\": \"\",\r\n  \"postalCode\": \"28000\",\r\n  \"city\": \"Madrid\",\r\n  \"province\": \"Madrid\",\r\n  \"country\": \"España\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"711"},{"key":"ETag","value":"W/\"2c7-GkVJhMX+U7YkQML78AFgIgavYhI\""},{"key":"Date","value":"Tue, 11 Nov 2025 17:34:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User created successfully\",\n    \"data\": {\n        \"user\": {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"691373a6d280c2ed1740c0c6\",\n            \"userType\": \"customer\",\n            \"email\": \"mariana@email.com\",\n            \"firstName\": \"Mariana\",\n            \"lastName\": \"García\",\n            \"phone\": \"222444666\",\n            \"street\": \"Calle Luna\",\n            \"number\": \"45\",\n            \"floor\": \"\",\n            \"postalCode\": \"28000\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"España\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-11T17:34:30.736Z\",\n            \"updatedAt\": \"2025-11-11T17:34:30.736Z\",\n            \"__v\": 0\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5MTM3M2E2ZDI4MGMyZWQxNzQwYzBjNiIsInVzZXJUeXBlIjoiY3VzdG9tZXIiLCJpYXQiOjE3NjI4ODI0NzAsImV4cCI6MTc2MzQ4NzI3MH0.lNYbdsxYH7s8_3xhl3TO6RgiqsHx0CuRVYusT5oILSE\"\n    }\n}"}],"_postman_id":"4becfc56-c3e0-4383-b37c-d5665dd7df08"},{"name":"Login customer 200 OK","id":"61d34f4c-3f48-4db6-8a0d-025cd3ebcabe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"jose@email.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login","urlObject":{"protocol":"http","port":"8000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d0114e77-9674-4595-b5ca-88d5ac478165","name":"http://localhost:8000/api/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"jose@email.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"701"},{"key":"ETag","value":"W/\"2bd-E5SaIIYaISa/hlpb9fIVPak7ovY\""},{"key":"Date","value":"Sat, 01 Nov 2025 12:57:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Login successful\",\n    \"data\": {\n        \"user\": {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"69060376ab14adbd098bc1a1\",\n            \"userType\": \"customer\",\n            \"email\": \"jose@email.com\",\n            \"firstName\": \"Jose\",\n            \"lastName\": \"García\",\n            \"phone\": \"222444666\",\n            \"street\": \"Calle Mayor\",\n            \"number\": \"45\",\n            \"floor\": \"3º B\",\n            \"postalCode\": \"28013\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"España\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-01T12:56:22.256Z\",\n            \"updatedAt\": \"2025-11-01T12:56:22.256Z\",\n            \"__v\": 0\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5MDYwMzc2YWIxNGFkYmQwOThiYzFhMSIsInVzZXJUeXBlIjoiY3VzdG9tZXIiLCJpYXQiOjE3NjIwMDE4NjUsImV4cCI6MTc2MjYwNjY2NX0.cQUIvPduUVHxkTmSQfqx4O7aN0JDOvsPtWfFdBdNbeA\"\n    }\n}"}],"_postman_id":"61d34f4c-3f48-4db6-8a0d-025cd3ebcabe"},{"name":"Login admin 200 OK","id":"4c1b2d12-713f-4f97-92e5-ce86794bb26e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ingrid@email.com\",\r\n    \"password\": \"feliz123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login","urlObject":{"protocol":"http","port":"8000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"93f299bc-20f6-4b27-b345-75498d8959db","name":"http://localhost:8000/api/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ingrid@email.com\",\r\n    \"password\": \"feliz123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"548"},{"key":"ETag","value":"W/\"224-g4tVk+I3fP6cmSdSEBjy/pb4zmc\""},{"key":"Date","value":"Tue, 11 Nov 2025 17:45:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Login successful\",\n    \"data\": {\n        \"user\": {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"691241c4dabc5a83ccf3f095\",\n            \"userType\": \"admin\",\n            \"email\": \"ingrid@email.com\",\n            \"firstName\": \"Ingrid\",\n            \"lastName\": \"Daihana\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T19:49:24.961Z\",\n            \"updatedAt\": \"2025-11-10T19:49:24.961Z\",\n            \"__v\": 0\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5MTI0MWM0ZGFiYzVhODNjY2YzZjA5NSIsInVzZXJUeXBlIjoiYWRtaW4iLCJpYXQiOjE3NjI4ODMxMTYsImV4cCI6MTc2MzQ4NzkxNn0.tFjeap0GfCZNDa2VWVnUYPKQFZvOgsqdexOQnHqV9VU\"\n    }\n}"}],"_postman_id":"4c1b2d12-713f-4f97-92e5-ce86794bb26e"}],"id":"018e3826-e13b-4089-8e5e-b821bc28ecf9","_postman_id":"018e3826-e13b-4089-8e5e-b821bc28ecf9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Error","item":[{"name":"Register 400 bad request","id":"47399abf-ef0c-44eb-bddc-ce47a7d2c7f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Mariana\",\r\n  \"lastName\": \"García\",\r\n  \"email\": \"mariana@email.com\",\r\n  \"password\": \"123456\",\r\n  \"phone\": \"222444666\",\r\n  \"street\": \"Calle Luna\",\r\n  \"number\": \"45\",\r\n  \"floor\": \"\",\r\n  \"postalCode\": \"28000\",\r\n  \"city\": \"Madrid\",\r\n  \"province\": \"Madrid\",\r\n  \"country\": \"España\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register","urlObject":{"protocol":"http","port":"8000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8d353cf1-df89-43f0-b33b-0b9204a24e30","name":"http://localhost:8000/api/auth/register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Mariana\",\r\n  \"lastName\": \"García\",\r\n  \"email\": \"mariana@email.com\",\r\n  \"password\": \"123456\",\r\n  \"phone\": \"222444666\",\r\n  \"street\": \"Calle Luna\",\r\n  \"number\": \"45\",\r\n  \"floor\": \"\",\r\n  \"postalCode\": \"28000\",\r\n  \"city\": \"Madrid\",\r\n  \"province\": \"Madrid\",\r\n  \"country\": \"España\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-V0HjoCsqFVp9mO3eXsuJ602s64g\""},{"key":"Date","value":"Tue, 11 Nov 2025 17:46:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Email already exists\"\n}"}],"_postman_id":"47399abf-ef0c-44eb-bddc-ce47a7d2c7f1"},{"name":"Login 402 Unauthorized","id":"1b91b950-5bde-4832-afd6-8e3c0d09e53c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"jose@email.com\",\r\n    \"password\": \"1234567\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login","urlObject":{"protocol":"http","port":"8000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c392b72e-6dd2-466f-b5a6-871768ccf429","name":"http://localhost:8000/api/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"jose@email.com\",\r\n    \"password\": \"1234567\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-VnfdTDnPFEJbhu+GU8TL46V/jKo\""},{"key":"Date","value":"Sat, 01 Nov 2025 12:59:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"Invalid credentials\"\n}"}],"_postman_id":"1b91b950-5bde-4832-afd6-8e3c0d09e53c"}],"id":"d964ab6c-2764-484e-a4db-5f9c8fcc55d0","_postman_id":"d964ab6c-2764-484e-a4db-5f9c8fcc55d0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"d5251fa7-a11b-43c5-adb5-333d4ed3c250","_postman_id":"d5251fa7-a11b-43c5-adb5-333d4ed3c250","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Users","item":[{"name":"Success","item":[{"name":"admin","item":[{"name":"create user 200 OK","id":"4c24ca60-404c-472a-b342-0c9f156b8e6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userType\": \"admin\",\r\n  \"firstName\": \"Ingrid\",\r\n  \"lastName\": \"Daihana\",\r\n  \"email\": \"ingrid@email.com\",\r\n  \"password\": \"feliz123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users","urlObject":{"protocol":"http","port":"8000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"aa8833f1-a665-4fce-a997-870a8d05e2ae","name":"http://localhost:8000/api/users","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userType\": \"admin\",\r\n  \"firstName\": \"Ingrid\",\r\n  \"lastName\": \"Daihana\",\r\n  \"email\": \"ingrid@email.com\",\r\n  \"password\": \"feliz123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"342"},{"key":"ETag","value":"W/\"156-vzmJByEFyqqs7sGfMxghHC7omZM\""},{"key":"Date","value":"Mon, 03 Nov 2025 08:52:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User created successfully\",\n    \"data\": {\n        \"preferences\": {\n            \"emailNotifications\": true\n        },\n        \"_id\": \"69086d3640f9a0a534d0488c\",\n        \"userType\": \"admin\",\n        \"email\": \"ingrid@email.com\",\n        \"firstName\": \"Ingrid\",\n        \"lastName\": \"Daihana\",\n        \"status\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-03T08:52:06.273Z\",\n        \"updatedAt\": \"2025-11-03T08:52:06.273Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"4c24ca60-404c-472a-b342-0c9f156b8e6d"},{"name":"get all users 200 OK","id":"da379954-afab-4748-8971-78d38a9a5b43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users","urlObject":{"protocol":"http","port":"8000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1bc7a568-af13-4680-aa66-fd2eeb5ae58a","name":"http://localhost:8000/api/users","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2509"},{"key":"ETag","value":"W/\"9cd-nuTmEu8JmFQmIyq31PlUeYyEwtY\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:15:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"data\": [\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"deleteAt\": null,\n            \"_id\": \"68fb488e4c957c547d1d9199\",\n            \"userType\": \"admin\",\n            \"firstName\": \"Cazuza\",\n            \"lastName\": \"Silva\",\n            \"status\": true,\n            \"createdAt\": \"2025-10-24T09:36:14.386Z\",\n            \"updatedAt\": \"2025-10-25T15:42:44.501Z\",\n            \"__v\": 0\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"68fb488e4c957c547d1d919c\",\n            \"userType\": \"customer\",\n            \"firstName\": \"Maria\",\n            \"lastName\": \"Santos\",\n            \"phone\": \"123456789\",\n            \"street\": \"Calle Mayor\",\n            \"number\": \"123\",\n            \"floor\": \"2A\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": true,\n            \"createdAt\": \"2025-10-24T09:36:14.694Z\",\n            \"updatedAt\": \"2025-10-25T11:41:18.520Z\",\n            \"__v\": 0,\n            \"deleteAt\": null\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"68ff4884992282e4623a7102\",\n            \"userType\": \"customer\",\n            \"firstName\": \"Maria\",\n            \"lastName\": \"Silva\",\n            \"phone\": \"123456789\",\n            \"street\": \"Rua Principal\",\n            \"number\": \"123\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-27T10:25:08.644Z\",\n            \"updatedAt\": \"2025-10-27T10:25:08.644Z\",\n            \"__v\": 0\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"6900956a8cb5b52a5d512c22\",\n            \"userType\": \"customer\",\n            \"firstName\": \"Ingrid\",\n            \"lastName\": \"Guevara\",\n            \"phone\": \"123456789\",\n            \"street\": \"Rua Principal\",\n            \"number\": \"123\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-28T10:05:30.925Z\",\n            \"updatedAt\": \"2025-10-28T10:05:30.925Z\",\n            \"__v\": 0\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"6900cbe087d17d130d9a8658\",\n            \"userType\": \"admin\",\n            \"firstName\": \"Ingrid\",\n            \"lastName\": \"Pereira\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-28T13:57:52.490Z\",\n            \"updatedAt\": \"2025-10-28T14:42:09.627Z\",\n            \"__v\": 0\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"69010c6032f1cf9eecf3c961\",\n            \"userType\": \"customer\",\n            \"firstName\": \"Josefa\",\n            \"lastName\": \"Silva\",\n            \"phone\": \"123456789\",\n            \"street\": \"Rua Principal\",\n            \"number\": \"123\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-28T18:33:05.012Z\",\n            \"updatedAt\": \"2025-10-28T18:33:05.012Z\",\n            \"__v\": 0\n        },\n        {\n            \"preferences\": {\n                \"emailNotifications\": true\n            },\n            \"_id\": \"690509b108cda06de6d5079c\",\n            \"userType\": \"customer\",\n            \"firstName\": \"Carlos\",\n            \"lastName\": \"García\",\n            \"phone\": \"612345678\",\n            \"street\": \"Calle Mayor\",\n            \"number\": \"45\",\n            \"floor\": \"3º B\",\n            \"postalCode\": \"28013\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"España\",\n            \"status\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-31T19:10:41.765Z\",\n            \"updatedAt\": \"2025-10-31T19:10:41.765Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"da379954-afab-4748-8971-78d38a9a5b43"},{"name":"get by id 200 OK","id":"0e012944-834b-4b06-ab5f-1162dc5658d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6","urlObject":{"protocol":"http","port":"8000","path":["api","users","691373a6d280c2ed1740c0c6"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0e2b2e4b-487f-4a25-94f3-98996d96a865","name":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"452"},{"key":"ETag","value":"W/\"1c4-W1x19PfLCOGA9xkCOReafhz7+e4\""},{"key":"Date","value":"Tue, 11 Nov 2025 17:59:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"data\": {\n        \"preferences\": {\n            \"emailNotifications\": true\n        },\n        \"_id\": \"691373a6d280c2ed1740c0c6\",\n        \"userType\": \"customer\",\n        \"email\": \"mariana@email.com\",\n        \"firstName\": \"Mariana\",\n        \"lastName\": \"García\",\n        \"phone\": \"222444666\",\n        \"street\": \"Calle Luna\",\n        \"number\": \"45\",\n        \"floor\": \"\",\n        \"postalCode\": \"28000\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-11T17:34:30.736Z\",\n        \"updatedAt\": \"2025-11-11T17:34:30.736Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"0e012944-834b-4b06-ab5f-1162dc5658d8"},{"name":"update user 200 OK","id":"c1291779-aa68-4717-9303-d1cbc306ff97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"lastName\": \"Gabriela\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6","urlObject":{"protocol":"http","port":"8000","path":["api","users","691373a6d280c2ed1740c0c6"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"97820a19-8ba1-45f8-8ead-5a7d0133f2e3","name":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"lastName\": \"Gabriela\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"ETag","value":"W/\"8b-tg/Bg3BD8i0SzbV1XlQ/rg203hY\""},{"key":"Date","value":"Tue, 11 Nov 2025 18:58:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"User updated successfully\",\n    \"data\": {\n        \"_id\": \"691373a6d280c2ed1740c0c6\",\n        \"firstName\": \"Mariana\",\n        \"lastName\": \"Gabriela\"\n    }\n}"}],"_postman_id":"c1291779-aa68-4717-9303-d1cbc306ff97"},{"name":"delete user 200 OK","id":"3c37aea1-ca55-4a9e-929c-0ae90afd499a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/users/68ff4884992282e4623a7102","urlObject":{"protocol":"http","port":"8000","path":["api","users","68ff4884992282e4623a7102"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fad2576a-07a5-425e-9b6f-902228467464","name":"http://localhost:8000/api/users/68ff4884992282e4623a7102","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/users/68ff4884992282e4623a7102"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-kvcK6kOkCnATi8WZbCM+lbyP3zo\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:23:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"User deleted successfully\"\n}"}],"_postman_id":"3c37aea1-ca55-4a9e-929c-0ae90afd499a"},{"name":"update payment method 200 OK","id":"903be5f1-0b21-40e7-a507-f44a2f63cd7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"card\",\r\n  \"lastFourDigits\": \"1234\",\r\n  \"cardHolderName\": \"Mariana García\",\r\n  \"expirationDate\": \"12/2027\",\r\n  \"paymentToken\": \"tok_visa_1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6/payment-method","urlObject":{"protocol":"http","port":"8000","path":["api","users","691373a6d280c2ed1740c0c6","payment-method"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d69a43e0-a2d9-4f80-84dd-cbb0bd7b37f8","name":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6/payment-method","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"card\",\r\n  \"lastFourDigits\": \"1234\",\r\n  \"cardHolderName\": \"Mariana García\",\r\n  \"expirationDate\": \"12/2027\",\r\n  \"paymentToken\": \"tok_visa_1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/691373a6d280c2ed1740c0c6/payment-method"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"650"},{"key":"ETag","value":"W/\"28a-cfgRaf6xsTwjDpLbUx6tmvwVnQc\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:00:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payment method updated successfully\",\n    \"data\": {\n        \"preferences\": {\n            \"emailNotifications\": true\n        },\n        \"paymentMethod\": {\n            \"type\": \"card\",\n            \"lastFourDigits\": \"1234\",\n            \"cardHolderName\": \"Mariana García\",\n            \"expirationDate\": \"12/2027\",\n            \"paymentToken\": \"tok_visa_1234\"\n        },\n        \"_id\": \"691373a6d280c2ed1740c0c6\",\n        \"userType\": \"customer\",\n        \"email\": \"mariana@email.com\",\n        \"firstName\": \"Mariana\",\n        \"lastName\": \"Gabriela\",\n        \"phone\": \"222444666\",\n        \"street\": \"Calle Luna\",\n        \"number\": \"45\",\n        \"floor\": \"\",\n        \"postalCode\": \"28000\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-11T17:34:30.736Z\",\n        \"updatedAt\": \"2025-11-11T19:00:28.535Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"903be5f1-0b21-40e7-a507-f44a2f63cd7e"}],"id":"b19b6fb2-f035-4d6d-a24b-1992ecff1f6a","_postman_id":"b19b6fb2-f035-4d6d-a24b-1992ecff1f6a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[{"name":"get by id 200 OK","id":"34140c8a-0cbf-4651-9fca-a31f31ccc7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/users/690509b108cda06de6d5079c","urlObject":{"protocol":"http","port":"8000","path":["api","users","690509b108cda06de6d5079c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"03539e3e-3f62-4558-b5f5-6aad01248b9a","name":"http://localhost:8000/api/users/690509b108cda06de6d5079c","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/users/690509b108cda06de6d5079c"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"456"},{"key":"ETag","value":"W/\"1c8-0L78tzvB5HBd1Pizp5F72eVdd50\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:30:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"data\": {\n        \"preferences\": {\n            \"emailNotifications\": true\n        },\n        \"_id\": \"690509b108cda06de6d5079c\",\n        \"userType\": \"customer\",\n        \"email\": \"carlos@email.com\",\n        \"firstName\": \"Carlos\",\n        \"lastName\": \"García\",\n        \"phone\": \"612345678\",\n        \"street\": \"Calle Mayor\",\n        \"number\": \"45\",\n        \"floor\": \"3º B\",\n        \"postalCode\": \"28013\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-10-31T19:10:41.765Z\",\n        \"updatedAt\": \"2025-10-31T19:10:41.765Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"34140c8a-0cbf-4651-9fca-a31f31ccc7e3"},{"name":"update user 200 OK","id":"eab09651-954d-446e-ba2d-9b68fc4d2bf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Carlos Eduardo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/690509b108cda06de6d5079c","urlObject":{"protocol":"http","port":"8000","path":["api","users","690509b108cda06de6d5079c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f4231350-c108-4bff-b798-4b6aad0de997","name":"http://localhost:8000/api/users/690509b108cda06de6d5079c","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Carlos Eduardo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/690509b108cda06de6d5079c"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"145"},{"key":"ETag","value":"W/\"91-5p4EADB1KWbu2fKRoIiRe0M8oe8\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:33:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"User updated successfully\",\n    \"data\": {\n        \"_id\": \"690509b108cda06de6d5079c\",\n        \"firstName\": \"Carlos Eduardo\",\n        \"lastName\": \"García\"\n    }\n}"}],"_postman_id":"eab09651-954d-446e-ba2d-9b68fc4d2bf2"},{"name":"patch update method 200 OK","id":"f45e58ff-298a-4084-aaa3-0b1edf30b7a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"card\",\r\n  \"lastFourDigits\": \"1234\",\r\n  \"cardHolderName\": \"Mariana Gabriela\",\r\n  \"expirationDate\": \"12/2027\",\r\n  \"paymentToken\": \"tok_visa_1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/me/payment-method","urlObject":{"protocol":"http","port":"8000","path":["api","users","me","payment-method"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3591ed16-a37e-4377-9330-d53c56c4bf51","name":"http://localhost:8000/api/users/me/payment-method","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"card\",\r\n  \"lastFourDigits\": \"1234\",\r\n  \"cardHolderName\": \"Mariana Gabriela\",\r\n  \"expirationDate\": \"12/2027\",\r\n  \"paymentToken\": \"tok_visa_1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/me/payment-method"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"651"},{"key":"ETag","value":"W/\"28b-4NEFjahMlDn0YEu6WCo03ebI5DU\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:22:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payment method updated successfully\",\n    \"data\": {\n        \"preferences\": {\n            \"emailNotifications\": true\n        },\n        \"paymentMethod\": {\n            \"type\": \"card\",\n            \"lastFourDigits\": \"1234\",\n            \"cardHolderName\": \"Mariana Gabriela\",\n            \"expirationDate\": \"12/2027\",\n            \"paymentToken\": \"tok_visa_1234\"\n        },\n        \"_id\": \"691373a6d280c2ed1740c0c6\",\n        \"userType\": \"customer\",\n        \"email\": \"mariana@email.com\",\n        \"firstName\": \"Mariana\",\n        \"lastName\": \"Gabriela\",\n        \"phone\": \"222444666\",\n        \"street\": \"Calle Luna\",\n        \"number\": \"45\",\n        \"floor\": \"\",\n        \"postalCode\": \"28000\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-11T17:34:30.736Z\",\n        \"updatedAt\": \"2025-11-11T19:22:58.958Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f45e58ff-298a-4084-aaa3-0b1edf30b7a8"}],"id":"0a47675e-3046-4131-ae43-98d30953d3c9","_postman_id":"0a47675e-3046-4131-ae43-98d30953d3c9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"20b0a4f7-9bad-4e77-889d-7df888be4c80","_postman_id":"20b0a4f7-9bad-4e77-889d-7df888be4c80","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Error","item":[{"name":"customer","item":[{"name":"get all users 403 Forbidden","id":"32487c3d-e859-4c7d-adcb-c5a35917e09a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/users","urlObject":{"protocol":"http","port":"8000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"28186ecb-d657-4176-9a33-f8aea611d58e","name":"http://localhost:8000/api/users","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/users"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-pFDfpqlD/tQMw8xv7dfz4Chu2sQ\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:28:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"NOT_PERMISSIONS\"\n}"}],"_postman_id":"32487c3d-e859-4c7d-adcb-c5a35917e09a"},{"name":"delete user 403 Forbidden","id":"3658afa7-ffc2-4897-9921-8573ba6c4a83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22","urlObject":{"protocol":"http","port":"8000","path":["api","users","6900956a8cb5b52a5d512c22"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"46984de4-95dc-46f7-8382-e983fb12cd78","name":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-pFDfpqlD/tQMw8xv7dfz4Chu2sQ\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:34:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"NOT_PERMISSIONS\"\n}"}],"_postman_id":"3658afa7-ffc2-4897-9921-8573ba6c4a83"},{"name":"update user 403 Forbidden","id":"b5640717-4c7a-41a9-87b8-04049f7ed024","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Rosa\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22","urlObject":{"protocol":"http","port":"8000","path":["api","users","6900956a8cb5b52a5d512c22"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"75ad2b01-a745-41d9-ab27-142f8a142f95","name":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Rosa\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/users/6900956a8cb5b52a5d512c22"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-TJ0anmqIusz9a1PwlRutenusjhM\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:36:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"You can only update your own profile\"\n}"}],"_postman_id":"b5640717-4c7a-41a9-87b8-04049f7ed024"}],"id":"fcb5de19-8e83-4c75-bfe4-28871edf43c5","_postman_id":"fcb5de19-8e83-4c75-bfe4-28871edf43c5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"df711f46-000f-494c-8f4a-c51b2fc3f1fa","_postman_id":"df711f46-000f-494c-8f4a-c51b2fc3f1fa","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"319b3156-1a92-40e7-b7c3-7e890989633d","_postman_id":"319b3156-1a92-40e7-b7c3-7e890989633d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Plans","item":[{"name":"Success","item":[{"name":"admin","item":[{"name":"get all plans 200 OK","id":"5610428e-bab0-4ef2-ba86-f212571eece1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/plans","urlObject":{"protocol":"http","port":"8000","path":["api","plans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"454986f7-c4ef-4fd7-86d8-370625a9167b","name":"http://localhost:8000/api/plans","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/plans"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"841"},{"key":"ETag","value":"W/\"349-zTuIDDcQX5H2Wy3rzkLqE5gdjas\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:26:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plans retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"691320b559bdb443dfcc6799\",\n            \"boxType\": \"Caja\",\n            \"boxSize\": 22,\n            \"price\": 22,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-11T11:40:37.132Z\",\n            \"updatedAt\": \"2025-11-11T11:40:37.132Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69124365dabc5a83ccf3f0d9\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 4,\n            \"price\": 29.99,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T19:56:21.745Z\",\n            \"updatedAt\": \"2025-11-11T10:25:18.874Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69125927f18d5d0478322033\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 9,\n            \"price\": 30,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T21:29:11.870Z\",\n            \"updatedAt\": \"2025-11-10T21:29:11.870Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69124371dabc5a83ccf3f0dd\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 3,\n            \"price\": 59.99,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T19:56:33.044Z\",\n            \"updatedAt\": \"2025-11-10T19:56:33.044Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"5610428e-bab0-4ef2-ba86-f212571eece1"},{"name":"get by id 200 OK","id":"e774147e-3e3f-4792-8ab4-66287518be6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/plans/69125927f18d5d0478322033","urlObject":{"protocol":"http","port":"8000","path":["api","plans","69125927f18d5d0478322033"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"87920760-521e-48eb-9997-09b90749884d","name":"http://localhost:8000/api/plans/69125927f18d5d0478322033","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/plans/69125927f18d5d0478322033"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"254"},{"key":"ETag","value":"W/\"fe-k3lQJdMVOoC6HW/Oj+MX54WfUdM\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:27:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plan retrieved successfully\",\n    \"data\": {\n        \"_id\": \"69125927f18d5d0478322033\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 9,\n        \"price\": 30,\n        \"active\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-10T21:29:11.870Z\",\n        \"updatedAt\": \"2025-11-10T21:29:11.870Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e774147e-3e3f-4792-8ab4-66287518be6b"},{"name":"create plan 201 Created","id":"fadcb7a6-3319-4122-86c5-0f3e04028c88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"boxType\": \"basic\",\r\n  \"boxSize\": 3,\r\n  \"price\": 29.99,\r\n  \"active\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans","urlObject":{"protocol":"http","port":"8000","path":["api","plans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d8887484-7e90-4ce6-8444-4046669772a4","name":"http://localhost:8000/api/plans","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"boxType\": \"basic\",\r\n  \"boxSize\": 3,\r\n  \"price\": 29.99,\r\n  \"active\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"256"},{"key":"ETag","value":"W/\"100-Zb0Nci/Gv2fcGYEQscsnaucps88\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:44:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Plan created successfully\",\n    \"data\": {\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"price\": 29.99,\n        \"active\": true,\n        \"deleteAt\": null,\n        \"_id\": \"69051fb108cda06de6d507c7\",\n        \"createdAt\": \"2025-10-31T20:44:33.407Z\",\n        \"updatedAt\": \"2025-10-31T20:44:33.407Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"fadcb7a6-3319-4122-86c5-0f3e04028c88"},{"name":"update plan 200 OK","id":"e01decf2-5a96-4587-9883-0eb47bad30e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"boxSize\": 3,\r\n    \"price\": 15.45\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598","urlObject":{"protocol":"http","port":"8000","path":["api","plans","68ffa86573b7aa756b28e598"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c0473731-22a0-494e-9266-0597e7e8624a","name":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"boxSize\": 3,\r\n    \"price\": 15.45\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"255"},{"key":"ETag","value":"W/\"ff-K6UOfLo+fXTjptJBwuCVKs7AhBA\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:50:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plan updated successfully\",\n    \"data\": {\n        \"_id\": \"68ffa86573b7aa756b28e598\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"price\": 15.45,\n        \"active\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-10-27T17:14:13.910Z\",\n        \"updatedAt\": \"2025-10-31T20:50:09.377Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e01decf2-5a96-4587-9883-0eb47bad30e7"},{"name":"delete plan 200 OK","id":"65595174-6239-4188-a4ba-964e9ca50d12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598","urlObject":{"protocol":"http","port":"8000","path":["api","plans","68ffa86573b7aa756b28e598"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a902898b-f6c5-431e-867f-4efbc50654f4","name":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/plans/68ffa86573b7aa756b28e598"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-rbhMR76JMGNwvRJwaCuIlyx0aFY\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:50:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plan deleted successfully\"\n}"}],"_postman_id":"65595174-6239-4188-a4ba-964e9ca50d12"}],"id":"da132086-c77b-469f-9b3e-597ffcf5a27f","_postman_id":"da132086-c77b-469f-9b3e-597ffcf5a27f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[{"name":"get all plans 200 OK","id":"77e62d78-69d9-4c7b-9ae0-8e70d4f1f8fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/plans","urlObject":{"protocol":"http","port":"8000","path":["api","plans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e9dc2a4c-4128-437c-afa1-4aac87788c4a","name":"http://localhost:8000/api/plans","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/plans"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"841"},{"key":"ETag","value":"W/\"349-zTuIDDcQX5H2Wy3rzkLqE5gdjas\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:29:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plans retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"691320b559bdb443dfcc6799\",\n            \"boxType\": \"Caja\",\n            \"boxSize\": 22,\n            \"price\": 22,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-11T11:40:37.132Z\",\n            \"updatedAt\": \"2025-11-11T11:40:37.132Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69124365dabc5a83ccf3f0d9\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 4,\n            \"price\": 29.99,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T19:56:21.745Z\",\n            \"updatedAt\": \"2025-11-11T10:25:18.874Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69125927f18d5d0478322033\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 9,\n            \"price\": 30,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T21:29:11.870Z\",\n            \"updatedAt\": \"2025-11-10T21:29:11.870Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69124371dabc5a83ccf3f0dd\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 3,\n            \"price\": 59.99,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-11-10T19:56:33.044Z\",\n            \"updatedAt\": \"2025-11-10T19:56:33.044Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"77e62d78-69d9-4c7b-9ae0-8e70d4f1f8fc"},{"name":"get by id 200 OK","id":"b967d48b-88fb-429b-9afd-a0729fc9936c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/plans/69124365dabc5a83ccf3f0d9","urlObject":{"protocol":"http","port":"8000","path":["api","plans","69124365dabc5a83ccf3f0d9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"619d162f-33d8-4c48-943c-2473d1e65f4c","name":"http://localhost:8000/api/plans/69124365dabc5a83ccf3f0d9","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/plans/69124365dabc5a83ccf3f0d9"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"257"},{"key":"ETag","value":"W/\"101-FyU8Yhidt2xtuDQhXKE/CLAf3Do\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:30:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Plan retrieved successfully\",\n    \"data\": {\n        \"_id\": \"69124365dabc5a83ccf3f0d9\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 4,\n        \"price\": 29.99,\n        \"active\": true,\n        \"deleteAt\": null,\n        \"createdAt\": \"2025-11-10T19:56:21.745Z\",\n        \"updatedAt\": \"2025-11-11T10:25:18.874Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"b967d48b-88fb-429b-9afd-a0729fc9936c"}],"id":"9f4861bb-a11e-4c1e-99cb-4b2acb16bc9d","_postman_id":"9f4861bb-a11e-4c1e-99cb-4b2acb16bc9d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"5446a6fe-f65c-4595-a528-0f3465bce95a","_postman_id":"5446a6fe-f65c-4595-a528-0f3465bce95a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Error","item":[{"name":"admin","item":[],"id":"8659761a-d23e-45cb-8424-c473ce2024e3","_postman_id":"8659761a-d23e-45cb-8424-c473ce2024e3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[{"name":"create plan 403 Forbidden","id":"a4a7d9c9-4daf-4018-bace-644c9209cd10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"boxType\": \"premium\",\r\n  \"boxSize\": 2,\r\n  \"price\": 29.99,\r\n  \"active\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans","urlObject":{"protocol":"http","port":"8000","path":["api","plans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"528e3e44-531e-4a8c-bf65-28302bf0dcd2","name":"http://localhost:8000/api/plans","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"boxType\": \"premium\",\r\n  \"boxSize\": 2,\r\n  \"price\": 29.99,\r\n  \"active\": true\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-pFDfpqlD/tQMw8xv7dfz4Chu2sQ\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:54:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"NOT_PERMISSIONS\"\n}"}],"_postman_id":"a4a7d9c9-4daf-4018-bace-644c9209cd10"},{"name":"update plan 403 Forbidden","id":"a1c36e54-503e-4405-b870-72c7660b0dee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"boxSize\": 3,\r\n    \"price\": 20.00\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans/\"691320b559bdb443dfcc679","urlObject":{"protocol":"http","port":"8000","path":["api","plans","\"691320b559bdb443dfcc679"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e17a8bf3-5f49-4cdb-bf53-c2f6ab837fe7","name":"http://localhost:8000/api/plans/69051fb108cda06de6d507c7","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"boxSize\": 3,\r\n    \"price\": 20.00\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/plans/69051fb108cda06de6d507c7"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-pFDfpqlD/tQMw8xv7dfz4Chu2sQ\""},{"key":"Date","value":"Fri, 31 Oct 2025 20:56:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"NOT_PERMISSIONS\"\n}"}],"_postman_id":"a1c36e54-503e-4405-b870-72c7660b0dee"}],"id":"ae17ab2f-02d5-49db-89cd-c41da315db49","_postman_id":"ae17ab2f-02d5-49db-89cd-c41da315db49","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"5a926d67-aa00-495d-9700-c460186e51fc","_postman_id":"5a926d67-aa00-495d-9700-c460186e51fc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"b4ed53c1-149c-4521-9c88-3999ee43e5e0","_postman_id":"b4ed53c1-149c-4521-9c88-3999ee43e5e0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Subscriptions","item":[{"name":"Success","item":[{"name":"admin","item":[{"name":"get all subscriptions 200 OK","id":"f7e68217-71a4-4424-8fe2-1c42ed088ab7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription","urlObject":{"protocol":"http","port":"8000","path":["api","subscription"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"88b43a06-6477-4030-8356-8b4b4ef52339","name":"http://localhost:8000/api/subscription","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5775"},{"key":"ETag","value":"W/\"168f-uPhh9gA8i4q10gAn11Ue7aKMfLg\""},{"key":"Date","value":"Fri, 31 Oct 2025 21:10:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Subscriptions retrieved successfully\",\n    \"data\": [\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"69050e50d2832cb611237222\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d9199\",\n                \"email\": \"admin@boxpremier.com\",\n                \"firstName\": \"Cazuza\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 1,\n            \"status\": \"active\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-31T19:30:24.900Z\",\n            \"updatedAt\": \"2025-10-31T19:30:24.900Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"69050e45d2832cb61123721f\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d9199\",\n                \"email\": \"admin@boxpremier.com\",\n                \"firstName\": \"Cazuza\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"active\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-31T19:30:13.740Z\",\n            \"updatedAt\": \"2025-10-31T19:30:13.740Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"69050733bac5785f3a8c37f3\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d9199\",\n                \"email\": \"admin@boxpremier.com\",\n                \"firstName\": \"Cazuza\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 1,\n            \"status\": \"canceled\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-31T19:00:03.683Z\",\n            \"updatedAt\": \"2025-10-31T19:31:03.308Z\",\n            \"__v\": 0,\n            \"endDate\": \"2025-10-31T19:31:03.307Z\"\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"6903f2a72d0fa803ece4bcdb\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d9199\",\n                \"email\": \"admin@boxpremier.com\",\n                \"firstName\": \"Cazuza\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-30T23:20:07.100Z\",\n            \"updatedAt\": \"2025-10-30T23:20:07.100Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"6903e11a15a342604a20ad5f\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d9199\",\n                \"email\": \"admin@boxpremier.com\",\n                \"firstName\": \"Cazuza\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"premium\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-30T22:05:14.053Z\",\n            \"updatedAt\": \"2025-10-30T22:05:14.053Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"690293351094e00b77abcfbf\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d919c\",\n                \"email\": \"maria@email.com\",\n                \"firstName\": \"Maria\",\n                \"lastName\": \"Santos\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-29T22:20:37.470Z\",\n            \"updatedAt\": \"2025-10-29T22:20:37.470Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"69028f092abf1342341d520e\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d919c\",\n                \"email\": \"maria@email.com\",\n                \"firstName\": \"Maria\",\n                \"lastName\": \"Santos\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-29T22:02:49.321Z\",\n            \"updatedAt\": \"2025-10-29T22:02:49.321Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"6902155a574bb2e5ad5c6890\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d919c\",\n                \"email\": \"maria@email.com\",\n                \"firstName\": \"Maria\",\n                \"lastName\": \"Santos\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-29T13:23:38.236Z\",\n            \"updatedAt\": \"2025-10-29T13:23:38.236Z\",\n            \"__v\": 0\n        },\n        {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"6901f776574bb2e5ad5c688d\",\n            \"user\": {\n                \"_id\": \"68fb488e4c957c547d1d919c\",\n                \"email\": \"maria@email.com\",\n                \"firstName\": \"Maria\",\n                \"lastName\": \"Santos\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-29T11:16:06.070Z\",\n            \"updatedAt\": \"2025-10-29T11:16:06.070Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb77bc1c77c814674180ee\",\n            \"user\": {\n                \"_id\": \"69010c6032f1cf9eecf3c961\",\n                \"email\": \"jsilva@email.com\",\n                \"firstName\": \"Josefa\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-10-24T12:57:32.249Z\",\n            \"nextPayDate\": \"2025-10-24T12:57:32.249Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": true,\n            \"giftFromId\": null,\n            \"giftMessage\": \"eahorabuenA TIO\",\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T12:57:32.272Z\",\n            \"updatedAt\": \"2025-10-24T12:57:32.272Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb7387a7efd10e37a1b6cd\",\n            \"user\": null,\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-10-24T12:39:35.368Z\",\n            \"nextPayDate\": \"2025-10-24T12:39:35.368Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftFromId\": null,\n            \"giftMessage\": null,\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T12:39:35.386Z\",\n            \"updatedAt\": \"2025-10-24T12:39:35.386Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb735bf700f47de1ae5bef\",\n            \"user\": null,\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"startDate\": \"2025-10-24T12:38:51.074Z\",\n            \"nextPayDate\": \"2025-10-24T12:38:51.074Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftFromId\": null,\n            \"giftMessage\": null,\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T12:38:51.088Z\",\n            \"updatedAt\": \"2025-10-24T12:38:51.088Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb5b869de93f5a0da9aa86\",\n            \"user\": null,\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-10-24T10:57:10.137Z\",\n            \"nextPayDate\": \"2025-10-24T10:57:10.137Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftFromId\": null,\n            \"giftMessage\": null,\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T10:57:10.160Z\",\n            \"updatedAt\": \"2025-10-24T10:57:10.160Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"f7e68217-71a4-4424-8fe2-1c42ed088ab7"},{"name":"get subscriptions by id user 200 OK","id":"348fb63e-563a-4883-b2b4-9d74b3d071fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/subscription/64b3f3d2c0a8f2b1c3d4e5f6","urlObject":{"protocol":"http","port":"8000","path":["api","subscription","64b3f3d2c0a8f2b1c3d4e5f6"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d0234cff-f827-48f9-bbcd-c8f00dc24967","name":"http://localhost:8000/api/subscription/64b3f3d2c0a8f2b1c3d4e5f6","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/subscription/64b3f3d2c0a8f2b1c3d4e5f6"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"947"},{"key":"ETag","value":"W/\"3b3-s/BSZQTjKJDE9nkHwMQR2dOiu68\""},{"key":"Date","value":"Fri, 31 Oct 2025 21:16:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Subscriptions retrieved successfully\",\n    \"data\": [\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb7387a7efd10e37a1b6cd\",\n            \"user\": null,\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-10-24T12:39:35.368Z\",\n            \"nextPayDate\": \"2025-10-24T12:39:35.368Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftFromId\": null,\n            \"giftMessage\": null,\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T12:39:35.386Z\",\n            \"updatedAt\": \"2025-10-24T12:39:35.386Z\",\n            \"__v\": 0\n        },\n        {\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"68fb5b869de93f5a0da9aa86\",\n            \"user\": null,\n            \"subscriptionPlan\": null,\n            \"wineType\": \"mixed\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-10-24T10:57:10.137Z\",\n            \"nextPayDate\": \"2025-10-24T10:57:10.137Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftFromId\": null,\n            \"giftMessage\": null,\n            \"payMethod\": \"card\",\n            \"createdAt\": \"2025-10-24T10:57:10.160Z\",\n            \"updatedAt\": \"2025-10-24T10:57:10.160Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"348fb63e-563a-4883-b2b4-9d74b3d071fe"},{"name":"update subscription 200 OK","id":"563fe321-fdfc-49fc-ae44-bac22c9071f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"wineType\": \"sparkling\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription/6905756083bac3e41250a09c","urlObject":{"protocol":"http","port":"8000","path":["api","subscription","6905756083bac3e41250a09c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"08e8fb47-2c0b-4324-ac86-34b734f5ad10","name":"http://localhost:8000/api/subscription/6905756083bac3e41250a09c","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"wineType\": \"sparkling\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription/6905756083bac3e41250a09c"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"594"},{"key":"ETag","value":"W/\"252-s/Fen/GPaTqtNnJNb74MhbENLzc\""},{"key":"Date","value":"Sat, 01 Nov 2025 02:57:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Subscription updated successfully\",\n    \"data\": {\n        \"_id\": \"6905756083bac3e41250a09c\",\n        \"user\": \"690509b108cda06de6d5079c\",\n        \"subscriptionPlan\": \"69051fb108cda06de6d507c7\",\n        \"wineType\": \"sparkling\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"startDate\": \"2025-11-01T02:50:08.251Z\",\n        \"nextPayDate\": \"2025-12-01T02:50:08.250Z\",\n        \"endDate\": null,\n        \"status\": \"pending\",\n        \"isGift\": false,\n        \"giftDurationMonths\": 1,\n        \"giftActivatedAt\": null,\n        \"payMethod\": \"card\",\n        \"createdBy\": \"6900cbe087d17d130d9a8658\",\n        \"createdAt\": \"2025-11-01T02:50:08.254Z\",\n        \"updatedAt\": \"2025-11-01T02:57:26.619Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"6900cbe087d17d130d9a8658\"\n    }\n}"}],"_postman_id":"563fe321-fdfc-49fc-ae44-bac22c9071f0"},{"name":"create subscription 201 created","id":"29cea4bf-faa2-47ab-b1a7-69216e9c6df4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"69060376ab14adbd098bc1a1\",\r\n    \"subscriptionPlanId\": \"69086e1640f9a0a534d04891\",\r\n    \"wineType\": \"mixed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subs","urlObject":{"protocol":"http","port":"8000","path":["api","subs"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bc381dd8-52fb-4197-a5a5-c00a02b2b893","name":"create subscription 201 created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"69060376ab14adbd098bc1a1\",\r\n    \"subscriptionPlanId\": \"69086e1640f9a0a534d04891\",\r\n    \"wineType\": \"mixed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subs"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"ETag","value":"W/\"228-+jD73tgr8gI+DlyoDCAkpwBOKFI\""},{"key":"Date","value":"Mon, 03 Nov 2025 09:32:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Subscription created successfully\",\n    \"data\": {\n        \"user\": \"69060376ab14adbd098bc1a1\",\n        \"subscriptionPlan\": \"69086e1640f9a0a534d04891\",\n        \"wineType\": \"mixed\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"startDate\": \"2025-11-03T09:32:36.815Z\",\n        \"nextPayDate\": \"2025-12-03T09:32:36.814Z\",\n        \"endDate\": null,\n        \"status\": \"pending\",\n        \"isGift\": false,\n        \"giftDurationMonths\": 1,\n        \"giftActivatedAt\": null,\n        \"payMethod\": \"card\",\n        \"createdBy\": \"69086bf85bb6a0351a103800\",\n        \"_id\": \"690876b44b27aafbb0e7c59f\",\n        \"createdAt\": \"2025-11-03T09:32:36.831Z\",\n        \"updatedAt\": \"2025-11-03T09:32:36.831Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"29cea4bf-faa2-47ab-b1a7-69216e9c6df4"}],"id":"ece8043c-8b3a-4729-bdf4-18611691c0f8","_postman_id":"ece8043c-8b3a-4729-bdf4-18611691c0f8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[{"name":"create subscription 201 created","id":"6b2da9d2-0706-4dbf-83a5-b1eeb08912d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionPlanId\": \"69051fb108cda06de6d507c7\",\r\n  \"wineType\": \"sparkling\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription","urlObject":{"protocol":"http","port":"8000","path":["api","subscription"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ba6b935e-7c87-48fe-b023-ead8aaa66ed9","name":"http://localhost:8000/api/subscription","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionPlanId\": \"69051fb108cda06de6d507c7\",\r\n  \"wineType\": \"sparkling\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscription"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"556"},{"key":"ETag","value":"W/\"22c-2xQhPYdgQZsEwE9RwGiuVImx8gU\""},{"key":"Date","value":"Sat, 01 Nov 2025 02:47:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Subscription created successfully\",\n    \"data\": {\n        \"user\": \"690509b108cda06de6d5079c\",\n        \"subscriptionPlan\": \"69051fb108cda06de6d507c7\",\n        \"wineType\": \"sparkling\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"startDate\": \"2025-11-01T02:47:16.624Z\",\n        \"nextPayDate\": \"2025-12-01T02:47:16.616Z\",\n        \"endDate\": null,\n        \"status\": \"pending\",\n        \"isGift\": false,\n        \"giftDurationMonths\": 1,\n        \"giftActivatedAt\": null,\n        \"payMethod\": \"card\",\n        \"createdBy\": \"690509b108cda06de6d5079c\",\n        \"_id\": \"690574b483bac3e41250a094\",\n        \"createdAt\": \"2025-11-01T02:47:16.637Z\",\n        \"updatedAt\": \"2025-11-01T02:47:16.637Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6b2da9d2-0706-4dbf-83a5-b1eeb08912d6"},{"name":"get Subscription By Id 200 OK","id":"29663b3c-9e44-4ef2-9d3a-cdaf36e0e909","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscriptions/details/69057cb2ed1dc36956526670","urlObject":{"protocol":"http","port":"8000","path":["api","subscriptions","details","69057cb2ed1dc36956526670"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d6444664-a552-41aa-be46-87ff4113fec4","name":"http://localhost:8000/api/subscriptions/details/69057cb2ed1dc36956526670","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/subscriptions/details/69057cb2ed1dc36956526670"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"863"},{"key":"ETag","value":"W/\"35f-iqz5RORzFb/8rx/JOo5ihD2e6Bk\""},{"key":"Date","value":"Sat, 01 Nov 2025 03:35:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Subscription retrieved successfully\",\n    \"data\": {\n        \"_id\": \"69057cb2ed1dc36956526670\",\n        \"user\": {\n            \"_id\": \"690509b108cda06de6d5079c\",\n            \"email\": \"carlos@email.com\",\n            \"firstName\": \"Carlos Eduardo\",\n            \"lastName\": \"García\"\n        },\n        \"subscriptionPlan\": {\n            \"_id\": \"69051fb108cda06de6d507c7\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"price\": 29.99,\n            \"active\": true,\n            \"deleteAt\": null,\n            \"createdAt\": \"2025-10-31T20:44:33.407Z\",\n            \"updatedAt\": \"2025-10-31T20:44:33.407Z\",\n            \"__v\": 0\n        },\n        \"wineType\": \"rose\",\n        \"boxType\": \"basic\",\n        \"boxSize\": 3,\n        \"startDate\": \"2025-11-01T03:21:22.668Z\",\n        \"nextPayDate\": \"2025-12-01T03:21:22.668Z\",\n        \"endDate\": null,\n        \"status\": \"pending\",\n        \"isGift\": false,\n        \"giftDurationMonths\": 1,\n        \"giftActivatedAt\": null,\n        \"payMethod\": \"card\",\n        \"createdBy\": {\n            \"_id\": \"690509b108cda06de6d5079c\",\n            \"firstName\": \"Carlos Eduardo\",\n            \"lastName\": \"García\"\n        },\n        \"createdAt\": \"2025-11-01T03:21:22.670Z\",\n        \"updatedAt\": \"2025-11-01T03:21:22.670Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"29663b3c-9e44-4ef2-9d3a-cdaf36e0e909"}],"id":"a26dd375-2395-4119-bcb6-7377dc56b3f3","_postman_id":"a26dd375-2395-4119-bcb6-7377dc56b3f3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"a69f8e3f-4625-49c4-86f8-2cbfdcc949da","_postman_id":"a69f8e3f-4625-49c4-86f8-2cbfdcc949da","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Error","item":[{"name":"admin","item":[],"id":"1233ada5-f61e-4082-aef0-c11b3f7929f9","_postman_id":"1233ada5-f61e-4082-aef0-c11b3f7929f9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[{"name":"get all subscriptions 403 Forbidden","id":"4a09829f-f712-447f-aaca-0ea4f814f0af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"boxType\": \"premium\",\r\n  \"boxSize\": 2,\r\n  \"price\": 29.99,\r\n  \"active\": true\r\n}\r\n"},"url":"http://localhost:8000/api/subscription","urlObject":{"protocol":"http","port":"8000","path":["api","subscription"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a09829f-f712-447f-aaca-0ea4f814f0af"}],"id":"44eabd4a-a809-46f5-b0fd-f8a1a3ea23d2","_postman_id":"44eabd4a-a809-46f5-b0fd-f8a1a3ea23d2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"ea380dce-0dd5-40d1-9830-85aa690968e2","_postman_id":"ea380dce-0dd5-40d1-9830-85aa690968e2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"94f9c529-4598-4140-a854-1e0e43a2830a","_postman_id":"94f9c529-4598-4140-a854-1e0e43a2830a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Orders","item":[{"name":"Success","item":[{"name":"admin","item":[{"name":"get all orders 200 OK","id":"fdc6c47b-24e2-4575-a646-59c66d954b1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/orders","urlObject":{"protocol":"http","port":"8000","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fbae0a56-f4da-475d-a344-bf578ca94019","name":"http://localhost:8000/api/orders","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/orders"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2959"},{"key":"ETag","value":"W/\"b8f-s7sEJIis3ZLc9zpJHMUYUnYVxds\""},{"key":"Date","value":"Fri, 31 Oct 2025 21:47:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"data\": [\n        {\n            \"_id\": \"69037b1fb5d846df33d6b28d\",\n            \"userId\": {\n                \"_id\": \"69010c6032f1cf9eecf3c961\",\n                \"email\": \"jsilva@email.com\",\n                \"firstName\": \"Josefa\",\n                \"lastName\": \"Silva\"\n            },\n            \"subscriptionId\": {\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"_id\": \"68fb77bc1c77c814674180ee\",\n                \"user\": \"69010c6032f1cf9eecf3c961\",\n                \"subscriptionPlan\": \"68ffa86573b7aa756b28e598\",\n                \"wineType\": \"mixed\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-10-24T12:57:32.249Z\",\n                \"nextPayDate\": \"2025-10-24T12:57:32.249Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": true,\n                \"giftFromId\": \"64b3f3d2c0a8f2b1c3d4e5f6\",\n                \"giftMessage\": \"eahorabuenA TIO\",\n                \"payMethod\": \"card\",\n                \"createdAt\": \"2025-10-24T12:57:32.272Z\",\n                \"updatedAt\": \"2025-10-24T12:57:32.272Z\",\n                \"__v\": 0\n            },\n            \"boxType\": \"basic\",\n            \"wineType\": \"mixed\",\n            \"boxSize\": 3,\n            \"fullName\": \"Josefa Silva\",\n            \"phone\": \"123456789\",\n            \"street\": \"Rua Principal\",\n            \"number\": \"123\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": \"cancelled\",\n            \"orderDate\": \"2025-10-30T14:50:07.177Z\",\n            \"totalAmount\": 9.99,\n            \"createdAt\": \"2025-10-30T14:50:07.180Z\",\n            \"updatedAt\": \"2025-10-30T19:11:05.590Z\",\n            \"__v\": 0,\n            \"carrier\": \"SEUR\",\n            \"trackingNumber\": \"ES123456789PT\"\n        },\n        {\n            \"_id\": \"690375eab5d846df33d6b26b\",\n            \"userId\": {\n                \"_id\": \"68fb488e4c957c547d1d919c\",\n                \"email\": \"maria@email.com\",\n                \"firstName\": \"Maria\",\n                \"lastName\": \"Santos\"\n            },\n            \"subscriptionId\": {\n                \"endDate\": null,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"_id\": \"690293351094e00b77abcfbf\",\n                \"user\": \"68fb488e4c957c547d1d919c\",\n                \"subscriptionPlan\": \"68ffa86573b7aa756b28e598\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 1,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"payMethod\": \"credit_card\",\n                \"createdAt\": \"2025-10-29T22:20:37.470Z\",\n                \"updatedAt\": \"2025-10-29T22:20:37.470Z\",\n                \"__v\": 0\n            },\n            \"boxType\": \"basic\",\n            \"wineType\": \"red\",\n            \"boxSize\": 1,\n            \"fullName\": \"Maria Santos\",\n            \"phone\": \"123456789\",\n            \"street\": \"Calle Mayor\",\n            \"number\": \"123\",\n            \"floor\": \"2A\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": \"pending\",\n            \"orderDate\": \"2025-10-30T14:27:54.590Z\",\n            \"totalAmount\": 9.99,\n            \"createdAt\": \"2025-10-30T14:27:54.653Z\",\n            \"updatedAt\": \"2025-10-30T14:27:54.653Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68ffaab754cad425f724d554\",\n            \"userId\": null,\n            \"subscriptionId\": {\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"_id\": \"68fb735bf700f47de1ae5bef\",\n                \"user\": \"68ff4884992282e4623a7102\",\n                \"subscriptionPlan\": \"68ffa86573b7aa756b28e598\",\n                \"wineType\": \"mixed\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 1,\n                \"startDate\": \"2025-10-24T12:38:51.074Z\",\n                \"nextPayDate\": \"2025-10-24T12:38:51.074Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftFromId\": null,\n                \"giftMessage\": null,\n                \"payMethod\": \"card\",\n                \"createdAt\": \"2025-10-24T12:38:51.088Z\",\n                \"updatedAt\": \"2025-10-24T12:38:51.088Z\",\n                \"__v\": 0\n            },\n            \"boxType\": \"basic\",\n            \"wineType\": \"mixed\",\n            \"boxSize\": 1,\n            \"fullName\": \"Maria Silva\",\n            \"phone\": \"123456789\",\n            \"street\": \"Rua Principal\",\n            \"number\": \"123\",\n            \"postalCode\": \"28001\",\n            \"city\": \"Madrid\",\n            \"province\": \"Madrid\",\n            \"country\": \"Spain\",\n            \"status\": \"pending\",\n            \"orderDate\": \"2025-10-27T17:24:07.293Z\",\n            \"totalAmount\": 9.99,\n            \"createdAt\": \"2025-10-27T17:24:07.303Z\",\n            \"updatedAt\": \"2025-10-27T17:24:07.303Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"fdc6c47b-24e2-4575-a646-59c66d954b1d"},{"name":"get by id 200 OK","id":"7f3f7c8c-dd59-4b3d-9931-4686c7048b0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/orders/690375eab5d846df33d6b26b","urlObject":{"protocol":"http","port":"8000","path":["api","orders","690375eab5d846df33d6b26b"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b77f3b72-31d2-4b1f-acbe-1a90d6f54cad","name":"http://localhost:8000/api/orders/690375eab5d846df33d6b26b","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n"},"url":"http://localhost:8000/api/orders/690375eab5d846df33d6b26b"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"935"},{"key":"ETag","value":"W/\"3a7-13kwRI+4WLg+1Po0vzgIkBIvnGo\""},{"key":"Date","value":"Fri, 31 Oct 2025 21:49:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"data\": {\n        \"_id\": \"690375eab5d846df33d6b26b\",\n        \"userId\": {\n            \"_id\": \"68fb488e4c957c547d1d919c\",\n            \"email\": \"maria@email.com\",\n            \"firstName\": \"Maria\",\n            \"lastName\": \"Santos\"\n        },\n        \"subscriptionId\": {\n            \"endDate\": null,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"_id\": \"690293351094e00b77abcfbf\",\n            \"user\": \"68fb488e4c957c547d1d919c\",\n            \"subscriptionPlan\": \"68ffa86573b7aa756b28e598\",\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 1,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"payMethod\": \"credit_card\",\n            \"createdAt\": \"2025-10-29T22:20:37.470Z\",\n            \"updatedAt\": \"2025-10-29T22:20:37.470Z\",\n            \"__v\": 0\n        },\n        \"boxType\": \"basic\",\n        \"wineType\": \"red\",\n        \"boxSize\": 1,\n        \"fullName\": \"Maria Santos\",\n        \"phone\": \"123456789\",\n        \"street\": \"Calle Mayor\",\n        \"number\": \"123\",\n        \"floor\": \"2A\",\n        \"postalCode\": \"28001\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"Spain\",\n        \"status\": \"pending\",\n        \"orderDate\": \"2025-10-30T14:27:54.590Z\",\n        \"totalAmount\": 9.99,\n        \"createdAt\": \"2025-10-30T14:27:54.653Z\",\n        \"updatedAt\": \"2025-10-30T14:27:54.653Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"7f3f7c8c-dd59-4b3d-9931-4686c7048b0a"},{"name":"create order 201 created","id":"8964f974-a146-40f3-9392-1b61e05f5dbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"userId\": \"69060376ab14adbd098bc1a1\",\r\n  \"subscriptionId\": \"690876b44b27aafbb0e7c59f\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders","urlObject":{"protocol":"http","port":"8000","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dec4884f-bdbb-4ec7-8cfd-bacbb6912340","name":"create order 201 created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"userId\": \"69060376ab14adbd098bc1a1\",\r\n  \"subscriptionId\": \"690876b44b27aafbb0e7c59f\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"592"},{"key":"ETag","value":"W/\"250-XIHNn7EbpLteuvYFqa1YaHwyGoI\""},{"key":"Date","value":"Mon, 03 Nov 2025 14:57:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Order created\",\n    \"data\": {\n        \"userId\": \"69060376ab14adbd098bc1a1\",\n        \"subscriptionId\": \"690876b44b27aafbb0e7c59f\",\n        \"boxType\": \"basic\",\n        \"wineType\": \"mixed\",\n        \"boxSize\": 3,\n        \"fullName\": \"Jose García\",\n        \"phone\": \"222444666\",\n        \"street\": \"Calle Mayor\",\n        \"number\": \"45\",\n        \"floor\": \"3º B\",\n        \"postalCode\": \"28013\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": \"pending\",\n        \"orderDate\": \"2025-11-03T14:57:07.125Z\",\n        \"totalAmount\": 29.99,\n        \"createdBy\": \"69086bf85bb6a0351a103800\",\n        \"_id\": \"6908c2c37b9edf5eccf472d5\",\n        \"createdAt\": \"2025-11-03T14:57:07.141Z\",\n        \"updatedAt\": \"2025-11-03T14:57:07.141Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"8964f974-a146-40f3-9392-1b61e05f5dbe"},{"name":"update status 200 OK","id":"6647217e-33bd-4963-8299-0ecd8d8050b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"preparing\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders/69052fd8dcd566719b668f3a/status","urlObject":{"protocol":"http","port":"8000","path":["api","orders","69052fd8dcd566719b668f3a","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e816bba1-65e8-41ce-b7a0-baaca9a0493f","name":"http://localhost:8000/api/orders/69052fd8dcd566719b668f3a/status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"preparing\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders/69052fd8dcd566719b668f3a/status"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"584"},{"key":"ETag","value":"W/\"248-9qBIVAXzYau0Ujim51gs3EMPE/U\""},{"key":"Date","value":"Fri, 31 Oct 2025 22:00:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Order status updated successfully\",\n    \"data\": {\n        \"_id\": \"69052fd8dcd566719b668f3a\",\n        \"userId\": \"690509b108cda06de6d5079c\",\n        \"subscriptionId\": \"69050e50d2832cb611237222\",\n        \"boxType\": \"premium\",\n        \"wineType\": \"red\",\n        \"boxSize\": 1,\n        \"fullName\": \"Carlos Eduardo García\",\n        \"phone\": \"612345678\",\n        \"street\": \"Calle Mayor\",\n        \"number\": \"45\",\n        \"floor\": \"3º B\",\n        \"postalCode\": \"28013\",\n        \"city\": \"Madrid\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": \"preparing\",\n        \"orderDate\": \"2025-10-31T21:53:28.505Z\",\n        \"totalAmount\": 35.99,\n        \"createdAt\": \"2025-10-31T21:53:28.632Z\",\n        \"updatedAt\": \"2025-10-31T22:00:22.644Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6647217e-33bd-4963-8299-0ecd8d8050b7"},{"name":"update address 200 OK","id":"67aa9c51-59de-4320-bb55-a973364a98c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"street\": \"Rua Nova\",\r\n  \"number\": \"456\",\r\n  \"city\": \"Porto\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders/69052fd8dcd566719b668f3a/address","urlObject":{"protocol":"http","port":"8000","path":["api","orders","69052fd8dcd566719b668f3a","address"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"00a9de2a-e01a-4d01-850c-cfb58148667b","name":"update address 200 OK","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"street\": \"Rua Nova\",\r\n  \"number\": \"456\",\r\n  \"city\": \"Porto\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/orders/69052fd8dcd566719b668f3a/address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"582"},{"key":"ETag","value":"W/\"246-gTdrZ1be9jdI2ORIeaqpU9wDiAE\""},{"key":"Date","value":"Fri, 31 Oct 2025 22:02:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Order address updated successfully\",\n    \"data\": {\n        \"_id\": \"69052fd8dcd566719b668f3a\",\n        \"userId\": \"690509b108cda06de6d5079c\",\n        \"subscriptionId\": \"69050e50d2832cb611237222\",\n        \"boxType\": \"premium\",\n        \"wineType\": \"red\",\n        \"boxSize\": 1,\n        \"fullName\": \"Carlos Eduardo García\",\n        \"phone\": \"612345678\",\n        \"street\": \"Rua Nova\",\n        \"number\": \"456\",\n        \"floor\": \"3º B\",\n        \"postalCode\": \"28013\",\n        \"city\": \"Porto\",\n        \"province\": \"Madrid\",\n        \"country\": \"España\",\n        \"status\": \"preparing\",\n        \"orderDate\": \"2025-10-31T21:53:28.505Z\",\n        \"totalAmount\": 35.99,\n        \"createdAt\": \"2025-10-31T21:53:28.632Z\",\n        \"updatedAt\": \"2025-10-31T22:02:07.460Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"67aa9c51-59de-4320-bb55-a973364a98c6"}],"id":"5ae47e6d-fcfc-40e0-a8c5-14ede0788b0a","_postman_id":"5ae47e6d-fcfc-40e0-a8c5-14ede0788b0a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"customer","item":[],"id":"aaa97891-5d2e-4aa6-9b5d-767f20b11ba8","_postman_id":"aaa97891-5d2e-4aa6-9b5d-767f20b11ba8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"9fc04da5-3bb9-4772-a3ad-018d2a5ea4f4","_postman_id":"9fc04da5-3bb9-4772-a3ad-018d2a5ea4f4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"92e4188c-385f-43c6-add0-989b27af5982","_postman_id":"92e4188c-385f-43c6-add0-989b27af5982","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Payments","item":[{"name":"Success","item":[{"name":"admin","item":[{"name":"create payment 201 created","id":"d5a8bda4-fb72-4ba5-aae2-6a10908cca5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"691393ec49ac2a9084149930\",\r\n  \"amount\": 59.99,\r\n  \"gateway\": \"paypal\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments","urlObject":{"protocol":"http","port":"8000","path":["api","payments"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d4305417-ee3b-4188-afd1-4fbf33b0c9dd","name":"http://localhost:8000/api/payments","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"691393ec49ac2a9084149930\",\r\n  \"amount\": 59.99,\r\n  \"gateway\": \"paypal\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"378"},{"key":"ETag","value":"W/\"17a-g18uKf4D2tPV8/E97Dz1rxl70ro\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:53:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Payment created successfully\",\n    \"data\": {\n        \"subscriptionId\": \"691393ec49ac2a9084149930\",\n        \"orderId\": null,\n        \"amount\": 59.99,\n        \"status\": \"pending\",\n        \"gateway\": \"paypal\",\n        \"transactionId\": null,\n        \"paymentDate\": null,\n        \"paymentType\": \"recurring\",\n        \"monthsPaid\": 1,\n        \"_id\": \"6913943449ac2a908414993e\",\n        \"createdAt\": \"2025-11-11T19:53:24.109Z\",\n        \"updatedAt\": \"2025-11-11T19:53:24.109Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"d5a8bda4-fb72-4ba5-aae2-6a10908cca5f"},{"name":"get all payment 200 OK","id":"370a5359-41c1-43b9-8e1b-4d5810b8d8f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"69124395dabc5a83ccf3f0ea\",\r\n  \"amount\": 29.99,\r\n  \"gateway\": \"paypal\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments","urlObject":{"protocol":"http","port":"8000","path":["api","payments"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f6187bc2-1cb2-4bfd-8ad0-a4a28ff0e88c","name":"http://localhost:8000/api/payments","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"subscriptionId\": \"69124395dabc5a83ccf3f0ea\",\r\n  \"amount\": 29.99,\r\n  \"gateway\": \"paypal\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"10398"},{"key":"ETag","value":"W/\"289e-7Z2u4Xv8fQx71fBTyKcm6+RJuo4\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:41:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payments retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"691390f149ac2a90841498d9\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T19:39:29.773Z\",\n            \"updatedAt\": \"2025-11-11T19:39:29.773Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69133835937ec6598daec513\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"completed\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T13:22:52.141Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T13:20:53.583Z\",\n            \"updatedAt\": \"2025-11-11T13:57:02.784Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6913379a937ec6598daec4fb\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T13:36:09.501Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T13:18:18.384Z\",\n            \"updatedAt\": \"2025-11-11T13:46:03.227Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69133788937ec6598daec4eb\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T13:18:00.506Z\",\n            \"updatedAt\": \"2025-11-11T13:18:00.506Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69131858ec8190047a3324db\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T11:04:56.827Z\",\n            \"updatedAt\": \"2025-11-11T11:04:56.827Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69131319ec8190047a332465\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"failed\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T11:01:18.690Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T10:42:33.635Z\",\n            \"updatedAt\": \"2025-11-11T11:01:31.790Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"69130687ec8190047a3323cc\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T09:54:39.370Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T09:48:55.337Z\",\n            \"updatedAt\": \"2025-11-11T10:17:37.241Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6912f9ecec8190047a3322ed\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 30.04,\n            \"status\": \"pending\",\n            \"gateway\": \"redsys\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T08:55:08.133Z\",\n            \"updatedAt\": \"2025-11-11T08:55:08.133Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6912f7f9ec8190047a332291\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"completed\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T09:32:14.228Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T08:46:49.953Z\",\n            \"updatedAt\": \"2025-11-11T09:32:14.230Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6912f7ebec8190047a33227f\",\n            \"subscriptionId\": {\n                \"_id\": \"69124395dabc5a83ccf3f0ea\",\n                \"user\": {\n                    \"_id\": \"69124314dabc5a83ccf3f0ce\",\n                    \"email\": \"silva@email.com\",\n                    \"firstName\": \"Rosa\",\n                    \"lastName\": \"Araujo\"\n                },\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"rose\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T19:57:09.925Z\",\n                \"nextPayDate\": \"2025-12-10T19:57:09.924Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124314dabc5a83ccf3f0ce\",\n                \"createdAt\": \"2025-11-10T19:57:09.928Z\",\n                \"updatedAt\": \"2025-11-10T19:57:09.928Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T08:46:35.307Z\",\n            \"updatedAt\": \"2025-11-11T08:46:35.307Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6912e5bbec8190047a332220\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"failed\",\n            \"gateway\": \"multisafepay\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T07:28:59.433Z\",\n            \"updatedAt\": \"2025-11-11T08:34:57.886Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6912dd1eec8190047a332143\",\n            \"subscriptionId\": {\n                \"_id\": \"69124d3f2caf59e1ddaeb601\",\n                \"user\": {\n                    \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                    \"email\": \"pepitapollito@pollito.com\",\n                    \"firstName\": \"Nicole\",\n                    \"lastName\": \"Guevara\"\n                },\n                \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n                \"wineType\": \"red\",\n                \"boxType\": \"basic\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-10T20:38:23.100Z\",\n                \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n                \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n                \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 29.99,\n            \"status\": \"completed\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": \"2025-11-11T07:12:44.214Z\",\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T06:52:14.464Z\",\n            \"updatedAt\": \"2025-11-11T07:12:44.214Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"370a5359-41c1-43b9-8e1b-4d5810b8d8f6"},{"name":"get by id 200 OK","id":"589f0626-1904-49e2-8441-54a18009ca03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/payments/6912dd1eec8190047a332143","urlObject":{"protocol":"http","port":"8000","path":["api","payments","6912dd1eec8190047a332143"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3971cc16-043c-4a06-942f-0bd476a6d984","name":"http://localhost:8000/api/payments/6912dd1eec8190047a332143","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/payments/6912dd1eec8190047a332143"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"943"},{"key":"ETag","value":"W/\"3af-Qx47JxGKAtINwNFF4hpgZW1q6C4\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:43:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payment retrieved successfully\",\n    \"data\": {\n        \"_id\": \"6912dd1eec8190047a332143\",\n        \"subscriptionId\": {\n            \"_id\": \"69124d3f2caf59e1ddaeb601\",\n            \"user\": {\n                \"_id\": \"69124cb32caf59e1ddaeb5eb\",\n                \"email\": \"pepitapollito@pollito.com\",\n                \"firstName\": \"Nicole\",\n                \"lastName\": \"Guevara\"\n            },\n            \"subscriptionPlan\": \"69124365dabc5a83ccf3f0d9\",\n            \"wineType\": \"red\",\n            \"boxType\": \"basic\",\n            \"boxSize\": 3,\n            \"startDate\": \"2025-11-10T20:38:23.100Z\",\n            \"nextPayDate\": \"2025-12-10T20:38:23.099Z\",\n            \"endDate\": null,\n            \"status\": \"pending\",\n            \"isGift\": false,\n            \"giftDurationMonths\": 1,\n            \"giftActivatedAt\": null,\n            \"payMethod\": \"card\",\n            \"createdBy\": \"69124cb32caf59e1ddaeb5eb\",\n            \"createdAt\": \"2025-11-10T20:38:23.105Z\",\n            \"updatedAt\": \"2025-11-10T20:38:23.105Z\",\n            \"__v\": 0\n        },\n        \"orderId\": null,\n        \"amount\": 29.99,\n        \"status\": \"completed\",\n        \"gateway\": \"paypal\",\n        \"transactionId\": null,\n        \"paymentDate\": \"2025-11-11T07:12:44.214Z\",\n        \"paymentType\": \"recurring\",\n        \"monthsPaid\": 1,\n        \"createdAt\": \"2025-11-11T06:52:14.464Z\",\n        \"updatedAt\": \"2025-11-11T07:12:44.214Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"589f0626-1904-49e2-8441-54a18009ca03"},{"name":"update status 200 OK","id":"6ddb2ab1-0425-4b55-9ab1-93550c2844f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_ADMIN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"completed\",\r\n  \"transactionId\": \"TXN123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments/691390f149ac2a90841498d9/status","urlObject":{"protocol":"http","port":"8000","path":["api","payments","691390f149ac2a90841498d9","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9dc86357-3507-4385-a7b2-9f3bd871c5f4","name":"http://localhost:8000/api/payments/691390f149ac2a90841498d9/status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"completed\",\r\n  \"transactionId\": \"TXN123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/payments/691390f149ac2a90841498d9/status"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"411"},{"key":"ETag","value":"W/\"19b-8si4FnqxorCbM17XQX3m89rf9cs\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:46:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payment updated successfully\",\n    \"data\": {\n        \"_id\": \"691390f149ac2a90841498d9\",\n        \"subscriptionId\": \"69124395dabc5a83ccf3f0ea\",\n        \"orderId\": null,\n        \"amount\": 29.99,\n        \"status\": \"completed\",\n        \"gateway\": \"paypal\",\n        \"transactionId\": \"TXN123456789\",\n        \"paymentDate\": \"2025-11-11T19:46:44.155Z\",\n        \"paymentType\": \"recurring\",\n        \"monthsPaid\": 1,\n        \"createdAt\": \"2025-11-11T19:39:29.773Z\",\n        \"updatedAt\": \"2025-11-11T19:46:44.156Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6ddb2ab1-0425-4b55-9ab1-93550c2844f1"}],"id":"19be2092-0484-4818-bbcc-b6ad5d9f0c7b","_postman_id":"19be2092-0484-4818-bbcc-b6ad5d9f0c7b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"user","item":[{"name":"get all payments 200 OK","id":"681fd7cf-032e-4dc6-88c0-6ab60e95da7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/payments","urlObject":{"protocol":"http","port":"8000","path":["api","payments"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fbb99a6a-490a-4980-ad5e-3c2e025c8d67","name":"http://localhost:8000/api/payments","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/payments"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"840"},{"key":"ETag","value":"W/\"348-XjwwHeCvmj81scxlTqixjCPE/xQ\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:53:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": true,\n    \"message\": \"Payments retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"6913943449ac2a908414993e\",\n            \"subscriptionId\": {\n                \"_id\": \"691393ec49ac2a9084149930\",\n                \"user\": \"691373a6d280c2ed1740c0c6\",\n                \"subscriptionPlan\": \"69124371dabc5a83ccf3f0dd\",\n                \"wineType\": \"mixed\",\n                \"boxType\": \"premium\",\n                \"boxSize\": 3,\n                \"startDate\": \"2025-11-11T19:52:12.933Z\",\n                \"nextPayDate\": \"2025-12-11T19:52:12.926Z\",\n                \"endDate\": null,\n                \"status\": \"pending\",\n                \"isGift\": false,\n                \"giftDurationMonths\": 1,\n                \"giftActivatedAt\": null,\n                \"payMethod\": \"card\",\n                \"createdBy\": \"691373a6d280c2ed1740c0c6\",\n                \"createdAt\": \"2025-11-11T19:52:12.938Z\",\n                \"updatedAt\": \"2025-11-11T19:52:12.938Z\",\n                \"__v\": 0\n            },\n            \"orderId\": null,\n            \"amount\": 59.99,\n            \"status\": \"pending\",\n            \"gateway\": \"paypal\",\n            \"transactionId\": null,\n            \"paymentDate\": null,\n            \"paymentType\": \"recurring\",\n            \"monthsPaid\": 1,\n            \"createdAt\": \"2025-11-11T19:53:24.109Z\",\n            \"updatedAt\": \"2025-11-11T19:53:24.109Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"681fd7cf-032e-4dc6-88c0-6ab60e95da7a"}],"id":"b26ce62f-a855-4f0e-baad-ce7c80163d07","_postman_id":"b26ce62f-a855-4f0e-baad-ce7c80163d07","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"0392e3ab-e299-476c-801b-00c411482034","_postman_id":"0392e3ab-e299-476c-801b-00c411482034","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}},{"name":"Error","item":[{"name":"customer","item":[{"name":"get by id  403 Forbidden","id":"b6b1839e-6256-40b3-a4c9-a641ec7a068b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN_CUSTOMER}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/payments/6912dd1eec8190047a332143","urlObject":{"protocol":"http","port":"8000","path":["api","payments","6912dd1eec8190047a332143"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"de2c2975-87e7-4b51-8ac7-f0aa9f3bca0b","name":"http://localhost:8000/api/payments/6912dd1eec8190047a332143","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/payments/6912dd1eec8190047a332143"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-B/0kNo9sGpBdn+K0kD38VO2XPm8\""},{"key":"Date","value":"Tue, 11 Nov 2025 19:55:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"sucess\": false,\n    \"message\": \"You can only view your own payments\"\n}"}],"_postman_id":"b6b1839e-6256-40b3-a4c9-a641ec7a068b"}],"id":"099460f7-715f-4d1e-875b-2ac45e95b6a7","_postman_id":"099460f7-715f-4d1e-875b-2ac45e95b6a7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"ccc402ea-bb7d-430d-9ab2-f7cc43a1a9bd","_postman_id":"ccc402ea-bb7d-430d-9ab2-f7cc43a1a9bd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"id":"7c3d78fd-b060-47a7-a3e2-ac3669ef23d4","_postman_id":"7c3d78fd-b060-47a7-a3e2-ac3669ef23d4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"d377d469-899c-4eb3-a638-7ae301d22371","id":"d377d469-899c-4eb3-a638-7ae301d22371","name":"API-BOXPREMIER","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"12156e15-6125-44e2-8a3b-ae672decbcd7","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"234ccd78-3bd4-4341-aa23-bf4497cff7e9","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}]}