{"items":[{"type":"link","label":"Mercately Retailers API","link":"/apis","routeSlug":"/apis","content":{"contentType":"overview","meta":{"name":"Mercately Retailers API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"index.json","url":"/_bundle/apis/index.json?download"},{"kind":"download","label":"index.yaml","url":"/_bundle/apis/index.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"http://mercately.com/","url":"http://mercately.com/"},{"kind":"email","title":"E-mail","titleTranslationKey":"info.contact.name","email":"soporte@mercately.com","label":"soporte@mercately.com","withCopyButton":true,"copyContent":"soporte@mercately.com"},{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"MIT","url":"https://opensource.org/licenses/MIT"},{"kind":"externallink","label":"Terms of Service","labelTranslationKey":"info.termsOfService","url":"https://mercately.com/terms/"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Mercately Retailers API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La plataforma para desarrolladores de Mercately, está creada para ayudar a todos nuestros clientes y empoderarlos para que crezcan mejor. Nuestras API están diseñadas para permitir que los equipos de cualquier forma o tamaño construyan integraciones y aprovechar al máximo Mercately."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Todas las API de Mercately se construyen usando convenciones REST y están diseñadas para tener una estructura de URL predecible. U tilizan muchas funciones HTTP estándar, incluidos métodos (POST, GET, PUT, DELETE) y códigos de respuesta de error."},"children":[]}]}]}]}],"sectionId":"/apis"}],"sectionId":"/apis"}]}]}},{"type":"group","label":"Agents","link":"/apis/agents","routeSlug":"/apis/agents","items":[{"label":"List all agents","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/agents/listagents","routeSlug":"/apis/agents/listagents","metadata":{"seo":{"title":"List all agents","description":"List all agents"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listAgents","name":"List all agents","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1agents/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List all agents","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/agents","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/agents","href":"agents/listagents","openApiOperationId":"listAgents","summary":"List all agents"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Lista todos los agentes","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_0"}},"schemaId":"schema_0"},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1agents/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_0","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_0"}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/agents/listagents"}],"panels":[]}]},"httpPath":"/retailers/api/v1/agents"}],"content":{"contentType":"group","meta":{"name":"Agents"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Agents","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En Mercately, los agentes son conocidos como las personas que están en tu equipo de trabajo. Los agentes pueden estar atados a varios otros objetos como conversaciones, notas, tratos del embudo u órdenes."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/agents","summary":"List all agents","prefix":{"name":"get","color":"get"},"badges":[],"link":"/agents/listagents","deprecated":false}]}]}]}]}},{"type":"group","label":"Customers","link":"/apis/customers","routeSlug":"/apis/customers","items":[{"label":"Customers","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/getcustomers","routeSlug":"/apis/customers/getcustomers","metadata":{"seo":{"title":"Customers","description":"Obtén los datos de tus clientes"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCustomers","name":"Customers","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customers","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de tus clientes"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_1","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de clientes"},"children":[]}]}]}]},{"name":"start_date","in":"query","schemaId":"schema_2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha inicial de búsqueda en formato YYYY-MM-DD"},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha final de búsqueda en formato YYYY-MM-DD"},"children":[]}]}]}]},{"name":"id_type","in":"query","schemaId":"schema_4","description":"Especifica el tipo de documento a buscar"},{"name":"id_number","in":"query","schemaId":"schema_5","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de documento a buscar"},"children":[]}]}]}]},{"name":"platform","in":"query","schemaId":"schema_6","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plataforma de interacción"},"children":[]}]}]}]},{"name":"order_by_last_interaction","in":"query","schemaId":"schema_7","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ordena los clientes por la última interacción según la plataforma"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","required":false,"example":1,"schemaId":"schema_1"},{"name":"start_date","in":"query","required":false,"example":"2024-01-01","schemaId":"schema_2"},{"name":"end_date","in":"query","required":false,"example":"2024-12-31","schemaId":"schema_3"},{"name":"id_type","in":"query","required":false,"schemaId":"schema_4"},{"name":"id_number","in":"query","required":false,"example":"1234567890","schemaId":"schema_5"},{"name":"platform","in":"query","required":false,"schemaId":"schema_6"},{"name":"order_by_last_interaction","in":"query","required":false,"schemaId":"schema_7"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/customers","href":"customers/getcustomers","openApiOperationId":"getCustomers","summary":"Customers"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_8","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response"]},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Bad Request - Parámetros inválidos"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_9","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request"]}},"schemaId":"schema_9","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request"]}],"pointer":"/paths/~1retailers~1api~1v1~1customers/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_8","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400","schemaId":"schema_9","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_9","exampleIds":["paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/getcustomers"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers"},{"label":"Create Customers","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/createcustomer","routeSlug":"/apis/customers/createcustomer","metadata":{"seo":{"title":"Create Customers","description":"Crea un nuevo cliente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createCustomer","name":"Create Customers","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Customers","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Crea un nuevo cliente"},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"]}},"schemaId":"schema_10","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"],"pointer":"/paths/~1retailers~1api~1v1~1customers/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/customers","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"]}},"responseCodes":["200","400"],"pointer":"/retailers/api/v1/customers","href":"customers/createcustomer","openApiOperationId":"createCustomer","summary":"Create Customers"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_10","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OK - Cliente creado con éxito"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_11"}},"schemaId":"schema_11"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Bad Request - Datos inválidos"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_12","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request"]}},"schemaId":"schema_12","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request"]}],"pointer":"/paths/~1retailers~1api~1v1~1customers/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_11","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_11"}}},{"code":"400","schemaId":"schema_12","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_12","exampleIds":["paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/createcustomer"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers"},{"label":"Customer/:id","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/:id","routeSlug":"/apis/customers/customer/:id","metadata":{"seo":{"title":"Customer/:id","description":"Obtén los datos de un cliente en especifico buscado por ID"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/:id","name":"Customer/:id","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:id","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de un cliente en especifico buscado por ID"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:id","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:id","href":"customers/customer/:id","openApiOperationId":"customer/:id","summary":"Customer/:id"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/customer"}},"schemaId":"components/schemas/customer"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/customer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/customer"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/:id"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id"},{"label":"Customer/:email","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/email","routeSlug":"/apis/customers/customer/email","metadata":{"seo":{"title":"Customer/:email","description":"Obtén los datos de un cliente en especifico buscado por email"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/email","name":"Customer/:email","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:email/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:email","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de un cliente en especifico buscado por email"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:email","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:email","href":"customers/customer/email","openApiOperationId":"customer/email","summary":"Customer/:email"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer"}},"schemaId":"components/schemas/get_customer"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:email/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/get_customer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/email"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:email"},{"label":"Customer/:phone","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/phone","routeSlug":"/apis/customers/customer/phone","metadata":{"seo":{"title":"Customer/:phone","description":"Obtén los datos de un cliente en especifico buscado por phone"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/phone","name":"Customer/:phone","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:phone","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de un cliente en especifico buscado por phone"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:phone","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:phone","href":"customers/customer/phone","openApiOperationId":"customer/phone","summary":"Customer/:phone"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer"}},"schemaId":"components/schemas/get_customer"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/get_customer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/phone"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:phone"},{"label":"Update Customer by email, id or phone","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/updatecustomer/email","routeSlug":"/apis/customers/updatecustomer/email","metadata":{"seo":{"title":"Update Customer by email, id or phone","description":"Actualiza un nuevo customer buscado por email, id o phone. Puedes realizar la busqueda igual que los métodos get"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateCustomer/email","name":"Update Customer by email, id or phone","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Customer by email, id or phone","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza un nuevo customer buscado por email, id o phone. Puedes realizar la busqueda igual que los métodos get"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/update_customer"}},"schemaId":"components/schemas/update_customer","pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/retailers/api/v1/customers/:phone","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/update_customer"}},"responseCodes":["200","400"],"pointer":"/retailers/api/v1/customers/:phone","href":"customers/updatecustomer/email","openApiOperationId":"updateCustomer/email","summary":"Update Customer by email, id or phone"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"components/schemas/update_customer","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/update_customer"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/update_customer-2"}},"schemaId":"components/schemas/update_customer-2"},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/update_customer-2","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/update_customer-2"}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/updatecustomer/email"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:phone"},{"label":"Customer/:id/whatsapp_conversations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/id/whatsapp_conversations","routeSlug":"/apis/customers/customer/id/whatsapp_conversations","metadata":{"seo":{"title":"Customer/:id/whatsapp_conversations","description":"Obtén la conversación de Whatsapp del cliente por ID"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/id/whatsapp_conversations","name":"Customer/:id/whatsapp_conversations","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1whatsapp_conversations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:id/whatsapp_conversations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén la conversación de Whatsapp del cliente por ID"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de conversaciónes"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de mensajes que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1whatsapp_conversations/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:id/whatsapp_conversations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:id/whatsapp_conversations","href":"customers/customer/id/whatsapp_conversations","openApiOperationId":"customer/id/whatsapp_conversations","summary":"Customer/:id/whatsapp_conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}},"schemaId":"schema_14"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1whatsapp_conversations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_14","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/id/whatsapp_conversations"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id/whatsapp_conversations"},{"label":"Customer/:phone/whatsapp_conversations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/phone/whatsapp_conversations","routeSlug":"/apis/customers/customer/phone/whatsapp_conversations","metadata":{"seo":{"title":"Customer/:phone/whatsapp_conversations","description":"Obtén la conversación de Whatsapp del cliente por número de teléfono"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/phone/whatsapp_conversations","name":"Customer/:phone/whatsapp_conversations","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone~1whatsapp_conversations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:phone/whatsapp_conversations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén la conversación de Whatsapp del cliente por número de teléfono"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de conversaciónes"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de mensajes que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone~1whatsapp_conversations/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:phone/whatsapp_conversations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:phone/whatsapp_conversations","href":"customers/customer/phone/whatsapp_conversations","openApiOperationId":"customer/phone/whatsapp_conversations","summary":"Customer/:phone/whatsapp_conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}},"schemaId":"schema_14"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:phone~1whatsapp_conversations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_14","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_14"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/phone/whatsapp_conversations"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:phone/whatsapp_conversations"},{"label":"Customer/:id/messenger_conversations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/id/messenger_conversations","routeSlug":"/apis/customers/customer/id/messenger_conversations","metadata":{"seo":{"title":"Customer/:id/messenger_conversations","description":"Obtén la conversación de Messenger del cliente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/id/messenger_conversations","name":"Customer/:id/messenger_conversations","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1messenger_conversations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:id/messenger_conversations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén la conversación de Messenger del cliente"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de conversaciónes"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de mensajes que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1messenger_conversations/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:id/messenger_conversations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:id/messenger_conversations","href":"customers/customer/id/messenger_conversations","openApiOperationId":"customer/id/messenger_conversations","summary":"Customer/:id/messenger_conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}},"schemaId":"schema_15"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1messenger_conversations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_15","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/id/messenger_conversations"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id/messenger_conversations"},{"label":"Customer/:id/instagram_conversations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customers/customer/id/instagram_conversations","routeSlug":"/apis/customers/customer/id/instagram_conversations","metadata":{"seo":{"title":"Customer/:id/instagram_conversations","description":"Obtén la conversación de Instagram del cliente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/id/instagram_conversations","name":"Customer/:id/instagram_conversations","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1instagram_conversations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer/:id/instagram_conversations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén la conversación de Instagram del cliente"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de conversaciónes"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de mensajes que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1instagram_conversations/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:id/instagram_conversations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/retailers/api/v1/customers/:id/instagram_conversations","href":"customers/customer/id/instagram_conversations","openApiOperationId":"customer/id/instagram_conversations","summary":"Customer/:id/instagram_conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}},"schemaId":"schema_16"},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1instagram_conversations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_16","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16"}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customers/customer/id/instagram_conversations"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id/instagram_conversations"}],"content":{"contentType":"group","meta":{"name":"Customers"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customers","showPageActions":true},{"nodeType":"markdoc","content":"En Mercately, todo contacto proveniente de conversaciones, compras o creados directamente se clasifica como cliente."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/customers","summary":"Customers","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/getcustomers","deprecated":false},{"title":"/retailers/api/v1/customers","summary":"Create Customers","prefix":{"name":"post","color":"post"},"badges":[],"link":"/customers/createcustomer","deprecated":false},{"title":"/retailers/api/v1/customers/:id","summary":"Customer/:id","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/:id","deprecated":false},{"title":"/retailers/api/v1/customers/:email","summary":"Customer/:email","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/email","deprecated":false},{"title":"/retailers/api/v1/customers/:phone","summary":"Customer/:phone","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/phone","deprecated":false},{"title":"/retailers/api/v1/customers/:phone","summary":"Update Customer by email, id or phone","prefix":{"name":"put","color":"put"},"badges":[],"link":"/customers/updatecustomer/email","deprecated":false},{"title":"/retailers/api/v1/customers/:id/whatsapp_conversations","summary":"Customer/:id/whatsapp_conversations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/id/whatsapp_conversations","deprecated":false},{"title":"/retailers/api/v1/customers/:phone/whatsapp_conversations","summary":"Customer/:phone/whatsapp_conversations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/phone/whatsapp_conversations","deprecated":false},{"title":"/retailers/api/v1/customers/:id/messenger_conversations","summary":"Customer/:id/messenger_conversations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/id/messenger_conversations","deprecated":false},{"title":"/retailers/api/v1/customers/:id/instagram_conversations","summary":"Customer/:id/instagram_conversations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customers/customer/id/instagram_conversations","deprecated":false}]}]}]}]}},{"type":"group","label":"Deals","link":"/apis/deals","routeSlug":"/apis/deals","items":[{"label":"Obtener deals","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/deals/listdeal","routeSlug":"/apis/deals/listdeal","metadata":{"seo":{"title":"Obtener deals","description":"Obtén la lista de negociaciones"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"ListDeal","name":"Obtener deals","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1deals/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Obtener deals","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén la lista de negociaciones"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"funnel_name","in":"query","schemaId":"schema_17","description":"Nombre del embudo","required":true},{"name":"stage","in":"query","schemaId":"schema_18","description":"Nombre de la etapa","required":true},{"name":"page","in":"query","schemaId":"schema_19","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"número de pagina"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1deals/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/deals","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"funnel_name","in":"query","required":true,"example":"Negociaciones","schemaId":"schema_17"},{"name":"stage","in":"query","required":true,"example":"Calificado","schemaId":"schema_18"},{"name":"page","in":"query","example":1,"schemaId":"schema_19"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","404"],"pointer":"/retailers/api/v1/deals","href":"deals/listdeal","openApiOperationId":"ListDeal","summary":"Obtener deals"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/index"}},"schemaId":"components/schemas/index"},{"code":"404","description":"not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_20"}},"schemaId":"schema_20"}],"pointer":"/paths/~1retailers~1api~1v1~1deals/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/index","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/index"}}},{"code":"404","schemaId":"schema_20","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_20"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/deals/listdeal"}],"panels":[]}]},"httpPath":"/retailers/api/v1/deals"},{"label":"Create deal","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/deals/createdeal","routeSlug":"/apis/deals/createdeal","metadata":{"seo":{"title":"Create deal","description":"Crea una nueva negociación"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"CreateDeal","name":"Create deal","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1deals/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create deal","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea una nueva negociación"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_21"}},"schemaId":"schema_21","pointer":"/paths/~1retailers~1api~1v1~1deals/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/deals","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_21"}},"responseCodes":["200","422"],"pointer":"/retailers/api/v1/deals","href":"deals/createdeal","openApiOperationId":"CreateDeal","summary":"Create deal"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_21","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_21"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/create"}},"schemaId":"components/schemas/create"},{"code":"422","description":"No se pudo procesar el recurso","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_22"}},"schemaId":"schema_22"}],"pointer":"/paths/~1retailers~1api~1v1~1deals/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/create","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/create"}}},{"code":"422","schemaId":"schema_22","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_22"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/deals/createdeal"}],"panels":[]}]},"httpPath":"/retailers/api/v1/deals"},{"label":"deals/:id","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/deals/getdeal","routeSlug":"/apis/deals/getdeal","metadata":{"seo":{"title":"deals/:id","description":"Obtén una negociacion"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"GetDeal","name":"deals/:id","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"deals/:id","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén una negociacion"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID de la negociación"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/deals/{id}","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_23"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","404"],"pointer":"/retailers/api/v1/deals/{id}","href":"deals/getdeal","openApiOperationId":"GetDeal","summary":"deals/:id"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get"}},"schemaId":"components/schemas/get"},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La negociación no existe"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}},"schemaId":"schema_24"}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/get","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get"}}},{"code":"404","schemaId":"schema_24","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/deals/getdeal"}],"panels":[]}]},"httpPath":"/retailers/api/v1/deals/{id}"},{"label":"deals/:id","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/deals/updatedeal","routeSlug":"/apis/deals/updatedeal","metadata":{"seo":{"title":"deals/:id","description":"Actualiza una negociación"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"UpdateDeal","name":"deals/:id","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"deals/:id","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza una negociación"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_25","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID de la negociación"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_26"}},"schemaId":"schema_26","pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/retailers/api/v1/deals/{id}","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":"9c6d04017","schemaId":"schema_25"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_26"}},"responseCodes":["200","404","422"],"pointer":"/retailers/api/v1/deals/{id}","href":"deals/updatedeal","openApiOperationId":"UpdateDeal","summary":"deals/:id"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_26","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_26"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/update"}},"schemaId":"components/schemas/update"},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La negociación no existe"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}},"schemaId":"schema_24"},{"code":"422","description":"No se pudo procesar el recurso","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_22"}},"schemaId":"schema_22"}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/update","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/update"}}},{"code":"404","schemaId":"schema_24","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}}},{"code":"422","schemaId":"schema_22","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_22"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/deals/updatedeal"}],"panels":[]}]},"httpPath":"/retailers/api/v1/deals/{id}"},{"label":"deals/:id","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/deals/deletedeal","routeSlug":"/apis/deals/deletedeal","metadata":{"seo":{"title":"deals/:id","description":"Elimina una negociación"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteDeal","name":"deals/:id","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"deals/:id","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Elimina una negociación"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_27","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID de la negociación"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/retailers/api/v1/deals/{id}","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":93390836,"schemaId":"schema_27"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","404","422"],"pointer":"/retailers/api/v1/deals/{id}","href":"deals/deletedeal","openApiOperationId":"deleteDeal","summary":"deals/:id"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_28"}},"schemaId":"schema_28"},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"negociación no existe"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}},"schemaId":"schema_24"},{"code":"422","description":"Error al procesar el recurso","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_29"}},"schemaId":"schema_29"}],"pointer":"/paths/~1retailers~1api~1v1~1deals~1{id}/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_28","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_28"}}},{"code":"404","schemaId":"schema_24","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_24"}}},{"code":"422","schemaId":"schema_29","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_29"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/deals/deletedeal"}],"panels":[]}]},"httpPath":"/retailers/api/v1/deals/{id}"}],"content":{"contentType":"group","meta":{"name":"Deals"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Deals","showPageActions":true},{"nodeType":"markdoc","content":"En Mercately, los embudos permiten visualizar el recorrido que sigues a tus clientes a traves de las negociaciones."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/deals","summary":"Obtener deals","prefix":{"name":"get","color":"get"},"badges":[],"link":"/deals/listdeal","deprecated":false},{"title":"/retailers/api/v1/deals","summary":"Create deal","prefix":{"name":"post","color":"post"},"badges":[],"link":"/deals/createdeal","deprecated":false},{"title":"/retailers/api/v1/deals/{id}","summary":"deals/:id","prefix":{"name":"get","color":"get"},"badges":[],"link":"/deals/getdeal","deprecated":false},{"title":"/retailers/api/v1/deals/{id}","summary":"deals/:id","prefix":{"name":"put","color":"put"},"badges":[],"link":"/deals/updatedeal","deprecated":false},{"title":"/retailers/api/v1/deals/{id}","summary":"deals/:id","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/deals/deletedeal","deprecated":false}]}]}]}]}},{"type":"group","label":"Messenger","link":"/apis/messenger","routeSlug":"/apis/messenger","items":[{"label":"Messenger conversations","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/messenger/messengerclients","routeSlug":"/apis/messenger/messengerclients","metadata":{"seo":{"title":"Messenger conversations","description":"Obtén los clients que te han escrito por messenger"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"messengerClients","name":"Messenger conversations","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1messenger_conversations/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Messenger conversations","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los clients que te han escrito por messenger"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_30"}},"schemaId":"schema_30","pointer":"/paths/~1retailers~1api~1v1~1messenger_conversations/get/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/messenger_conversations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_30"}},"responseCodes":["200","400"],"pointer":"/retailers/api/v1/messenger_conversations","href":"messenger/messengerclients","openApiOperationId":"messengerClients","summary":"Messenger conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_30","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_30"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_31"}},"schemaId":"schema_31"},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1messenger_conversations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_31","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_31"}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/messenger/messengerclients"}],"panels":[]}]},"httpPath":"/retailers/api/v1/messenger_conversations"}],"content":{"contentType":"group","meta":{"name":"Messenger"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Messenger","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En Mercately, una vez vinculado con Messenger, este api permite realizar múltiples operaciones para acceder a las conversaciones de Messenger."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/messenger_conversations","summary":"Messenger conversations","prefix":{"name":"get","color":"get"},"badges":[],"link":"/messenger/messengerclients","deprecated":false}]}]}]}]}},{"type":"group","label":"WhatsApp","link":"/apis/whatsapp","routeSlug":"/apis/whatsapp","items":[{"label":"Send WhatsApp Message for WhatsApp Business API","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp/sendwhatsappapi","routeSlug":"/apis/whatsapp/sendwhatsappapi","metadata":{"seo":{"title":"Send WhatsApp Message for WhatsApp Business API","description":"Para enviar un mensaje de WhatsApp cuando se tiene una conexión oficial al API de WhatsApp, sólo se requieren los parámetros phone_number, internal_id y template_params; los demás son opcionales. Si se tiene una conexión vía QR, por favor revisa la sección de envío de mensajes vía QR."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"sendWhatsAppApi","name":"Send WhatsApp Message for WhatsApp Business API","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_notification_by_id/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send WhatsApp Message for WhatsApp Business API","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para enviar un mensaje de WhatsApp cuando se tiene una conexión oficial al API de WhatsApp, sólo se requieren los parámetros phone_number, internal_id y template_params; los demás son opcionales. Si se tiene una conexión vía QR, por favor revisa la sección de envío de mensajes vía QR."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/send_api_message"}},"schemaId":"components/schemas/send_api_message","pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_notification_by_id/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/whatsapp/send_notification_by_id","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/send_api_message"}},"responseCodes":["200","400"],"pointer":"/retailers/api/v1/whatsapp/send_notification_by_id","href":"whatsapp/sendwhatsappapi","openApiOperationId":"sendWhatsAppApi","summary":"Send WhatsApp Message for WhatsApp Business API"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"components/schemas/send_api_message","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/send_api_message"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/whatsapp_api_message"}},"schemaId":"components/schemas/whatsapp_api_message"},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_notification_by_id/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/whatsapp_api_message","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/whatsapp_api_message"}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp/sendwhatsappapi"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp/send_notification_by_id"},{"label":"Send WhatsApp Message for WhatsApp Business QR","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp/sendwhatsappqr","routeSlug":"/apis/whatsapp/sendwhatsappqr","metadata":{"seo":{"title":"Send WhatsApp Message for WhatsApp Business QR","description":"Enviar un mensaje de WhatsApp cuando tienes una conexión oficial por QR. Los únicos parametros requeridos son phone_number y message, el resto de parámetros son opcionales."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"sendWhatsAppQr","name":"Send WhatsApp Message for WhatsApp Business QR","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_message/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send WhatsApp Message for WhatsApp Business QR","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Enviar un mensaje de WhatsApp cuando tienes una conexión oficial por QR. Los únicos parametros requeridos son phone_number y message, el resto de parámetros son opcionales."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/send_qr_message"}},"schemaId":"components/schemas/send_qr_message","pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_message/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/whatsapp/send_message","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/send_qr_message"}},"responseCodes":["200","400","404","422","500"],"pointer":"/retailers/api/v1/whatsapp/send_message","href":"whatsapp/sendwhatsappqr","openApiOperationId":"sendWhatsAppQr","summary":"Send WhatsApp Message for WhatsApp Business QR"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"components/schemas/send_qr_message","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/send_qr_message"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/whatsapp_api_message"}},"schemaId":"components/schemas/whatsapp_api_message"},{"code":"400","description":"Bad Request"},{"code":"404","description":"Customer not found"},{"code":"422","description":"Unprocessable Entity"},{"code":"500","description":"Internal Server Error"}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp~1send_message/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/whatsapp_api_message","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/whatsapp_api_message"}}},{"code":"400"},{"code":"404"},{"code":"422"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp/sendwhatsappqr"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp/send_message"}],"content":{"contentType":"group","meta":{"name":"WhatsApp"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"WhatsApp","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En Mercately, una vez vinculado con WhatsApp, este api permite realizar múltiples operaciones para acceder a las conversaciones de WhatsApp y enviar mensajes."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/whatsapp/send_notification_by_id","summary":"Send WhatsApp Message for WhatsApp Business API","prefix":{"name":"post","color":"post"},"badges":[],"link":"/whatsapp/sendwhatsappapi","deprecated":false},{"title":"/retailers/api/v1/whatsapp/send_message","summary":"Send WhatsApp Message for WhatsApp Business QR","prefix":{"name":"post","color":"post"},"badges":[],"link":"/whatsapp/sendwhatsappqr","deprecated":false}]}]}]}]}},{"type":"group","label":"WhatsApp Templates","link":"/apis/whatsapp-templates","routeSlug":"/apis/whatsapp-templates","items":[{"label":"WhatsApp Business Api Templates","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp-templates/whatsapptemplates","routeSlug":"/apis/whatsapp-templates/whatsapptemplates","metadata":{"seo":{"title":"WhatsApp Business Api Templates","description":"Obtén los templates/plantillas creadas en WhatsApp Business API"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"whatsappTemplates","name":"WhatsApp Business Api Templates","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/get","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"WhatsApp Business Api Templates","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los templates/plantillas creadas en WhatsApp Business API"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_32"}},"schemaId":"schema_32","pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/get/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/whatsapp_templates","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_32"}},"responseCodes":["200","400"],"pointer":"/retailers/api/v1/whatsapp_templates","href":"whatsapp-templates/whatsapptemplates","openApiOperationId":"whatsappTemplates","summary":"WhatsApp Business Api Templates"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_32","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_32"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}},"schemaId":"schema_33"},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_33","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp-templates/whatsapptemplates"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp_templates"},{"label":"Create a WhatsApp template","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp-templates/createwhatsapptemplate","routeSlug":"/apis/whatsapp-templates/createwhatsapptemplate","metadata":{"seo":{"title":"Create a WhatsApp template","description":"Crea una plantilla y la envía a Meta para su aprobación. La respuesta indica que fue enviada, no aprobada: consulta el resultado con GET /retailers/api/v1/whatsapp_templates/{id}."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createWhatsappTemplate","name":"Create a WhatsApp template","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a WhatsApp template","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea una plantilla y la envía a Meta para su aprobación. La respuesta indica que fue "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"enviada"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", no aprobada: consulta el resultado con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /retailers/api/v1/whatsapp_templates/{id}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Soporta texto, imagen, video, documento, botones, carrusel, oferta limitada y autenticación (OTP)."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea y consulta las plantillas de WhatsApp (HSM) desde la API. Esta sección explica "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cómo se arma el contenido de una plantilla"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (variables, ejemplos, imágenes, formato) y qué errores devuelve la API cuando una regla no se cumple."},"children":[]}]}]},{"$$mdtype":"Node","type":"blockquote","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Versión actual: texto, imagen, video y documento; botones de respuesta rápida y de llamado a la acción; "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"carrusel"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"oferta limitada"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; plantillas de "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"autenticación (código OTP)"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; y soporte para cuentas con varios números de WhatsApp. La ubicación ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"location"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") aún no está disponible por API."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/autenticacion-de-las-peticiones","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/autenticacion-de-las-peticiones"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Autenticación de las peticiones"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Todas las peticiones llevan el header "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" del retailer."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Caso"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Respuesta"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sin header "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"401"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" desconocida"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"404 Resource not found"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El límite global es de 10 peticiones por segundo por IP."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/endpoints","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/endpoints"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Endpoints"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Método"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ruta"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/retailers/api/v1/whatsapp_templates"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea la plantilla y la envía a Meta para su aprobación"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/retailers/api/v1/whatsapp_templates/:id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Consulta una plantilla en "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cualquier"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" estado. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":":id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" numérico o el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internal_id"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/retailers/api/v1/whatsapp_templates"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista solo las plantillas "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accepted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"disabled"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (las utilizables para enviar)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/retailers/api/v1/whatsapp_templates/integrations"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista los números de WhatsApp con los que se pueden crear plantillas (cuentas con varios números)"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La creación es asíncrona de cara a Meta: la respuesta indica que la plantilla fue "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"enviada"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", no aprobada. Consulta el resultado con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /whatsapp_templates/:id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/campos-del-post","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/campos-del-post"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campos del "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"name"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la plantilla. Se normaliza: minúsculas, espacios → "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y solo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"a-z"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0-9"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Único por retailer (sin distinguir mayúsculas). Máx. 512"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"spanish"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"english"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (también se aceptan "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"es_ES"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"en_US"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"category"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MARKETING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UTILITY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (ver Autenticación)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí (salvo autenticación)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"carousel"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí (salvo autenticación)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cuerpo del mensaje (en un carrusel, el texto principal sobre las tarjetas). Máx. 1024 caracteres sin contar las variables"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí, si "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" tiene variables"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un valor de ejemplo por variable, en orden"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Encabezado de texto. Solo con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type: text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Máx. 60 caracteres, sin HTML"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" pública del archivo (ver Imágenes, video y documentos). No se permite en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista de botones (ver Botones). No va en carruseles ni con una oferta"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Oferta limitada (ver Oferta limitada)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards_media_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"carousel"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tarjetas y tipo de media común (ver Carrusel)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"add_security_recommendation"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_expiry_minutes"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_example"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Opciones del código (ver Autenticación)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"team_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Equipo del retailer al que se asigna la plantilla"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo si hay más de un número activo"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de WhatsApp con el que se crea (ver Varios números)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_platform"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo para confirmar la plataforma de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; se deduce sola"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/variables-en-el-texto","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/variables-en-el-texto"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Variables en el texto"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Las variables son los huecos que se rellenan al enviar el mensaje (nombre del cliente, número de pedido…)."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sintaxis: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{2}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{3}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"… — número entero mayor que 0 entre dobles llaves."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Deben ser "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"correlativas desde "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no repetirse"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}} … {{3}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (salta el 2) o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}} … {{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" se rechazan."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El texto "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no puede empezar ni terminar con una variable"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (regla de Meta): "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Hola {{1}}, gracias"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es válido; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}} gracias"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" no."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No se permiten nombres: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{nombre}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es inválido."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/ejemplos-obligatorios","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/ejemplos-obligatorios"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplos obligatorios"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Meta revisa la plantilla con valores de muestra. Envía en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"un valor por variable, en el mismo orden"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", sin vacíos:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n  \"body_examples\": [\"Ana\", \"ORD-1042\"]\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n  \"body_examples\": [\"Ana\", \"ORD-1042\"]\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mercately construye el ejemplo que ve Meta reemplazando cada variable: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Hola [Ana], tu pedido [ORD-1042] va en camino"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Estos valores "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"solo sirven para la revisión"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; los valores reales se indican al enviar el mensaje ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_params"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si el texto no tiene variables, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" debe omitirse o ir vacío."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/que-se-guarda-y-que-ves-en-get","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/que-se-guarda-y-que-ves-en-get"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Qué se guarda y qué ves en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Al ser aprobada, Mercately guarda internamente el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con cada "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{n}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" convertido en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"*"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y escapa los "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"*"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" literales como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\\*"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Por eso, en una plantilla "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accepted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" se ve así: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Hola *, tu pedido * va en camino"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para no tener que interpretar eso, las respuestas incluyen "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": el mismo texto con las variables restauradas como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{2}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"… y los asteriscos de formato ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"*negrita*"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") como los escribiste. "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usa "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" para leer el contenido de una plantilla"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" se conserva solo por compatibilidad con el listado existente. En plantillas aún no aprobadas, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" coinciden."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/formato-del-texto","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/formato-del-texto"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Formato del texto"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"WhatsApp admite formato con marcas dentro de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Marca"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resultado"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"*texto*"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"negrita"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_texto_"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"em","inline":true,"attributes":{"marker":"*"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cursiva"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"~texto~"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"s","inline":true,"attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"tachado"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"`texto`"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"monoespaciado"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El texto se envía tal cual a Meta, que valida el formato. Evita HTML."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/encabezado-(header)","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/encabezado-(header)"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Encabezado (header)"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Una plantilla tiene "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"un solo encabezado"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Encabezado"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Opcional: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (máx. 60, "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no admite variables"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", sin HTML)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La imagen indicada en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El video indicado en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El PDF indicado en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" no se permite junto a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/imagenes-video-y-documentos","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/imagenes-video-y-documentos"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Imágenes, video y documentos"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para incrustar un archivo en la plantilla indica su URL en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Mercately lo "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"descarga"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", lo sube al proveedor de WhatsApp y usa esa referencia como ejemplo de cabecera en la revisión de Meta."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tipo"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Formato"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tamaño máximo"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"JPG, PNG"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"5 MB"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"MP4"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"16 MB"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"PDF"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"40 MB"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Requisitos de la URL:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Debe ser "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (puerto 443), sin usuario ni contraseña, y accesible públicamente "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"sin autenticación"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El tipo se valida por el "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"contenido real del archivo"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", no por la extensión ni por el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Se siguen hasta 3 redirecciones, cada una debe ser "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y pública."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Por seguridad se rechazan direcciones privadas, locales o de infraestructura interna."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La descarga tiene tiempos de espera cortos: el servidor debe responder en pocos segundos."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El archivo "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no se almacena"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" en Mercately: se usa solo durante la creación."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/botones","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/botones"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Botones"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Una plantilla puede llevar "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"botones de respuesta rápida"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"botones de llamado a la acción"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", pero "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no ambos a la vez"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". No envíes "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"interactive_action"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": se deduce de los botones ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"quick_reply"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"call_to_action"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") y, si lo envías, se rechaza."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cada botón es un objeto con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" en "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"mayúsculas"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y un "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" de "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"máx. 20 caracteres"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Los textos no pueden repetirse (sin distinguir mayúsculas). Un botón solo admite los campos de su tipo; cualquier otro se rechaza con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unknown_field"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campos"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Límite"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hasta 3 botones"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (solo si la URL es dinámica)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hasta 1 por plantilla"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"phone_number"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hasta 1 por plantilla"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Los botones "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" pueden combinarse entre sí (máx. 2 en total). No se pueden mezclar con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/telefono","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/telefono"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"phone_number"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" va en formato internacional con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"+"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y sin espacios: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"+573001234567"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/url-estatica-y-dinamica","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/url-estatica-y-dinamica"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL estática y dinámica"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estática"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": una URL completa "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"http(s)://…"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", sin variables y "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"sin"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dinámica"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": la URL "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"termina en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (la única variable permitida, y solo al final). Se completa al enviar el mensaje. Exige "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"una URL completa de muestra"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" que empiece igual que la parte fija:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"type\": \"URL\",\n  \"text\": \"Rastrear pedido\",\n  \"url\": \"https://tienda.com/track/{{1}}\",\n  \"example\": [\"https://tienda.com/track/ORD-1042\"]\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"type\": \"URL\",\n  \"text\": \"Rastrear pedido\",\n  \"url\": \"https://tienda.com/track/{{1}}\",\n  \"example\": [\"https://tienda.com/track/ORD-1042\"]\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" también puede enviarse como texto simple. La URL admite hasta 2000 caracteres."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/carrusel","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/carrusel"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Carrusel"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un carrusel es un mensaje principal ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") con "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"2 a 10 tarjetas"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" deslizables. Se crea con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type: \"carousel\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje principal sobre las tarjetas, con las mismas reglas de variables que cualquier cuerpo"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards_media_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": es el mismo tipo en "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"todas"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" las tarjetas"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista de 2 a 10 tarjetas"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cada tarjeta es un objeto con estos campos (cualquier otro se rechaza con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unknown_field"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"):"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo de la tarjeta"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Texto de la tarjeta, máx. "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"160"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" caracteres, con las mismas reglas de variables ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{2}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"…, correlativas y sin empezar ni terminar en variable)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" tiene variables"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un ejemplo por variable de "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"esa"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" tarjeta"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" del archivo de la tarjeta (mismas reglas, formatos y tamaños que los archivos)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 o 2"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" botones ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), texto de hasta "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"25"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" caracteres"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Reglas del conjunto:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Todas las tarjetas deben tener "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"los mismos tipos de botón en el mismo orden"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (si la primera lleva "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", todas llevan "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"); los textos y las URL pueden diferir. Si no, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[n].buttons / mismatch"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En un carrusel los botones pueden mezclarse (por ejemplo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" + "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), a diferencia de una plantilla normal."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El carrusel no admite "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ni "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" en el nivel principal."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Los errores indican la tarjeta: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[1].body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[0].media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[2].buttons[0].text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"…"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"name\": \"coleccion_octubre\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"carousel\",\n  \"text\": \"Hola {{1}}, mira nuestra colección\", \"body_examples\": [\"Ana\"],\n  \"cards_media_type\": \"image\",\n  \"cards\": [\n    { \"body\": \"Camisa azul\", \"media_url\": \"https://cdn.mitienda.com/azul.png\",\n      \"buttons\": [{ \"type\": \"URL\", \"text\": \"Comprar\", \"url\": \"https://tienda.com/azul\" }] },\n    { \"body\": \"Pantalón {{1}} nuevo\", \"body_examples\": [\"rojo\"], \"media_url\": \"https://cdn.mitienda.com/rojo.png\",\n      \"buttons\": [{ \"type\": \"URL\", \"text\": \"Comprar\", \"url\": \"https://tienda.com/rojo\" }] }\n  ]\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"name\": \"coleccion_octubre\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"carousel\",\n  \"text\": \"Hola {{1}}, mira nuestra colección\", \"body_examples\": [\"Ana\"],\n  \"cards_media_type\": \"image\",\n  \"cards\": [\n    { \"body\": \"Camisa azul\", \"media_url\": \"https://cdn.mitienda.com/azul.png\",\n      \"buttons\": [{ \"type\": \"URL\", \"text\": \"Comprar\", \"url\": \"https://tienda.com/azul\" }] },\n    { \"body\": \"Pantalón {{1}} nuevo\", \"body_examples\": [\"rojo\"], \"media_url\": \"https://cdn.mitienda.com/rojo.png\",\n      \"buttons\": [{ \"type\": \"URL\", \"text\": \"Comprar\", \"url\": \"https://tienda.com/rojo\" }] }\n  ]\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/oferta-limitada","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/oferta-limitada"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Oferta limitada"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Una "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"oferta limitada"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es una plantilla de marketing con un encabezado de oferta (por ejemplo «Solo hoy»), un botón para ir a la tienda y, opcionalmente, una cuenta regresiva con un código de cupón."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Requisitos: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"category: \"MARKETING\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (con su "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") y el objeto "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" se envía "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": la oferta define los suyos."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"title"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Título de la oferta, máx. "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"16"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" caracteres"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Botón "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{ \"text\", \"url\", \"example\" }"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", con las mismas reglas que un botón "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (estática o dinámica con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" al final y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in_minutes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Duración de la oferta en minutos desde el envío, entero ≥ 1. Activa la cuenta regresiva"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si hay "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in_minutes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código de cupón de ejemplo que se copia con el botón. No se permite sin expiración"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_button_text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Texto del botón de copiar (máx. 25). Por defecto «Copiar código de oferta» / «Copy offer code»"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"name\": \"oferta_viernes\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"image\",\n  \"media_url\": \"https://cdn.mitienda.com/oferta.png\",\n  \"text\": \"Hola {{1}}, solo por hoy tenemos un descuento para ti\", \"body_examples\": [\"Ana\"],\n  \"offer\": {\n    \"title\": \"Solo hoy\",\n    \"url\": { \"text\": \"Comprar\", \"url\": \"https://tienda.com/oferta\" },\n    \"expires_in_minutes\": 120,\n    \"code\": \"VIP10\"\n  }\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"name\": \"oferta_viernes\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"image\",\n  \"media_url\": \"https://cdn.mitienda.com/oferta.png\",\n  \"text\": \"Hola {{1}}, solo por hoy tenemos un descuento para ti\", \"body_examples\": [\"Ana\"],\n  \"offer\": {\n    \"title\": \"Solo hoy\",\n    \"url\": { \"text\": \"Comprar\", \"url\": \"https://tienda.com/oferta\" },\n    \"expires_in_minutes\": 120,\n    \"code\": \"VIP10\"\n  }\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"blockquote","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in_minutes"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" se cuenta desde el momento en que Mercately envía la plantilla al proveedor."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/plantillas-de-autenticacion-(codigo-otp)","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/plantillas-de-autenticacion-(codigo-otp)"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plantillas de autenticación (código OTP)"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"category: \"AUTHENTICATION\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" la plantilla sirve para enviar códigos de verificación. "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mercately genera el texto y el botón"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", igual que la pantalla de creación: no envíes "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ni "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (se rechazan con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"name"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"category"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sí"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"spanish"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"english"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si se envía, debe ser "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_example"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código de muestra que aparece en el texto (por defecto "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"123456"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), máx. 30"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"add_security_recommendation"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" agrega «Por tu seguridad, no lo compartas.» (en inglés: «For your security, do not share this code.»)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_expiry_minutes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Entero de 1 a 90. Agrega «Este código caduca en N minutos.» (en inglés: «This code expires in N minutes.»)"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El texto resultante en español, con ambas opciones, es:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"Tu código de verificación es: 123456\nPor tu seguridad, no lo compartas.\nEste código caduca en 10 minutos.\n"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"Tu código de verificación es: 123456\nPor tu seguridad, no lo compartas.\nEste código caduca en 10 minutos.\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"y el botón es "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Copiar código"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Copy code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" en inglés), de tipo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"OTP / COPY_CODE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Puedes leer ambos en la respuesta ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{ \"name\": \"codigo_login\", \"language\": \"spanish\", \"category\": \"AUTHENTICATION\",\n  \"add_security_recommendation\": true, \"code_expiry_minutes\": 10 }\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{ \"name\": \"codigo_login\", \"language\": \"spanish\", \"category\": \"AUTHENTICATION\",\n  \"add_security_recommendation\": true, \"code_expiry_minutes\": 10 }\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/cuentas-con-varios-numeros-de-whatsapp","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/cuentas-con-varios-numeros-de-whatsapp"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cuentas con varios números de WhatsApp"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si la cuenta tiene varios números, cada plantilla se crea para "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"uno"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" de ellos."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Consulta los disponibles: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /retailers/api/v1/whatsapp_templates/integrations"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Devuelve solo los activos y compatibles con plantillas, con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"platform"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"name"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"phone_number"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Envía el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" elegido como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" al crear la plantilla. La plataforma se deduce sola."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{ \"integrations\": [ { \"id\": \"int-1\", \"platform\": \"whatsapp_gupshup_messages\", \"name\": \"Ventas\", \"phone_number\": \"+573001234567\", \"status\": \"active\" } ] }\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{ \"integrations\": [ { \"id\": \"int-1\", \"platform\": \"whatsapp_gupshup_messages\", \"name\": \"Ventas\", \"phone_number\": \"+573001234567\", \"status\": \"active\" } ] }\n"},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si solo hay "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"un"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" número activo, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es opcional y se usa ese."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si hay "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"varios"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y no lo envías, la API responde "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"422 integration_id / required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y lista los ids disponibles."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En cuentas con un solo número, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no aplica"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y se rechaza con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_applicable"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Una plantilla pertenece al número con el que se creó: no se comparte entre números."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/ciclo-de-vida-de-una-plantilla","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/ciclo-de-vida-de-una-plantilla"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ciclo de vida de una plantilla"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"POST → submitted → accepted        (Meta la aprobó: ya se puede usar para enviar)\n                 → rejected        (Meta la rechazó: ver `reason`)\naccepted ↔ disabled\n"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"POST → submitted → accepted        (Meta la aprobó: ya se puede usar para enviar)\n                 → rejected        (Meta la rechazó: ver `reason`)\naccepted ↔ disabled\n"},"children":[]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Significado"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pending"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creada, aún sin enviar a Meta"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"submitted"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Enviada a Meta, a la espera de aprobación"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accepted"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Aprobada. Aparece en el listado y se puede usar en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"send_notification_by_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con su "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internal_id"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"rejected"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Rechazada. El motivo está en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"reason"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"disabled"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Desactivada"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"deleted"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Eliminada"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para saber cuándo se aprueba, consulta periódicamente "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /whatsapp_templates/:id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (por ejemplo cada minuto; Meta suele resolver en minutos u horas)."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/respuestas","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/respuestas"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Respuestas"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Éxito ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"201"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"template\": {\n    \"id\": 1234,\n    \"internal_id\": \"7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11\",\n    \"name\": \"order_update\",\n    \"status\": \"submitted\",\n    \"category\": \"UTILITY\",\n    \"language\": \"spanish\",\n    \"template_type\": \"text\",\n    \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"body\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"header_text\": \"Tu pedido\",\n    \"reason\": null,\n    \"created_at\": \"2026-10-07T12:40:37.636Z\"\n  }\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"template\": {\n    \"id\": 1234,\n    \"internal_id\": \"7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11\",\n    \"name\": \"order_update\",\n    \"status\": \"submitted\",\n    \"category\": \"UTILITY\",\n    \"language\": \"spanish\",\n    \"template_type\": \"text\",\n    \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"body\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"header_text\": \"Tu pedido\",\n    \"reason\": null,\n    \"created_at\": \"2026-10-07T12:40:37.636Z\"\n  }\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es estable desde el primer momento. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internal_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es el identificador de Meta/proveedor y puede ser "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" mientras la plantilla está "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pending"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Error"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"message\": \"Template could not be created\",\n  \"errors\": [\n    { \"field\": \"text\", \"code\": \"variables_not_sequential\", \"detail\": \"variables must be sequential starting at {{1}}\" }\n  ]\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"message\": \"Template could not be created\",\n  \"errors\": [\n    { \"field\": \"text\", \"code\": \"variables_not_sequential\", \"detail\": \"variables must be sequential starting at {{1}}\" }\n  ]\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cuando Meta rechaza la plantilla se responde "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"422"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code: provider_rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", el motivo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"detail"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y la plantilla guardada en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status: rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/recetas","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/recetas"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Recetas"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/solo-texto-con-variables-y-encabezado","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/solo-texto-con-variables-y-encabezado"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo texto con variables y encabezado"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"order_update\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"text\",\n    \"header_text\": \"Tu pedido\",\n    \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"body_examples\": [\"Ana\", \"ORD-1042\"]\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"order_update\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"text\",\n    \"header_text\": \"Tu pedido\",\n    \"text\": \"Hola {{1}}, tu pedido {{2}} va en camino\",\n    \"body_examples\": [\"Ana\", \"ORD-1042\"]\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/plantilla-con-imagen","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/plantilla-con-imagen"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plantilla con imagen"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"promo_octubre\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"image\",\n    \"media_url\": \"https://cdn.mitienda.com/promos/octubre.png\",\n    \"text\": \"Hola {{1}}, tenemos una promo para ti: *20% de descuento* hasta el viernes\",\n    \"body_examples\": [\"Ana\"]\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"promo_octubre\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"image\",\n    \"media_url\": \"https://cdn.mitienda.com/promos/octubre.png\",\n    \"text\": \"Hola {{1}}, tenemos una promo para ti: *20% de descuento* hasta el viernes\",\n    \"body_examples\": [\"Ana\"]\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/plantilla-con-documento-pdf","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/plantilla-con-documento-pdf"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plantilla con documento PDF"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"catalogo_2026\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"document\",\n    \"media_url\": \"https://cdn.mitienda.com/catalogo.pdf\",\n    \"text\": \"Hola, aquí tienes nuestro catálogo actualizado\"\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"catalogo_2026\", \"language\": \"spanish\", \"category\": \"MARKETING\", \"template_type\": \"document\",\n    \"media_url\": \"https://cdn.mitienda.com/catalogo.pdf\",\n    \"text\": \"Hola, aquí tienes nuestro catálogo actualizado\"\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/quick-replies","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/quick-replies"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Quick replies"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"confirmar_cita\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"text\",\n    \"text\": \"Hola {{1}}, ¿confirmas tu cita del {{2}}?\",\n    \"body_examples\": [\"Ana\", \"viernes 10 de octubre\"],\n    \"buttons\": [\n      { \"type\": \"QUICK_REPLY\", \"text\": \"Sí, confirmo\" },\n      { \"type\": \"QUICK_REPLY\", \"text\": \"Reprogramar\" }\n    ]\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"confirmar_cita\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"text\",\n    \"text\": \"Hola {{1}}, ¿confirmas tu cita del {{2}}?\",\n    \"body_examples\": [\"Ana\", \"viernes 10 de octubre\"],\n    \"buttons\": [\n      { \"type\": \"QUICK_REPLY\", \"text\": \"Sí, confirmo\" },\n      { \"type\": \"QUICK_REPLY\", \"text\": \"Reprogramar\" }\n    ]\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/imagen-con-url-dinamica-y-boton-de-llamada","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/imagen-con-url-dinamica-y-boton-de-llamada"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Imagen con URL dinámica y botón de llamada"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"pedido_enviado\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"image\",\n    \"media_url\": \"https://cdn.mitienda.com/envio.png\",\n    \"text\": \"Hola {{1}}, tu pedido salió hoy\",\n    \"body_examples\": [\"Ana\"],\n    \"integration_id\": \"int-1\",\n    \"buttons\": [\n      { \"type\": \"URL\", \"text\": \"Rastrear\", \"url\": \"https://tienda.com/track/{{1}}\",\n        \"example\": [\"https://tienda.com/track/ORD-1042\"] },\n      { \"type\": \"PHONE_NUMBER\", \"text\": \"Llámanos\", \"phone_number\": \"+573001234567\" }\n    ]\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X POST https://app.mercately.com/retailers/api/v1/whatsapp_templates \\\n  -H \"Api-Key: $API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"pedido_enviado\", \"language\": \"spanish\", \"category\": \"UTILITY\", \"template_type\": \"image\",\n    \"media_url\": \"https://cdn.mitienda.com/envio.png\",\n    \"text\": \"Hola {{1}}, tu pedido salió hoy\",\n    \"body_examples\": [\"Ana\"],\n    \"integration_id\": \"int-1\",\n    \"buttons\": [\n      { \"type\": \"URL\", \"text\": \"Rastrear\", \"url\": \"https://tienda.com/track/{{1}}\",\n        \"example\": [\"https://tienda.com/track/ORD-1042\"] },\n      { \"type\": \"PHONE_NUMBER\", \"text\": \"Llámanos\", \"phone_number\": \"+573001234567\" }\n    ]\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"whatsapp-templates/createwhatsapptemplate/request/consultar-el-estado","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/consultar-el-estado"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Consultar el estado"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl https://app.mercately.com/retailers/api/v1/whatsapp_templates/7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11 \\\n  -H \"Api-Key: $API_KEY\"\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl https://app.mercately.com/retailers/api/v1/whatsapp_templates/7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11 \\\n  -H \"Api-Key: $API_KEY\"\n"},"children":[]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/campos-aun-no-soportados","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/campos-aun-no-soportados"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campos aún no soportados"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estos campos se "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"rechazan"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"422"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code: field_not_supported"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (no se ignoran en silencio): "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"interactive_action"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (se deduce de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"footer"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Además, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type: location"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" responde "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_supported_yet"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": la creación de plantillas de ubicación aún no está disponible por API."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"whatsapp-templates/createwhatsapptemplate/request/catalogo-de-errores","deepLinkHash":"/whatsapp-templates/createwhatsapptemplate#whatsapp-templates/createwhatsapptemplate/request/catalogo-de-errores"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Catálogo de errores"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"field"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Qué hacer"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cualquiera"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Falta un campo obligatorio"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"name"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El nombre debe tener letras o números y máx. 512 caracteres"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"name"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"(mensaje del modelo)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ya existe una plantilla con ese nombre"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"category"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usa uno de los valores permitidos"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_supported_yet"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"location"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" aún no está disponible por API"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Máx. 1024 caracteres sin contar variables"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variables_invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usa "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{2}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"… (solo enteros)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variables_repeated"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No repitas una variable"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variables_not_sequential"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Numera desde "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" sin saltos"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variable_at_edge"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El texto no puede empezar ni terminar con variable"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mismatch"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un ejemplo no vacío por variable"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unexpected"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Quita los ejemplos si no hay variables"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"header_text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Máx. 60, sin HTML, solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatoria en image/video/document; no en text"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Usa una URL "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" válida, sin credenciales"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"blocked_host"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La URL debe apuntar a un servidor público"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_many_redirects"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Reduce las redirecciones"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"413"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file_too_large"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El archivo supera el máximo de su tipo"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"415"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unsupported_media_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Formato no permitido para ese tipo"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"502"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"download_failed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No se pudo descargar el archivo; revisa que sea público"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"504"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"download_timeout"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El servidor del archivo tardó demasiado"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"team_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El equipo no pertenece al retailer"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Debe ser una lista de objetos"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mixed_types"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No mezcles "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_many"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Máx. 3 quick replies o 2 botones de llamado a la acción"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"duplicate_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo un botón "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y uno "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"duplicate_text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Los textos de los botones deben ser únicos"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n]"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unknown_field"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El botón trae un campo que no corresponde a su tipo"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n].type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" en mayúsculas"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n].text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio, máx. 20 caracteres"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n].url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"http(s)"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" válida; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" solo al final; máx. 2000"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n].example"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mismatch"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La URL dinámica exige un ejemplo completo; la estática no lleva "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons[n].phone_number"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Formato internacional, p. ej. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"+573001234567"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_few"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_many"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un carrusel necesita de 2 a 10 tarjetas (lista de objetos)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[n]"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unknown_field"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La tarjeta trae un campo no permitido (solo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body_examples"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[n].body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".body_examples"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"(reglas de variables)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mismas reglas que el cuerpo, con máx. 160 caracteres"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[n].media_url"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Toda tarjeta lleva su archivo (también "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"download_failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unsupported_media_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file_too_large"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"… indicando la tarjeta)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards[n].buttons"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_many"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mismatch"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 o 2 botones, con los mismos tipos que la primera tarjeta"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cards_media_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", solo en carruseles"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"requires_marketing"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unknown_field"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La oferta es solo de marketing, no va con carrusel y es un objeto con sus claves"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid_for_offer"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Una oferta necesita "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.title"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio, máx. 16 caracteres"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"…"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"(reglas de botón URL)"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Se reporta como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.url.text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.url.url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.url.example"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.expires_in_minutes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Entero de al menos 1"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.code"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio si la oferta expira; no se permite sin expiración"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"offer.code_button_text"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Máx. 25 y solo con expiración"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"…"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_allowed"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" esos campos los genera Mercately"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_expiry_minutes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Entero de 1 a 90"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code_example"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"too_long"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Texto no vacío, máx. 30"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"add_security_recommendation"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hay varios números activos: elige uno"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_found"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_active"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No existe o no está activo para plantillas"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unavailable"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No hay ningún número activo"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_platform"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"not_applicable"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mismatch"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La cuenta tiene un solo número, o la plataforma no coincide"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"502"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integrations"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integrations_unavailable"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No se pudieron consultar los números; reintenta"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cualquiera"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"field_not_supported"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Campo aún no disponible"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"422"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"provider_rejected"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Meta/proveedor rechazó la plantilla; ver "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"detail"},"children":[]}]}]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_34","exampleIds":["paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"]}},"schemaId":"schema_34","exampleIds":["paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/whatsapp_templates","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_34","exampleIds":["paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"]}},"responseCodes":["201","401","404","413","415","422","502","504"],"pointer":"/retailers/api/v1/whatsapp_templates","href":"whatsapp-templates/createwhatsapptemplate","openApiOperationId":"createWhatsappTemplate","summary":"Create a WhatsApp template"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_34","exampleIds":["paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_34","exampleIds":["paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer","paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"]}},"examples":[{},{},{},{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Plantilla creada y enviada a Meta","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_35"}},"schemaId":"schema_35"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Falta el header "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]}]}]}]},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es desconocida"},"children":[]}]}]}]},{"code":"413","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El archivo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" supera el máximo de su tipo ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file_too_large"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"code":"415","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Formato no permitido para ese tipo de media ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unsupported_media_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"code":"422","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Validación fallida. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"errors[].code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" indica la causa ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"invalid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variables_not_sequential"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id / required"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"field_not_supported"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"…). Si Meta rechaza la plantilla, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"provider_rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" trae la plantilla con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status: rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/template_error"}},"schemaId":"components/schemas/template_error"},{"code":"502","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No se pudo descargar el archivo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"media_url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"download_failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]},{"code":"504","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El servidor del archivo tardó demasiado ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"download_timeout"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"schema_35","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_35"}}},{"code":"401"},{"code":"404"},{"code":"413"},{"code":"415"},{"code":"422","schemaId":"components/schemas/template_error","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/template_error"}}},{"code":"502"},{"code":"504"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp-templates/createwhatsapptemplate"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp_templates"},{"label":"List the WhatsApp numbers available to create templates","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp-templates/listwhatsapptemplateintegrations","routeSlug":"/apis/whatsapp-templates/listwhatsapptemplateintegrations","metadata":{"seo":{"title":"List the WhatsApp numbers available to create templates","description":"Devuelve los números de WhatsApp activos y compatibles con plantillas. Es útil en cuentas con varios números:el id elegido se envía como integration_id al crear la plantilla."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listWhatsappTemplateIntegrations","name":"List the WhatsApp numbers available to create templates","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates~1integrations/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List the WhatsApp numbers available to create templates","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Devuelve los números de WhatsApp activos y compatibles con plantillas. Es útil en cuentas con "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"varios números"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" elegido se envía como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" al crear la plantilla."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/whatsapp_templates/integrations","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404","502"],"pointer":"/retailers/api/v1/whatsapp_templates/integrations","href":"whatsapp-templates/listwhatsapptemplateintegrations","openApiOperationId":"listWhatsappTemplateIntegrations","summary":"List the WhatsApp numbers available to create templates"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_36"}},"schemaId":"schema_36"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Falta el header "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]}]}]}]},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es desconocida"},"children":[]}]}]}]},{"code":"502","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No se pudieron consultar los números; reintenta"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates~1integrations/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_36","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_36"}}},{"code":"401"},{"code":"404"},{"code":"502"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp-templates/listwhatsapptemplateintegrations"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp_templates/integrations"},{"label":"Get a WhatsApp template","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/whatsapp-templates/getwhatsapptemplate","routeSlug":"/apis/whatsapp-templates/getwhatsapptemplate","metadata":{"seo":{"title":"Get a WhatsApp template","description":"Consulta una plantilla en cualquier estado (pending, submitted, accepted, rejected, disabled, deleted).Úsalo para saber cuándo Meta aprobó o rechazó una plantilla creada por API."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getWhatsappTemplate","name":"Get a WhatsApp template","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get a WhatsApp template","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Consulta una plantilla en "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"cualquier"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" estado ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pending"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"submitted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accepted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"disabled"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"deleted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Úsalo para saber cuándo Meta aprobó o rechazó una plantilla creada por API."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" numérico o el "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internal_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" de la plantilla."},"children":[]}]}]}],"required":true,"examples":{"numeric":{"value":"1234"},"internal_id":{"value":"7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11"}}}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/whatsapp_templates/{id}","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":"1234","schemaId":"schema_23"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/retailers/api/v1/whatsapp_templates/{id}","href":"whatsapp-templates/getwhatsapptemplate","openApiOperationId":"getWhatsappTemplate","summary":"Get a WhatsApp template"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_35"}},"schemaId":"schema_35"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Falta el header "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]}]}]}]},{"code":"404","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"La "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Api-Key"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es desconocida o la plantilla no existe"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_37"}},"schemaId":"schema_37"}],"pointer":"/paths/~1retailers~1api~1v1~1whatsapp_templates~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_35","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_35"}}},{"code":"401"},{"code":"404","schemaId":"schema_37","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_37"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/whatsapp-templates/getwhatsapptemplate"}],"panels":[]}]},"httpPath":"/retailers/api/v1/whatsapp_templates/{id}"}],"content":{"contentType":"group","meta":{"name":"WhatsApp Templates"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"WhatsApp Templates","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En Mercately, este api permite crear plantillas de WhatsApp, enviarlas a aprobación de Meta y consultar su estado."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/whatsapp_templates","summary":"WhatsApp Business Api Templates","prefix":{"name":"get","color":"get"},"badges":[],"link":"/whatsapp-templates/whatsapptemplates","deprecated":false},{"title":"/retailers/api/v1/whatsapp_templates","summary":"Create a WhatsApp template","prefix":{"name":"post","color":"post"},"badges":[],"link":"/whatsapp-templates/createwhatsapptemplate","deprecated":false},{"title":"/retailers/api/v1/whatsapp_templates/integrations","summary":"List the WhatsApp numbers available to create templates","prefix":{"name":"get","color":"get"},"badges":[],"link":"/whatsapp-templates/listwhatsapptemplateintegrations","deprecated":false},{"title":"/retailers/api/v1/whatsapp_templates/{id}","summary":"Get a WhatsApp template","prefix":{"name":"get","color":"get"},"badges":[],"link":"/whatsapp-templates/getwhatsapptemplate","deprecated":false}]}]}]}]}},{"type":"group","label":"Flows","link":"/apis/flows","routeSlug":"/apis/flows","items":[{"label":"Get all flows","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/flows/flows","routeSlug":"/apis/flows/flows","metadata":{"seo":{"title":"Get all flows","description":"Obtén todos los flows"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"flows","name":"Get all flows","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1flows/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get all flows","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén todos los flows"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de flows"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de flows que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1flows/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/flows","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/retailers/api/v1/flows","href":"flows/flows","openApiOperationId":"flows","summary":"Get all flows"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_flows"}},"schemaId":"components/schemas/get_flows"},{"code":"401","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1flows/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/get_flows","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_flows"}}},{"code":"401"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/flows/flows"}],"panels":[]}]},"httpPath":"/retailers/api/v1/flows"},{"label":"Deactivate flows by platform","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/flows/flow_deactivation","routeSlug":"/apis/flows/flow_deactivation","metadata":{"seo":{"title":"Deactivate flows by platform","description":"Desactiva todos los flows que estén previamente activos por customer y plataforma específica"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"flow_deactivation","name":"Deactivate flows by platform","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1flow_deactivation/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Deactivate flows by platform","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Desactiva todos los flows que estén previamente activos por customer y plataforma específica"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_38"}},"schemaId":"schema_38","pointer":"/paths/~1retailers~1api~1v1~1flow_deactivation/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/flow_deactivation","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_38"}},"responseCodes":["200","400","401","404"],"pointer":"/retailers/api/v1/flow_deactivation","href":"flows/flow_deactivation","openApiOperationId":"flow_deactivation","summary":"Deactivate flows by platform"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_38","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_38"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/deactivate_flows"}},"schemaId":"components/schemas/deactivate_flows"},{"code":"400","description":"Bad Request"},{"code":"401","description":"Unauthorized"},{"code":"404","description":"Not Found"}],"pointer":"/paths/~1retailers~1api~1v1~1flow_deactivation/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/deactivate_flows","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/deactivate_flows"}}},{"code":"400"},{"code":"401"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/flows/flow_deactivation"}],"panels":[]}]},"httpPath":"/retailers/api/v1/flow_deactivation"},{"label":"Pre-activate flow by platform","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/flows/flow_pre_activation","routeSlug":"/apis/flows/flow_pre_activation","metadata":{"seo":{"title":"Pre-activate flow by platform","description":"Pre-activa un flow en específico para un customer y plataforma específica, siempre y cuando el flow esté activo, tenga un paso inicial configurado y la plataforma para dicho flow esté activa. Esta operación solo está habilitada para flows con versión 2. Si deseas usar un flow con versión 1, debes hacer upgrade del mismo."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"flow_pre_activation","name":"Pre-activate flow by platform","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1flow_pre_activation/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Pre-activate flow by platform","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Pre-activa un flow en específico para un customer y plataforma específica, siempre y cuando el flow esté activo, tenga un paso inicial configurado y la plataforma para dicho flow esté activa. Esta operación solo está habilitada para flows con versión 2. Si deseas usar un flow con versión 1, debes hacer upgrade del mismo."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_39"}},"schemaId":"schema_39","pointer":"/paths/~1retailers~1api~1v1~1flow_pre_activation/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/flow_pre_activation","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_39"}},"responseCodes":["200","400","401","404"],"pointer":"/retailers/api/v1/flow_pre_activation","href":"flows/flow_pre_activation","openApiOperationId":"flow_pre_activation","summary":"Pre-activate flow by platform"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_39","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_39"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/pre_activate_flow"}},"schemaId":"components/schemas/pre_activate_flow"},{"code":"400","description":"Bad Request"},{"code":"401","description":"Unauthorized"},{"code":"404","description":"Not Found"}],"pointer":"/paths/~1retailers~1api~1v1~1flow_pre_activation/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/pre_activate_flow","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/pre_activate_flow"}}},{"code":"400"},{"code":"401"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/flows/flow_pre_activation"}],"panels":[]}]},"httpPath":"/retailers/api/v1/flow_pre_activation"}],"content":{"contentType":"group","meta":{"name":"Flows"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Flows","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"En Mercately, una vez creado uno o más flows, esta api permite realizar múltiples operaciones para obtener todos los flows."},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/flows","summary":"Get all flows","prefix":{"name":"get","color":"get"},"badges":[],"link":"/flows/flows","deprecated":false},{"title":"/retailers/api/v1/flow_deactivation","summary":"Deactivate flows by platform","prefix":{"name":"post","color":"post"},"badges":[],"link":"/flows/flow_deactivation","deprecated":false},{"title":"/retailers/api/v1/flow_pre_activation","summary":"Pre-activate flow by platform","prefix":{"name":"post","color":"post"},"badges":[],"link":"/flows/flow_pre_activation","deprecated":false}]}]}]}]}},{"type":"group","label":"Orders","link":"/apis/orders","routeSlug":"/apis/orders","items":[{"label":"Orders","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/orders/orders","routeSlug":"/apis/orders/orders","metadata":{"seo":{"title":"Orders","description":"Obtén los datos de tus órdenes"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"orders","name":"Orders","isWebhook":false,"pointer":"/paths/~1api~1v1~1orders/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Orders","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de tus órdenes"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"created_from","in":"query","schemaId":"schema_40","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"busca las órdenes creadas desde una fecha en especifico"},"children":[]}]}]}]},{"name":"created_to","in":"query","schemaId":"schema_40","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"busca las órdenes creadas hasta una fecha en especifico"},"children":[]}]}]}]},{"name":"page","in":"query","schemaId":"schema_41","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"busca la pagina específica de órdenes"},"children":[]}]}]}]}],"pointer":"/paths/~1api~1v1~1orders/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/orders","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"created_from","in":"query","example":"2023-05-17","schemaId":"schema_40"},{"name":"created_to","in":"query","example":"2023-05-17","schemaId":"schema_40"},{"name":"page","in":"query","schemaId":"schema_41"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","401"],"pointer":"/api/v1/orders","href":"orders/orders","openApiOperationId":"orders","summary":"Orders"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_42","exampleIds":["paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_42","exampleIds":["paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response"]},{"code":"400","description":"Bad Request"},{"code":"401","description":"Unauthorized"}],"pointer":"/paths/~1api~1v1~1orders/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_42","exampleIds":["paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_42","exampleIds":["paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response"]}}},{"code":"400"},{"code":"401"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/orders"}],"panels":[]}]},"httpPath":"/api/v1/orders"},{"label":"Create Order","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/orders/createorder","routeSlug":"/apis/orders/createorder","metadata":{"seo":{"title":"Create Order","description":"Crea una nueva órden, puedes enviar el número de teléfono o email del cliente si ya esta creado en mercately, si no existe, creará el cliente."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createOrder","name":"Create Order","isWebhook":false,"pointer":"/paths/~1api~1v1~1orders/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea una nueva órden, puedes enviar el número de teléfono o email del cliente si ya esta creado en mercately, si no existe, creará el cliente."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_43"}},"schemaId":"schema_43","pointer":"/paths/~1api~1v1~1orders/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/orders","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_43"}},"responseCodes":["201","400","401","422"],"pointer":"/api/v1/orders","href":"orders/createorder","openApiOperationId":"createOrder","summary":"Create Order"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_43","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_43"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Created","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_44","exampleIds":["paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response"]}},"schemaId":"schema_44","exampleIds":["paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response"]},{"code":"400","description":"Bad Request"},{"code":"401","description":"Unauthorized"},{"code":"422","description":"Unprocessable Entity","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45"}},"schemaId":"schema_45"}],"pointer":"/paths/~1api~1v1~1orders/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"schema_44","exampleIds":["paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_44","exampleIds":["paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response"]}}},{"code":"400"},{"code":"401"},{"code":"422","schemaId":"schema_45","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/createorder"}],"panels":[]}]},"httpPath":"/api/v1/orders"},{"label":"Order","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/orders/updateorder","routeSlug":"/apis/orders/updateorder","metadata":{"seo":{"title":"Order","description":"Actualiza una órden buscada su id"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateOrder","name":"Order","isWebhook":false,"pointer":"/paths/~1api~1v1~1orders~1web_id/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza una órden buscada su id"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_46"}},"schemaId":"schema_46","pointer":"/paths/~1api~1v1~1orders~1web_id/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/v1/orders/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_46"}},"responseCodes":["200","400","404"],"pointer":"/api/v1/orders/web_id","href":"orders/updateorder","openApiOperationId":"updateOrder","summary":"Order"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_46","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_46"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response"]},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1api~1v1~1orders~1web_id/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response"]}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/updateorder"}],"panels":[]}]},"httpPath":"/api/v1/orders/web_id"},{"label":"Orders","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/orders/deleteorder","routeSlug":"/apis/orders/deleteorder","metadata":{"seo":{"title":"Orders","description":"Borra una órden"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteOrder","name":"Orders","isWebhook":false,"pointer":"/paths/~1api~1v1~1orders~1web_id/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Orders","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Borra una órden"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/v1/orders/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/api/v1/orders/web_id","href":"orders/deleteorder","openApiOperationId":"deleteOrder","summary":"Orders"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response"]},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1api~1v1~1orders~1web_id/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_23","exampleIds":["paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response"]}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/deleteorder"}],"panels":[]}]},"httpPath":"/api/v1/orders/web_id"}],"content":{"contentType":"group","meta":{"name":"Orders"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Orders","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea, actualiza y elimina órdenes en Mercately"},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/orders","summary":"Orders","prefix":{"name":"get","color":"get"},"badges":[],"link":"/orders/orders","deprecated":false},{"title":"/api/v1/orders","summary":"Create Order","prefix":{"name":"post","color":"post"},"badges":[],"link":"/orders/createorder","deprecated":false},{"title":"/api/v1/orders/web_id","summary":"Order","prefix":{"name":"put","color":"put"},"badges":[],"link":"/orders/updateorder","deprecated":false},{"title":"/api/v1/orders/web_id","summary":"Orders","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/orders/deleteorder","deprecated":false}]}]}]}]}},{"type":"group","label":"Products","link":"/apis/products","routeSlug":"/apis/products","items":[{"label":"Products","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/products/products","routeSlug":"/apis/products/products","metadata":{"seo":{"title":"Products","description":"Obtén los datos de tus productos"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"products","name":"Products","isWebhook":false,"pointer":"/paths/~1api~1v1~1products/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Products","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de tus productos"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_41","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"busca la pagina específica de productos"},"children":[]}]}]}]}],"pointer":"/paths/~1api~1v1~1products/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/products","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_41"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/api/v1/products","href":"products/products","openApiOperationId":"products","summary":"Products"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_47","exampleIds":["paths/~1api~1v1~1products/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_47","exampleIds":["paths/~1api~1v1~1products/get/responses/200/content/application~1json/example"]},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1api~1v1~1products/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_47","exampleIds":["paths/~1api~1v1~1products/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_47","exampleIds":["paths/~1api~1v1~1products/get/responses/200/content/application~1json/example"]}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/products/products"}],"panels":[]}]},"httpPath":"/api/v1/products"},{"label":"Create Product","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/products/paths/~1api~1v1~1products/post","routeSlug":"/apis/products/paths/~1api~1v1~1products/post","metadata":{"seo":{"title":"Create Product","description":"Crea un nuevo producto.Envía máximo 3 opciones."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create Product","isWebhook":false,"pointer":"/paths/~1api~1v1~1products/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Product","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea un nuevo producto."},"children":[]},{"$$mdtype":"Node","type":"hardbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Envía máximo 3 opciones."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"options"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"options\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Talla\", \"values\": [\"SM\", \"LG\", \"XL\", \"MD\"] },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Color\", \"values\": [\"Red\", \"Blue\"] }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para las variantes, combina los valores de las opciones."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variants"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variants\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 12, \"wholesale_price\": 10, \"sku\": \"VAR-001\", \"option1\": \"SM\", \"option2\": \"Red\" },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 14, \"wholesale_price\": 10, \"sku\": \"VAR-002\", \"option1\": \"LG\", \"option2\": \"Red\" },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 25, \"wholesale_price\": 13, \"sku\": \"VAR-003\", \"option1\": \"XL\", \"option2\": \"Blue\" }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operationId: createProduct"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_48"}},"schemaId":"schema_48","pointer":"/paths/~1api~1v1~1products/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/products","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_48"}},"responseCodes":["200","400"],"pointer":"/api/v1/products","href":"products/paths/~1api~1v1~1products/post","summary":"Create Product"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_48","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_48"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products/post/responses/200/content/application~1json/example"]},{"code":"400","description":"Unauthorized"}],"pointer":"/paths/~1api~1v1~1products/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products/post/responses/200/content/application~1json/example"]}}},{"code":"400"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/products/paths/~1api~1v1~1products/post"}],"panels":[]}]},"httpPath":"/api/v1/products"},{"label":"Product","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/products/searchproduct","routeSlug":"/apis/products/searchproduct","metadata":{"seo":{"title":"Product","description":"Obtén los datos de un producto en especifico buscado su id"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"searchProduct","name":"Product","isWebhook":false,"pointer":"/paths/~1api~1v1~1products~1:id_or_sku/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Product","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de un producto en especifico buscado su id"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"web_id","in":"query","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The web_id of the product"},"children":[]}]}]}]},{"name":"sku","in":"query","schemaId":"schema_23","description":"The SKU of the product"}],"pointer":"/paths/~1api~1v1~1products~1:id_or_sku/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/products/:id_or_sku","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"web_id","in":"query","required":false,"schemaId":"schema_23"},{"name":"sku","in":"query","required":false,"schemaId":"schema_23"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/api/v1/products/:id_or_sku","href":"products/searchproduct","openApiOperationId":"searchProduct","summary":"Product"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example"]},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1api~1v1~1products~1:id_or_sku/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example"]}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/products/searchproduct"}],"panels":[]}]},"httpPath":"/api/v1/products/:id_or_sku"},{"label":"Product","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/products/paths/~1api~1v1~1products~1web_id/put","routeSlug":"/apis/products/paths/~1api~1v1~1products~1web_id/put","metadata":{"seo":{"title":"Product","description":"Actualiza un producto buscado su id.Envía máximo 3 opciones."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Product","isWebhook":false,"pointer":"/paths/~1api~1v1~1products~1web_id/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Product","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza un producto buscado su id."},"children":[]},{"$$mdtype":"Node","type":"hardbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Envía máximo 3 opciones."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"products/paths/~1api~1v1~1products~1web_id/put/request/comportamiento-de-actualizacion-parcial","deepLinkHash":"/products/paths/~1api~1v1~1products~1web_id/put#products/paths/~1api~1v1~1products~1web_id/put/request/comportamiento-de-actualizacion-parcial"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Comportamiento de actualización parcial"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Este endpoint soporta "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"actualizaciones parciales"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (partial updates):"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no envías"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" los keys "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"options\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ni "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"variants\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", las variantes existentes "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"se preservan"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si envías "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"options\": []"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"variants\": []"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", las variantes existentes "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"también se preservan"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (no se eliminan por omisión)."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si envías nuevas opciones o variantes, estas se "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"agregan"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" a las existentes sin eliminar las anteriores."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"products/paths/~1api~1v1~1products~1web_id/put/request/ejemplos","deepLinkHash":"/products/paths/~1api~1v1~1products~1web_id/put#products/paths/~1api~1v1~1products~1web_id/put/request/ejemplos"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplos"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualizar solo precio y título (preserva variantes):"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"product\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"title\": \"Nuevo título\","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 29.99"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Agregar nueva opción sin eliminar existentes:"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"product\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"options\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Material\", \"values\": [\"Algodón\", \"Poliéster\"] }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo completo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"options"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"options\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Talla\", \"values\": [\"SM\", \"LG\", \"XL\", \"MD\"] },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Color\", \"values\": [\"Red\", \"Blue\"] }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para las variantes, combina los valores de las opciones."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo completo de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"variants"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variants\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 12, \"wholesale_price\": 10, \"sku\": \"VAR-001\", \"option1\": \"SM\", \"option2\": \"Red\" },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 14, \"wholesale_price\": 10, \"sku\": \"VAR-002\", \"option1\": \"LG\", \"option2\": \"Red\" },"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"price\": 25, \"wholesale_price\": 13, \"sku\": \"VAR-003\", \"option1\": \"XL\", \"option2\": \"Blue\" }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Agregar nueva combinación sin eliminar existentes:"},"children":[]}]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"product\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"options\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"name\": \"Talla\", \"values\": [\"SM\", \"LG\", \"XL\", \"XXL\"] }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"],"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variants\": ["},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{ \"option1\": \"XXL\", \"sku\": \"VAR-XXL\", \"price\": 35, \"quantity\": 10 }"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"]"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"operationId: updateProduct"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_50"}},"schemaId":"schema_50","pointer":"/paths/~1api~1v1~1products~1web_id/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/v1/products/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_50"}},"responseCodes":["200","400","404"],"pointer":"/api/v1/products/web_id","href":"products/paths/~1api~1v1~1products~1web_id/put","summary":"Product"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_50","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_50"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example"]},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1api~1v1~1products~1web_id/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example"]}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/products/paths/~1api~1v1~1products~1web_id/put"}],"panels":[]}]},"httpPath":"/api/v1/products/web_id"},{"label":"Product","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/products/deleteproduct","routeSlug":"/apis/products/deleteproduct","metadata":{"seo":{"title":"Product","description":"Borra un producto buscado su id"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteProduct","name":"Product","isWebhook":false,"pointer":"/paths/~1api~1v1~1products~1web_id/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Product","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Borra un producto buscado su id"},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/v1/products/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","404"],"pointer":"/api/v1/products/web_id","href":"products/deleteproduct","openApiOperationId":"deleteProduct","summary":"Product"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example"]},{"code":"400","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1api~1v1~1products~1web_id/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example"]}}},{"code":"400"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/products/deleteproduct"}],"panels":[]}]},"httpPath":"/api/v1/products/web_id"}],"content":{"contentType":"group","meta":{"name":"Products"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Products","showPageActions":true},{"nodeType":"markdoc","content":"Crea, actualiza y elimina productos en Mercately"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/products","summary":"Products","prefix":{"name":"get","color":"get"},"badges":[],"link":"/products/products","deprecated":false},{"title":"/api/v1/products","summary":"Create Product","prefix":{"name":"post","color":"post"},"badges":[],"link":"/products/paths/~1api~1v1~1products/post","deprecated":false},{"title":"/api/v1/products/:id_or_sku","summary":"Product","prefix":{"name":"get","color":"get"},"badges":[],"link":"/products/searchproduct","deprecated":false},{"title":"/api/v1/products/web_id","summary":"Product","prefix":{"name":"put","color":"put"},"badges":[],"link":"/products/paths/~1api~1v1~1products~1web_id/put","deprecated":false},{"title":"/api/v1/products/web_id","summary":"Product","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/products/deleteproduct","deprecated":false}]}]}]}]}},{"type":"group","label":"Product Variants","link":"/apis/product-variants","routeSlug":"/apis/product-variants","items":[{"label":"Create Variant","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/product-variants/createvariant","routeSlug":"/apis/product-variants/createvariant","metadata":{"seo":{"title":"Create Variant","description":"Crea una nueva variante (ProductVariantCombination) para un producto existente."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createVariant","name":"Create Variant","isWebhook":false,"pointer":"/paths/~1api~1v1~1products~1product_web_id~1variants/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Variant","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea una nueva variante (ProductVariantCombination) para un producto existente."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/createvariant/request/creacion-incremental","deepLinkHash":"/product-variants/createvariant#product-variants/createvariant/request/creacion-incremental"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Creación incremental"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Este endpoint permite agregar "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"una sola variante"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" a un producto sin afectar las variantes existentes."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ideal para integraciones POS"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" que necesitan agregar SKUs uno por uno sin reenviar todo el catálogo."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/createvariant/request/ejemplo:-crear-variante-con-una-opcion","deepLinkHash":"/product-variants/createvariant#product-variants/createvariant/request/ejemplo:-crear-variante-con-una-opcion"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo: Crear variante con una opción"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variant\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"option1\": \"XXL\","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 35.00,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"quantity\": 10,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"sku\": \"CAMISETA-XXL\""},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/createvariant/request/ejemplo:-crear-variante-con-multiples-opciones","deepLinkHash":"/product-variants/createvariant#product-variants/createvariant/request/ejemplo:-crear-variante-con-multiples-opciones"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo: Crear variante con múltiples opciones"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variant\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"option1\": \"XXL\","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"option2\": \"Azul\","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 35.00,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"quantity\": 10,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"sku\": \"CAMISETA-XXL-AZUL\""},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/createvariant/request/notas-importantes","deepLinkHash":"/product-variants/createvariant#product-variants/createvariant/request/notas-importantes"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Notas importantes"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Los valores de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"option1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"option2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"option3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" deben existir en las opciones del producto."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si la combinación ya existe, retorna error "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"409 Conflict"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Las variantes existentes no se ven afectadas."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"product_web_id","in":"path","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El web_id del producto al que se agregará la variante"},"children":[]}]}]}],"required":true,"example":"FzOWVvUwbC"}],"pointer":"/paths/~1api~1v1~1products~1product_web_id~1variants/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_51"}},"schemaId":"schema_51","pointer":"/paths/~1api~1v1~1products~1product_web_id~1variants/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/products/product_web_id/variants","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"product_web_id","in":"path","required":true,"example":"FzOWVvUwbC","schemaId":"schema_23"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_51"}},"responseCodes":["201","401","404","409","422"],"pointer":"/api/v1/products/product_web_id/variants","href":"product-variants/createvariant","openApiOperationId":"createVariant","summary":"Create Variant"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_51","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_51"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Created","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example"]},{"code":"404","description":"Not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example"]},{"code":"409","description":"Conflict - Combination already exists","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example"]},{"code":"422","description":"Unprocessable Entity","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options","paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error"]}},"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options","paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error"]}],"pointer":"/paths/~1api~1v1~1products~1product_web_id~1variants/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example"]}}},{"code":"401","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example"]}}},{"code":"404","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example"]}}},{"code":"409","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example"]}}},{"code":"422","exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options","paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options","paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/product-variants/createvariant"}],"panels":[]}]},"httpPath":"/api/v1/products/product_web_id/variants"},{"label":"Get Variant","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/product-variants/getvariant","routeSlug":"/apis/product-variants/getvariant","metadata":{"seo":{"title":"Get Variant","description":"Obtiene una variante (ProductVariantCombination) por su web_id."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getVariant","name":"Get Variant","isWebhook":false,"pointer":"/paths/~1api~1v1~1variants~1{web_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Variant","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene una variante (ProductVariantCombination) por su web_id."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/getvariant/request/consulta-individual","deepLinkHash":"/product-variants/getvariant#product-variants/getvariant/request/consulta-individual"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Consulta individual"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Este endpoint retorna "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"una sola variante"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" sin traer el producto completo."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ideal para integraciones POS"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" que necesitan verificar el estado de una variante específica."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"web_id","in":"path","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El web_id de la variante a consultar"},"children":[]}]}]}],"required":true,"example":"x0wsCBTIMI"}],"pointer":"/paths/~1api~1v1~1variants~1{web_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/variants/{web_id}","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"web_id","in":"path","required":true,"example":"x0wsCBTIMI","schemaId":"schema_23"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/api/v1/variants/{web_id}","href":"product-variants/getvariant","openApiOperationId":"getVariant","summary":"Get Variant"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example"]},{"code":"404","description":"Not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1variants~1{web_id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example"]}}},{"code":"401","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example"]}}},{"code":"404","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/product-variants/getvariant"}],"panels":[]}]},"httpPath":"/api/v1/variants/{web_id}"},{"label":"Update Variant","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/product-variants/updatevariant","routeSlug":"/apis/product-variants/updatevariant","metadata":{"seo":{"title":"Update Variant","description":"Actualiza una variante (ProductVariantCombination) de forma parcial."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateVariant","name":"Update Variant","isWebhook":false,"pointer":"/paths/~1api~1v1~1variants~1{web_id}/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Variant","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza una variante (ProductVariantCombination) de forma parcial."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/updatevariant/request/actualizacion-parcial","deepLinkHash":"/product-variants/updatevariant#product-variants/updatevariant/request/actualizacion-parcial"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualización parcial"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Este endpoint permite actualizar "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"solo los campos enviados"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" sin afectar otros atributos de la variante, otras variantes del producto, ni el producto padre."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ideal para integraciones POS"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" que necesitan actualizar precio o stock de una variante específica sin reenviar el producto completo."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/updatevariant/request/ejemplo:-actualizar-solo-el-precio","deepLinkHash":"/product-variants/updatevariant#product-variants/updatevariant/request/ejemplo:-actualizar-solo-el-precio"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo: Actualizar solo el precio"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variant\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 150.00"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/updatevariant/request/ejemplo:-actualizar-precio-y-stock","deepLinkHash":"/product-variants/updatevariant#product-variants/updatevariant/request/ejemplo:-actualizar-precio-y-stock"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo: Actualizar precio y stock"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variant\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 150.00,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"quantity\": 25"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/updatevariant/request/ejemplo:-actualizar-multiples-atributos","deepLinkHash":"/product-variants/updatevariant#product-variants/updatevariant/request/ejemplo:-actualizar-multiples-atributos"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ejemplo: Actualizar múltiples atributos"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"variant\": {"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"price\": 200.00,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"wholesale_price\": 150.00,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"quantity\": 100,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"sku\": \"NEW-SKU-001\","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"\"selling_without_stock\": true"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"}"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"parameters:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"name: web_id"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"in: path"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"required: true"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"description: El web_id de la variante a actualizar"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"schema:"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"type: string"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"example: \"x0wsCBTIMI\""},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_52"}},"schemaId":"schema_52","pointer":"/paths/~1api~1v1~1variants~1{web_id}/patch/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/api/v1/variants/{web_id}","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_52"}},"responseCodes":["200","401","404","422"],"pointer":"/api/v1/variants/{web_id}","href":"product-variants/updatevariant","openApiOperationId":"updateVariant","summary":"Update Variant"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_52","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_52"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example"]}},"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example"]},{"code":"404","description":"Not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example"]},{"code":"422","description":"Unprocessable Entity","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1variants~1{web_id}/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_49","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example"]}}},{"code":"401","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example"]}}},{"code":"404","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example"]}}},{"code":"422","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/product-variants/updatevariant"}],"panels":[]}]},"httpPath":"/api/v1/variants/{web_id}"},{"label":"Delete Variant","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/product-variants/deletevariant","routeSlug":"/apis/product-variants/deletevariant","metadata":{"seo":{"title":"Delete Variant","description":"Elimina una variante (ProductVariantCombination) de forma explícita."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteVariant","name":"Delete Variant","isWebhook":false,"pointer":"/paths/~1api~1v1~1variants~1{web_id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Variant","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Elimina una variante (ProductVariantCombination) de forma explícita."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/deletevariant/request/borrado-inteligente","deepLinkHash":"/product-variants/deletevariant#product-variants/deletevariant/request/borrado-inteligente"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Borrado inteligente"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Este endpoint elimina "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"solo la variante indicada"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" sin afectar otras variantes del producto ni el producto padre."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Comportamiento según integridad:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si la variante "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"no tiene"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" órdenes asociadas → "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hard delete"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (eliminación permanente)"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si la variante "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"tiene"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" órdenes asociadas → "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Soft delete"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (marca "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"deleted_at"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", preserva historial)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ideal para integraciones POS"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" que necesitan eliminar SKUs descontinuados sin afectar el catálogo completo."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"product-variants/deletevariant/request/notas-importantes","deepLinkHash":"/product-variants/deletevariant#product-variants/deletevariant/request/notas-importantes"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Notas importantes"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El producto padre permanece intacto"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Las demás variantes no se ven afectadas"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Los "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ProductVariant"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ProductVariantOption"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" no se eliminan"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El borrado es "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"explícito"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", nunca por omisión"},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"web_id","in":"path","schemaId":"schema_23","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"El web_id de la variante a eliminar"},"children":[]}]}]}],"required":true,"example":"x0wsCBTIMI"}],"pointer":"/paths/~1api~1v1~1variants~1{web_id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/v1/variants/{web_id}","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"web_id","in":"path","required":true,"example":"x0wsCBTIMI","schemaId":"schema_23"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["204","401","404","422"],"pointer":"/api/v1/variants/{web_id}","href":"product-variants/deletevariant","openApiOperationId":"deleteVariant","summary":"Delete Variant"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"204","description":"No Content - Variante eliminada exitosamente"},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example"]},{"code":"404","description":"Not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example"]},{"code":"422","description":"Unprocessable Entity - No se pudo eliminar por restricciones de integridad","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example"]}},"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1variants~1{web_id}/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"204"},{"code":"401","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example"]}}},{"code":"404","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example"]}}},{"code":"422","exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"exampleIds":["paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/product-variants/deletevariant"}],"panels":[]}]},"httpPath":"/api/v1/variants/{web_id}"}],"content":{"contentType":"group","meta":{"name":"Product Variants"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Product Variants","showPageActions":true},{"nodeType":"markdoc","content":"Actualiza variantes de productos en Mercately"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/products/product_web_id/variants","summary":"Create Variant","prefix":{"name":"post","color":"post"},"badges":[],"link":"/product-variants/createvariant","deprecated":false},{"title":"/api/v1/variants/{web_id}","summary":"Get Variant","prefix":{"name":"get","color":"get"},"badges":[],"link":"/product-variants/getvariant","deprecated":false},{"title":"/api/v1/variants/{web_id}","summary":"Update Variant","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/product-variants/updatevariant","deprecated":false},{"title":"/api/v1/variants/{web_id}","summary":"Delete Variant","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/product-variants/deletevariant","deprecated":false}]}]}]}]}},{"type":"group","label":"Categories","link":"/apis/categories","routeSlug":"/apis/categories","items":[{"label":"List Categories","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/categories/listcategories","routeSlug":"/apis/categories/listcategories","metadata":{"seo":{"title":"List Categories","description":"Obtén los datos de tus categorías con sus subcategorías"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listCategories","name":"List Categories","isWebhook":false,"pointer":"/paths/~1api~1v1~1categories/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Categories","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén los datos de tus categorías con sus subcategorías"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_53","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de página para la paginación"},"children":[]}]}]}]}],"pointer":"/paths/~1api~1v1~1categories/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/categories","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","required":false,"schemaId":"schema_53"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/api/v1/categories","href":"categories/listcategories","openApiOperationId":"listCategories","summary":"List Categories"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_54","exampleIds":["paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_54","exampleIds":["paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}},"schemaId":"schema_55"},{"code":"404","description":"Not Found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}},"schemaId":"schema_56"}],"pointer":"/paths/~1api~1v1~1categories/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_54","exampleIds":["paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_54","exampleIds":["paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response"]}}},{"code":"401","schemaId":"schema_55","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}}},{"code":"404","schemaId":"schema_56","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/categories/listcategories"}],"panels":[]}]},"httpPath":"/api/v1/categories"},{"label":"Create Category","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/categories/createcategory","routeSlug":"/apis/categories/createcategory","metadata":{"seo":{"title":"Create Category","description":"Crea una nueva categoría con sus subcategorías"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createCategory","name":"Create Category","isWebhook":false,"pointer":"/paths/~1api~1v1~1categories/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Category","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Crea una nueva categoría con sus subcategorías"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_57","exampleIds":["paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"]}},"schemaId":"schema_57","exampleIds":["paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"],"pointer":"/paths/~1api~1v1~1categories/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/categories","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_57","exampleIds":["paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"]}},"responseCodes":["200","401","422"],"pointer":"/api/v1/categories","href":"categories/createcategory","openApiOperationId":"createCategory","summary":"Create Category"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_57","exampleIds":["paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_57","exampleIds":["paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Category created successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_58","exampleIds":["paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success"]}},"schemaId":"schema_58","exampleIds":["paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}},"schemaId":"schema_55"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error"]}},"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error"]}],"pointer":"/paths/~1api~1v1~1categories/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_58","exampleIds":["paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_58","exampleIds":["paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success"]}}},{"code":"401","schemaId":"schema_55","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}}},{"code":"422","schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/categories/createcategory"}],"panels":[]}]},"httpPath":"/api/v1/categories"},{"label":"Update Category","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/categories/updatecategory","routeSlug":"/apis/categories/updatecategory","metadata":{"seo":{"title":"Update Category","description":"Actualiza una categoría existente y sus subcategorías. Puedes actualizar, crear o eliminar subcategorías."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateCategory","name":"Update Category","isWebhook":false,"pointer":"/paths/~1api~1v1~1categories~1web_id/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Category","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza una categoría existente y sus subcategorías. Puedes actualizar, crear o eliminar subcategorías."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_59","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Web ID de la categoría"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1api~1v1~1categories~1web_id/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_60","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories","paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"]}},"schemaId":"schema_60","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories","paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"],"pointer":"/paths/~1api~1v1~1categories~1web_id/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/v1/categories/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":"I7ROmS7Jui","schemaId":"schema_59"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_60","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories","paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"]}},"responseCodes":["200","401","404","422"],"pointer":"/api/v1/categories/web_id","href":"categories/updatecategory","openApiOperationId":"updateCategory","summary":"Update Category"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_60","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories","paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_60","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories","paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Category updated successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_61"}},"schemaId":"schema_61"},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}},"schemaId":"schema_55"},{"code":"404","description":"Category not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}},"schemaId":"schema_56"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error"]}},"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error"]}],"pointer":"/paths/~1api~1v1~1categories~1web_id/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_61","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_61"}}},{"code":"401","schemaId":"schema_55","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}}},{"code":"404","schemaId":"schema_56","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}}},{"code":"422","schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45","exampleIds":["paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/categories/updatecategory"}],"panels":[]}]},"httpPath":"/api/v1/categories/web_id"},{"label":"Update Category (Partial)","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/categories/patchcategory","routeSlug":"/apis/categories/patchcategory","metadata":{"seo":{"title":"Update Category (Partial)","description":"Actualiza parcialmente una categoría existente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"patchCategory","name":"Update Category (Partial)","isWebhook":false,"pointer":"/paths/~1api~1v1~1categories~1web_id/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Category (Partial)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Actualiza parcialmente una categoría existente"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_59","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Web ID de la categoría"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1api~1v1~1categories~1web_id/patch/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_62"}},"schemaId":"schema_62","pointer":"/paths/~1api~1v1~1categories~1web_id/patch/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/api/v1/categories/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":"I7ROmS7Jui","schemaId":"schema_59"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_62"}},"responseCodes":["200","401","404","422"],"pointer":"/api/v1/categories/web_id","href":"categories/patchcategory","openApiOperationId":"patchCategory","summary":"Update Category (Partial)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"schema_62","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_62"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Category updated successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_63"}},"schemaId":"schema_63"},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}},"schemaId":"schema_55"},{"code":"404","description":"Category not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}},"schemaId":"schema_56"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45"}},"schemaId":"schema_45"}],"pointer":"/paths/~1api~1v1~1categories~1web_id/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_63","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_63"}}},{"code":"401","schemaId":"schema_55","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}}},{"code":"404","schemaId":"schema_56","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}}},{"code":"422","schemaId":"schema_45","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_45"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/categories/patchcategory"}],"panels":[]}]},"httpPath":"/api/v1/categories/web_id"},{"label":"Delete Category","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/categories/deletecategory","routeSlug":"/apis/categories/deletecategory","metadata":{"seo":{"title":"Delete Category","description":"Elimina una categoría y todas sus subcategorías"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteCategory","name":"Delete Category","isWebhook":false,"pointer":"/paths/~1api~1v1~1categories~1web_id/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Category","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Elimina una categoría y todas sus subcategorías"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_59","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Web ID de la categoría"},"children":[]}]}]}],"required":true}],"pointer":"/paths/~1api~1v1~1categories~1web_id/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/v1/categories/web_id","servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"example":"I7ROmS7Jui","schemaId":"schema_59"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/api/v1/categories/web_id","href":"categories/deletecategory","openApiOperationId":"deleteCategory","summary":"Delete Category"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Category deleted successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_64","exampleIds":["paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response"]}},"schemaId":"schema_64","exampleIds":["paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}},"schemaId":"schema_55"},{"code":"404","description":"Category not found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}},"schemaId":"schema_56"}],"pointer":"/paths/~1api~1v1~1categories~1web_id/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_64","exampleIds":["paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_64","exampleIds":["paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response"]}}},{"code":"401","schemaId":"schema_55","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_55"}}},{"code":"404","schemaId":"schema_56","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_56"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/categories/deletecategory"}],"panels":[]}]},"httpPath":"/api/v1/categories/web_id"}],"content":{"contentType":"group","meta":{"name":"Categories"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Categories","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtén todas las categorías creadas en Mercately"},"children":[]}]}]}]}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/categories","summary":"List Categories","prefix":{"name":"get","color":"get"},"badges":[],"link":"/categories/listcategories","deprecated":false},{"title":"/api/v1/categories","summary":"Create Category","prefix":{"name":"post","color":"post"},"badges":[],"link":"/categories/createcategory","deprecated":false},{"title":"/api/v1/categories/web_id","summary":"Update Category","prefix":{"name":"put","color":"put"},"badges":[],"link":"/categories/updatecategory","deprecated":false},{"title":"/api/v1/categories/web_id","summary":"Update Category (Partial)","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/categories/patchcategory","deprecated":false},{"title":"/api/v1/categories/web_id","summary":"Delete Category","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/categories/deletecategory","deprecated":false}]}]}]}]}},{"type":"group","label":"Customer events","link":"/apis/customer-events","routeSlug":"/apis/customer-events","items":[{"label":"Create Customer Event","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customer-events/customer/:id/events","routeSlug":"/apis/customer-events/customer/:id/events","metadata":{"seo":{"title":"Create Customer Event","description":"Crea un nuevo evento para el cliente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customer/:id/events","name":"Create Customer Event","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1events/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Customer Event","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Crea un nuevo evento para el cliente"},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/customer_event"}},"schemaId":"components/schemas/customer_event","pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1events/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/retailers/api/v1/customers/:id/events","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/customer_event"}},"responseCodes":["201","401"],"pointer":"/retailers/api/v1/customers/:id/events","href":"customer-events/customer/:id/events","openApiOperationId":"customer/:id/events","summary":"Create Customer Event"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"schemaId":"components/schemas/customer_event","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/customer_event"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"CREATED","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/create_customer_event"}},"schemaId":"components/schemas/create_customer_event"},{"code":"401","description":"Unauthorized"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1events/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/create_customer_event","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/create_customer_event"}}},{"code":"401"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customer-events/customer/:id/events"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id/events"},{"label":"Get Customer Events","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/customer-events/customers/:id/customer_events","routeSlug":"/apis/customer-events/customers/:id/customer_events","metadata":{"seo":{"title":"Get Customer Events","description":"Obtiene los eventos del cliente"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"customers/:id/customer_events","name":"Get Customer Events","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1customer_events_history/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Customer Events","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Obtiene los eventos del cliente"},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Busca la página específica de eventos"},"children":[]}]}]}]},{"name":"results_per_page","in":"query","schemaId":"schema_13","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Selecciona el número de eventos que serán visualizados por página"},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1customer_events_history/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/customers/:id/customer_events_history","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"page","in":"query","schemaId":"schema_13"},{"name":"results_per_page","in":"query","schemaId":"schema_13"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","401","404"],"pointer":"/retailers/api/v1/customers/:id/customer_events_history","href":"customer-events/customers/:id/customer_events","openApiOperationId":"customers/:id/customer_events","summary":"Get Customer Events"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer_event"}},"schemaId":"components/schemas/get_customer_event"},{"code":"401","description":"Unauthorized"},{"code":"404","description":"Not found"}],"pointer":"/paths/~1retailers~1api~1v1~1customers~1:id~1customer_events_history/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/get_customer_event","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/get_customer_event"}}},{"code":"401"},{"code":"404"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/customer-events/customers/:id/customer_events"}],"panels":[]}]},"httpPath":"/retailers/api/v1/customers/:id/customer_events_history"}],"content":{"contentType":"group","meta":{"name":"Customer events"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Customer events","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/customers/:id/events","summary":"Create Customer Event","prefix":{"name":"post","color":"post"},"badges":[],"link":"/customer-events/customer/:id/events","deprecated":false},{"title":"/retailers/api/v1/customers/:id/customer_events_history","summary":"Get Customer Events","prefix":{"name":"get","color":"get"},"badges":[],"link":"/customer-events/customers/:id/customer_events","deprecated":false}]}]}]}]}},{"type":"group","label":"Analítica","link":"/apis/analitica","routeSlug":"/apis/analitica","items":[{"label":"Estadísticas de leads por canal","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getleadsstats","routeSlug":"/apis/analitica/getleadsstats","metadata":{"seo":{"title":"Estadísticas de leads por canal","description":"Obtiene el conteo y métricas de los leads generados agrupados por canal dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getLeadsStats","name":"Estadísticas de leads por canal","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1stats/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Estadísticas de leads por canal","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene el conteo y métricas de los leads generados agrupados por canal dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"start_date","in":"query","schemaId":"schema_65","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de inicio del reporte (Formato YYYY-MM-DD). Por defecto se calcula como el inicio del último mes."},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_66","description":"Fecha de fin del reporte (Formato YYYY-MM-DD). Por defecto corresponde a la fecha actual."}],"pointer":"/paths/~1retailers~1api~1v1~1stats/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/stats","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"start_date","in":"query","required":false,"example":"2026-06-01","schemaId":"schema_65"},{"name":"end_date","in":"query","required":false,"example":"2026-07-01","schemaId":"schema_66"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/stats","href":"analitica/getleadsstats","openApiOperationId":"getLeadsStats","summary":"Estadísticas de leads por canal"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estadísticas de leads obtenidas exitosamente."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_67"}},"schemaId":"schema_67"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68"}],"pointer":"/paths/~1retailers~1api~1v1~1stats/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_67","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_67"}}},{"code":"400","schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getleadsstats"}],"panels":[]}]},"httpPath":"/retailers/api/v1/stats"},{"label":"Estadísticas de oportunidades por embudo (Funnel)","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getfunnelstats","routeSlug":"/apis/analitica/getfunnelstats","metadata":{"seo":{"title":"Estadísticas de oportunidades por embudo (Funnel)","description":"Obtiene las métricas de conversión pasadas por las distintas etapas del embudo de ventas. Si no se especifican las fechas, retorna los datos del último mes."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getFunnelStats","name":"Estadísticas de oportunidades por embudo (Funnel)","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1stats~1funnel_stats/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Estadísticas de oportunidades por embudo (Funnel)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene las métricas de conversión pasadas por las distintas etapas del embudo de ventas. Si no se especifican las fechas, retorna los datos del último mes."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"start_date","in":"query","schemaId":"schema_65","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de inicio para evaluar el embudo (Formato YYYY-MM-DD). Por defecto se calcula como el inicio del último mes."},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_66","description":"Fecha de fin para evaluar el embudo (Formato YYYY-MM-DD). Por defecto corresponde a la fecha actual."}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1funnel_stats/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/stats/funnel_stats","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"start_date","in":"query","required":false,"example":"2026-06-01","schemaId":"schema_65"},{"name":"end_date","in":"query","required":false,"example":"2026-07-01","schemaId":"schema_66"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/stats/funnel_stats","href":"analitica/getfunnelstats","openApiOperationId":"getFunnelStats","summary":"Estadísticas de oportunidades por embudo (Funnel)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Métricas del embudo obtenidas exitosamente."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_69"}},"schemaId":"schema_69"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68"}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1funnel_stats/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_69","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_69"}}},{"code":"400","schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getfunnelstats"}],"panels":[]}]},"httpPath":"/retailers/api/v1/stats/funnel_stats"},{"label":"Tiempos de respuesta por agente","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getagentresponsetimestats","routeSlug":"/apis/analitica/getagentresponsetimestats","metadata":{"seo":{"title":"Tiempos de respuesta por agente","description":"Obtiene las métricas y promedios de tiempos de respuesta agrupados por cada agente de soporte/ventas. Si no se especifican las fechas, retorna los datos del último mes."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getAgentResponseTimeStats","name":"Tiempos de respuesta por agente","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1stats~1response_time_by_agent/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Tiempos de respuesta por agente","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene las métricas y promedios de tiempos de respuesta agrupados por cada agente de soporte/ventas. Si no se especifican las fechas, retorna los datos del último mes."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"start_date","in":"query","schemaId":"schema_65","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de inicio del reporte (Formato YYYY-MM-DD). Por defecto se calcula como el inicio del último mes."},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_66","description":"Fecha de fin del reporte (Formato YYYY-MM-DD). Por defecto corresponde a la fecha actual."}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1response_time_by_agent/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/stats/response_time_by_agent","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"start_date","in":"query","required":false,"example":"2026-06-01","schemaId":"schema_65"},{"name":"end_date","in":"query","required":false,"example":"2026-07-01","schemaId":"schema_66"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/stats/response_time_by_agent","href":"analitica/getagentresponsetimestats","openApiOperationId":"getAgentResponseTimeStats","summary":"Tiempos de respuesta por agente"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Tiempos de respuesta por agente obtenidos exitosamente.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_70"}},"schemaId":"schema_70"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68"}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1response_time_by_agent/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_70","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_70"}}},{"code":"400","schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getagentresponsetimestats"}],"panels":[]}]},"httpPath":"/retailers/api/v1/stats/response_time_by_agent"},{"label":"Leads por fuente de origen (Ads)","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getadsleadsbysource","routeSlug":"/apis/analitica/getadsleadsbysource","metadata":{"seo":{"title":"Leads por fuente de origen (Ads)","description":"Obtiene el conteo de leads generados agrupados por su fuente de atribución (pago, orgánico, etc.) dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getAdsLeadsBySource","name":"Leads por fuente de origen (Ads)","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1leads_by_source/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Leads por fuente de origen (Ads)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene el conteo de leads generados agrupados por su fuente de atribución (pago, orgánico, etc.) dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"start_date","in":"query","schemaId":"schema_71","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de inicio del reporte (Formato YYYY-MM-DD). Por defecto se calcula como el inicio del último mes."},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_72","description":"Fecha de fin del reporte (Formato YYYY-MM-DD). Por defecto corresponde a la fecha actual."}],"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1leads_by_source/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/ads_stats/leads_by_source","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"start_date","in":"query","required":false,"example":"2025-07-01","schemaId":"schema_71"},{"name":"end_date","in":"query","required":false,"example":"2026-08-01","schemaId":"schema_72"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/ads_stats/leads_by_source","href":"analitica/getadsleadsbysource","openApiOperationId":"getAdsLeadsBySource","summary":"Leads por fuente de origen (Ads)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estadísticas de leads por origen obtenidas exitosamente."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_73"}},"schemaId":"schema_73"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68"}],"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1leads_by_source/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_73","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_73"}}},{"code":"400","schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getadsleadsbysource"}],"panels":[]}]},"httpPath":"/retailers/api/v1/ads_stats/leads_by_source"},{"label":"Embudo por campaña de anuncios (Ads)","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getadscampaignfunnelstats","routeSlug":"/apis/analitica/getadscampaignfunnelstats","metadata":{"seo":{"title":"Embudo por campaña de anuncios (Ads)","description":"Obtiene las métricas del embudo desglosadas por cada campaña publicitaria dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getAdsCampaignFunnelStats","name":"Embudo por campaña de anuncios (Ads)","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1campaign_funnel/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Embudo por campaña de anuncios (Ads)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene las métricas del embudo desglosadas por cada campaña publicitaria dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"start_date","in":"query","schemaId":"schema_74","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de inicio del reporte (Formato YYYY-MM-DD). Por defecto se calcula como el inicio del último mes."},"children":[]}]}]}]},{"name":"end_date","in":"query","schemaId":"schema_65","description":"Fecha de fin del reporte (Formato YYYY-MM-DD). Por defecto corresponde a la fecha actual."}],"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1campaign_funnel/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/ads_stats/campaign_funnel","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"start_date","in":"query","required":false,"example":"2026-05-01","schemaId":"schema_74"},{"name":"end_date","in":"query","required":false,"example":"2026-06-01","schemaId":"schema_65"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/ads_stats/campaign_funnel","href":"analitica/getadscampaignfunnelstats","openApiOperationId":"getAdsCampaignFunnelStats","summary":"Embudo por campaña de anuncios (Ads)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Métricas del embudo por campaña obtenidas exitosamente."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_75"}},"schemaId":"schema_75"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68"}],"pointer":"/paths/~1retailers~1api~1v1~1ads_stats~1campaign_funnel/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_75","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_75"}}},{"code":"400","schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_68"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getadscampaignfunnelstats"}],"panels":[]}]},"httpPath":"/retailers/api/v1/ads_stats/campaign_funnel"},{"label":"Reporte detallado de leads","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/analitica/getleadsreportstats","routeSlug":"/apis/analitica/getleadsreportstats","metadata":{"seo":{"title":"Reporte detallado de leads","description":"Obtiene el listado paginado y detallado de leads registrados con métricas de agente, canal de origen, embudo, IA (MIA) y conversación."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getLeadsReportStats","name":"Reporte detallado de leads","isWebhook":false,"pointer":"/paths/~1retailers~1api~1v1~1stats~1leads_report/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Reporte detallado de leads","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtiene el listado paginado y detallado de leads registrados con métricas de agente, canal de origen, embudo, IA (MIA) y conversación."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"api-key","scopes":[],"type":"apiKey","in":"header","paramName":"api-key","description":"API Key authentication"}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"date","in":"query","schemaId":"schema_76","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha específica para filtrar el reporte de leads (Formato YYYY-MM-DD)."},"children":[]}]}]}]},{"name":"page","in":"query","schemaId":"schema_19","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de página. Paginación fija de 10 clientes por página (no se acepta per_page; el tamaño de página no es configurable)."},"children":[]}]}]}]},{"name":"agent_id","in":"query","schemaId":"schema_77","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único del agente para filtrar los leads."},"children":[]}]}]}]}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1leads_report/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/retailers/api/v1/stats/leads_report","servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"parameters":{"path":[],"query":[{"name":"date","in":"query","required":false,"example":"2026-06-03","schemaId":"schema_76"},{"name":"page","in":"query","required":false,"example":1,"schemaId":"schema_19"},{"name":"agent_id","in":"query","required":false,"example":1204,"schemaId":"schema_77"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"api-key","type":"apiKey","name":"api-key","in":"header"}],"scopes":[]}],"responseCodes":["200","400"],"pointer":"/retailers/api/v1/stats/leads_report","href":"analitica/getleadsreportstats","openApiOperationId":"getLeadsReportStats","summary":"Reporte detallado de leads"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Reporte de leads obtenido exitosamente.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_78"}},"schemaId":"schema_78"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solicitud incorrecta (parámetros inválidos o formato de fecha erróneo)."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_79"}},"schemaId":"schema_79"}],"pointer":"/paths/~1retailers~1api~1v1~1stats~1leads_report/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_78","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_78"}}},{"code":"400","schemaId":"schema_79","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_79"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/analitica/getleadsreportstats"}],"panels":[]}]},"httpPath":"/retailers/api/v1/stats/leads_report"}],"content":{"contentType":"group","meta":{"name":"Analítica"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Analítica","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/retailers/api/v1/stats","summary":"Estadísticas de leads por canal","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getleadsstats","deprecated":false},{"title":"/retailers/api/v1/stats/funnel_stats","summary":"Estadísticas de oportunidades por embudo (Funnel)","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getfunnelstats","deprecated":false},{"title":"/retailers/api/v1/stats/response_time_by_agent","summary":"Tiempos de respuesta por agente","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getagentresponsetimestats","deprecated":false},{"title":"/retailers/api/v1/ads_stats/leads_by_source","summary":"Leads por fuente de origen (Ads)","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getadsleadsbysource","deprecated":false},{"title":"/retailers/api/v1/ads_stats/campaign_funnel","summary":"Embudo por campaña de anuncios (Ads)","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getadscampaignfunnelstats","deprecated":false},{"title":"/retailers/api/v1/stats/leads_report","summary":"Reporte detallado de leads","prefix":{"name":"get","color":"get"},"badges":[],"link":"/analitica/getleadsreportstats","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/agents":{"id":"components/schemas/agents","kind":"json-schema","title":"Agent","data":{"type":"object","title":"Agent","properties":{"id":{"type":"integer","example":9},"first_name":{"type":"string","example":"Nicolas"},"last_name":{"type":"string","example":"Mena Garzon"},"email":{"type":"string","example":"nicolas@mercately.com"},"active":{"type":"boolean","example":true},"agent":{"type":"boolean","example":false},"admin":{"type":"boolean","example":true},"supervisor":{"type":"boolean","example":true}}}},"components/schemas/customer":{"id":"components/schemas/customer","kind":"json-schema","title":"Customer","data":{"type":"object","title":"Customer","properties":{"id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID único del cliente (web_id)"},"children":[]}]}]}]},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"id_type":{"type":"string","enum":["cedula","pasaporte","ruc","rut","otro"]},"id_number":{"type":"string"},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección individual del cliente"},"children":[]}]}]}]},"city":{"type":"string","description":"Ciudad individual del cliente"},"state":{"type":"string","description":"Estado/Provincia individual del cliente"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal individual del cliente"},"children":[]}]}]}]},"country_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del país del cliente"},"children":[]}]}]}]},"notes":{"type":"string"},"whatsapp_opt_in":{"type":"boolean","description":"Si el cliente ha optado por recibir mensajes de WhatsApp"},"whatsapp_name":{"type":"string","description":"Nombre del cliente en WhatsApp"},"customer_addresses":{"type":"array","description":"Array de direcciones adicionales del cliente","items":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip_code":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"description":{"type":"string"},"main":{"type":"boolean"}}}},"tags":{"type":"array","description":"Array de etiquetas del cliente","items":{"type":"object","properties":{"tag":{"type":"string","description":"Nombre de la etiqueta"},"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID único de la etiqueta"},"children":[]}]}]}]}}}},"custom_fields":{"type":"array","description":"Array de campos personalizados del cliente","items":{"type":"object","properties":{"field_name":{"type":"string","description":"Identificador del campo personalizado"},"field_content":{"type":"string","description":"Contenido del campo personalizado"}}}},"agent":{"type":"object","description":"Agente asignado al cliente","properties":{"id":{"type":"integer","description":"ID del agente"},"email":{"type":"string","description":"Email del agente"}}},"outbound_status":{"type":"string","enum":["error","submitted","enqueued","sent","delivered","read"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estado del último mensaje outbound enviado al cliente"},"children":[]}]}]}]},"campaign_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID de la campaña asociada al cliente"},"children":[]}]}]}]},"error_message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje de error si hubo un problema con el último mensaje enviado"},"children":[]}]}]}]},"campaign_url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL de la campaña asociada (vacío si no hay campaña)"},"children":[]}]}]}]},"creation_date":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de creación del cliente"},"children":[]}]}]}]},"sent_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se envió el último mensaje outbound"},"children":[]}]}]}]},"delivered_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se entregó el último mensaje outbound"},"children":[]}]}]}]},"read_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se leyó el último mensaje outbound"},"children":[]}]}]}]},"last_chat_interaction":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de la última interacción en el chat"},"children":[]}]}]}]}}}},"components/schemas/get_customer":{"id":"components/schemas/get_customer","kind":"json-schema","title":"get_customer","data":{"type":"object","properties":{"message":{"type":"string","example":"Customer found successfully"},"customer":{"$ref":"#/components/schemas/customer"}}}},"components/schemas/update_customer":{"id":"components/schemas/update_customer","kind":"json-schema","title":"UpdateCustomerRequest","data":{"type":"object","title":"UpdateCustomerRequest","properties":{"customer":{"type":"object","title":"Customer","properties":{"first_name":{"type":"string","description":"Nombre del cliente"},"last_name":{"type":"string","description":"Apellido del cliente"},"email":{"type":"string","description":"Email del cliente"},"phone":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono del cliente"},"children":[]}]}]}]},"id_type":{"type":"string","enum":["cedula","pasaporte","ruc","rut","otro"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tipo de documento de identificación"},"children":[]}]}]}]},"id_number":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de documento de identificación"},"children":[]}]}]}]},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección del cliente"},"children":[]}]}]}]},"city":{"type":"string","description":"Ciudad del cliente"},"state":{"type":"string","description":"Estado/Provincia del cliente"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal del cliente"},"children":[]}]}]}]},"customer_addresses_attributes":{"type":"array","description":"Array de direcciones adicionales del cliente","items":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip_code":{"type":"string"},"country_id":{"type":"integer"},"latitude":{"type":"string"},"longitude":{"type":"string"},"description":{"type":"string"},"main":{"type":"boolean"}}}},"notes":{"type":"string","description":"Notas sobre el cliente"}}},"agent_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del agente asignado al cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}]},"tags":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de etiquetas del cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}],"items":{"type":"object","properties":{"name":{"type":"string","description":"Nombre de la etiqueta"},"value":{"type":"boolean","description":"true para asignar la etiqueta, false para removerla"}}}},"custom_fields":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de campos personalizados del cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}],"items":{"type":"object","properties":{"field_name":{"type":"string","description":"Identificador del campo personalizado"},"field_content":{"type":"string","description":"Contenido del campo personalizado"}}}}}}},"components/schemas/update_customer-2":{"id":"components/schemas/update_customer-2","kind":"json-schema","title":"UpdateCustomerResponse","data":{"type":"object","title":"UpdateCustomerResponse","properties":{"message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje de confirmación"},"children":[]}]}]}],"example":"Customer updated successfully"},"customer":{"type":"object","title":"Customer","properties":{"id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID único del cliente (web_id)"},"children":[]}]}]}]},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"id_type":{"type":"string","enum":["cedula","pasaporte","ruc","rut","otro"]},"id_number":{"type":"string"},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección individual del cliente"},"children":[]}]}]}]},"city":{"type":"string","description":"Ciudad individual del cliente"},"state":{"type":"string","description":"Estado/Provincia individual del cliente"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal individual del cliente"},"children":[]}]}]}]},"country_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del país del cliente"},"children":[]}]}]}]},"notes":{"type":"string"},"whatsapp_opt_in":{"type":"boolean","description":"Si el cliente ha optado por recibir mensajes de WhatsApp"},"whatsapp_name":{"type":"string","description":"Nombre del cliente en WhatsApp"},"customer_addresses":{"type":"array","description":"Array de direcciones adicionales del cliente","items":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip_code":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"description":{"type":"string"},"main":{"type":"boolean"}}}},"tags":{"type":"array","description":"Array de etiquetas del cliente","items":{"type":"object","properties":{"tag":{"type":"string","description":"Nombre de la etiqueta"},"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID único de la etiqueta"},"children":[]}]}]}]}}}},"custom_fields":{"type":"array","description":"Array de campos personalizados del cliente","items":{"type":"object","properties":{"field_name":{"type":"string","description":"Identificador del campo personalizado"},"field_content":{"type":"string","description":"Contenido del campo personalizado"}}}},"agent":{"type":"object","description":"Agente asignado al cliente","properties":{"id":{"type":"integer","description":"ID del agente"},"email":{"type":"string","description":"Email del agente"}}},"outbound_status":{"type":"string","enum":["error","submitted","enqueued","sent","delivered","read"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Estado del último mensaje outbound enviado al cliente"},"children":[]}]}]}]},"campaign_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID de la campaña asociada al cliente"},"children":[]}]}]}]},"error_message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje de error si hubo un problema con el último mensaje enviado"},"children":[]}]}]}]},"campaign_url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL de la campaña asociada (vacío si no hay campaña)"},"children":[]}]}]}]},"creation_date":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de creación del cliente"},"children":[]}]}]}]},"sent_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se envió el último mensaje outbound"},"children":[]}]}]}]},"delivered_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se entregó el último mensaje outbound"},"children":[]}]}]}]},"read_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se leyó el último mensaje outbound"},"children":[]}]}]}]},"last_chat_interaction":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de la última interacción en el chat"},"children":[]}]}]}]}}}}}},"components/schemas/customer_event":{"id":"components/schemas/customer_event","kind":"json-schema","title":"CreateCustomerEventRequest","data":{"type":"object","title":"CreateCustomerEventRequest","required":["customer_event"],"properties":{"customer_event":{"type":"object","title":"CustomerEvent","required":["category","subcategory","action"],"properties":{"category":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Categoría del evento"},"children":[]}]}]}],"example":"purchase"},"subcategory":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Subcategoría del evento"},"children":[]}]}]}],"example":"order_placed"},"action":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Acción del evento"},"children":[]}]}]}],"example":"created"},"type_event":{"type":"string","description":"Tipo de evento (opcional)","example":"order"},"source":{"type":"string","description":"Fuente del evento (opcional)","example":"api"},"url_spec":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL específica relacionada con el evento (opcional)"},"children":[]}]}]}],"example":"https://example.com/order/123"},"created_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha y hora de creación del evento (opcional). Si no se proporciona, se usa la fecha actual"},"children":[]}]}]}],"example":"2024-01-15T10:30:00Z"}}}}}},"components/schemas/create_customer_event":{"id":"components/schemas/create_customer_event","kind":"json-schema","title":"create_customer_event","data":{"type":"object","properties":{"messages":{"type":"string","example":"Customer event created successfully"}}}},"components/schemas/whatsapp_api_message":{"id":"components/schemas/whatsapp_api_message","kind":"json-schema","title":"SendWhatsAppNotificationByIdResponse","data":{"type":"object","title":"SendWhatsAppNotificationByIdResponse","properties":{"message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje de confirmación"},"children":[]}]}]}],"example":"Ok"},"info":{"type":"object","title":"MessageInfo","properties":{"channel":{"type":"string","description":"Canal del mensaje","example":"whatsapp"},"content":{"type":"object","title":"MessageContent","properties":{"text":{"type":"string","description":"Texto del mensaje enviado","example":"Your OTP for test 1 is test 2. This is valid for test 3."},"media_url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL del archivo multimedia (solo si se envió media)"},"children":[]}]}]}],"example":"https://mercately.com/example.png"}}},"direction":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección del mensaje"},"children":[]}]}]}],"example":"outbound"},"status":{"type":"string","description":"Estado del mensaje","example":"submitted"},"destination":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de teléfono de destino"},"children":[]}]}]}],"example":"+593999999999"},"country":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código de país del destinatario"},"children":[]}]}]}],"example":"EC"},"created_time":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha y hora de creación del mensaje"},"children":[]}]}]}],"example":"2022-09-23T16:34:16.768-04:00"},"error":{"type":["null","string"],"description":"Mensaje de error (null si no hay error)","example":null}}}}}},"components/schemas/messenger_message":{"id":"components/schemas/messenger_message","kind":"json-schema","title":"MessengerConversationsResponse","data":{"type":"object","title":"MessengerConversationsResponse","properties":{"facebook_messages":{"type":"array","description":"Array de mensajes de Messenger del cliente","items":{"type":"object","title":"FacebookMessage","properties":{"id":{"type":"string","description":"ID del mensaje"},"customer_id":{"type":"integer","description":"ID del cliente"},"text":{"type":"string","description":"Texto del mensaje"},"created_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha y hora de creación del mensaje"},"children":[]}]}]}]},"sent_by_retailer":{"type":"boolean","description":"Si el mensaje fue enviado por el retailer"},"file_type":{"type":"string","description":"Tipo de archivo (si aplica)"},"mid":{"type":"string","description":"ID del mensaje en Facebook"},"message_identifier":{"type":"string","description":"Identificador del mensaje"},"note":{"type":"string","description":"Nota asociada al mensaje"},"order_note":{"type":"string","description":"Nota de orden asociada"},"order_summary":{"type":"string","description":"Resumen de orden asociado"},"replied_message":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje al que se está respondiendo (objeto completo del mensaje respondido, solo si existe)"},"children":[]}]}]}]},"error_message":{"type":"string","description":"Mensaje de error (si aplica)"},"internal_url":{"type":"string","description":"URL interna del archivo"},"payload":{"type":"object","description":"Payload del mensaje"},"mia_flag":{"type":"boolean","description":"Flag de MIA"},"sent_by_mia":{"type":"boolean","description":"Si el mensaje fue enviado por MIA"},"mia_client_data":{"type":"boolean","description":"Datos de cliente MIA"},"customer_related_data":{"type":"array","description":"Datos relacionados del cliente"},"customer_tags":{"type":"array","description":"Etiquetas del cliente"},"mia_assignment":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Asignación MIA"},"children":[]}]}]}]},"assignment_data":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Datos de asignación"},"children":[]}]}]}]},"event_data":{"type":"object","description":"Datos del evento"},"mia_event":{"type":"boolean","description":"Evento MIA"},"sender_full_name":{"type":"string","description":"Nombre completo del remitente (solo si fue enviado desde Mercately)"},"filename":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre del archivo (solo si hay file_type)"},"children":[]}]}]}]},"url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL del archivo (solo si hay file_type)"},"children":[]}]}]}]},"date_read":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha en que se leyó el mensaje (solo si sent_by_retailer es true)"},"children":[]}]}]}]}}}},"total_pages":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número total de páginas"},"children":[]}]}]}],"example":1}}}},"components/schemas/get_customer_event":{"id":"components/schemas/get_customer_event","kind":"json-schema","title":"get_customer_event","data":{"type":"object","properties":{"results":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número total de eventos"},"children":[]}]}]}],"example":10},"total_pages":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número total de páginas"},"children":[]}]}]}],"example":2},"customer_events":{"type":"array","description":"Array de eventos del cliente","items":{"type":"object","title":"CustomerEvent","properties":{"category":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Categoría del evento"},"children":[]}]}]}],"example":"purchase"},"subcategory":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Subcategoría del evento"},"children":[]}]}]}],"example":"order_placed"},"event":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Acción del evento"},"children":[]}]}]}],"example":"created"},"creation_date":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha y hora de creación del evento (formato: DD-MM-YYYY HH:MM)"},"children":[]}]}]}],"example":"15-01-2024 10:30"},"agent":{"type":"string","description":"Nombre del agente asociado al evento","example":"John Doe"}}}}}}},"components/schemas/agent":{"id":"components/schemas/agent","kind":"json-schema","title":"Agent","data":{"type":"object","title":"Agent","properties":{"id":{"type":"integer","example":9},"first_name":{"type":"string","example":"Nicolas"},"last_name":{"type":"string","example":"Mena Garzon"},"email":{"type":"string","example":"nicolas@mercately.com"},"active":{"type":"boolean","example":true},"agent":{"type":"boolean","example":false},"admin":{"type":"boolean","example":true},"supervisor":{"type":"boolean","example":true}}}},"components/schemas/customer_lite":{"id":"components/schemas/customer_lite","kind":"json-schema","title":"CustomerLite","data":{"type":"object","title":"CustomerLite","properties":{"id":{"type":"string","example":"91989a87"},"first_name":{"type":"string","example":"javier"},"last_name":{"type":"string","example":"Salinas"},"email":{"type":"string","format":"email","example":"javier@example.com"},"phone":{"type":"string","example":5933505692996}}}},"components/schemas/deal":{"id":"components/schemas/deal","kind":"json-schema","title":"deal","data":{"type":"object","properties":{"id":{"type":"string","example":"9fb882221"},"name":{"type":"string","example":"Neptu"},"amount":{"type":"string","example":"150000.0"},"currency":{"type":"string","example":"$"},"funnel_name":{"type":"string","example":"Negociaciones"},"stage":{"type":"string","example":"Calificado!"},"agent":{"$ref":"#/components/schemas/agent"},"customer":{"$ref":"#/components/schemas/customer_lite"},"channel":{"type":["string","null"]}}}},"components/schemas/index":{"id":"components/schemas/index","kind":"json-schema","title":"index","data":{"type":"object","properties":{"total":{"type":"integer","example":2},"total_page":{"type":"integer","example":1},"deals":{"type":"array","items":{"$ref":"#/components/schemas/deal"}}}}},"components/schemas/create":{"id":"components/schemas/create","kind":"json-schema","title":"create","data":{"type":"object","properties":{"message":{"type":"string","example":"deal was created successfully"},"deal":{"$ref":"#/components/schemas/deal"}}}},"components/schemas/get":{"id":"components/schemas/get","kind":"json-schema","title":"get","data":{"type":"object","properties":{"message":{"type":"string","example":"deal found successfully"},"deal":{"$ref":"#/components/schemas/deal"}}}},"components/schemas/update":{"id":"components/schemas/update","kind":"json-schema","title":"update","data":{"type":"object","properties":{"message":{"type":"string","example":"deal was updated successfully"},"deal":{"$ref":"#/components/schemas/deal"}}}},"components/schemas/send_api_message":{"id":"components/schemas/send_api_message","kind":"json-schema","title":"SendWhatsAppNotificationByIdRequest","data":{"type":"object","title":"SendWhatsAppNotificationByIdRequest","required":["phone_number","internal_id","template_params"],"properties":{"phone_number":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de teléfono del destinatario (formato internacional con +)"},"children":[]}]}]}],"example":"+593999999999"},"internal_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID interno del template de WhatsApp (gupshup_template_id)"},"children":[]}]}]}],"example":"997dd550-c8d8-4bf7-ad98-a5ac4844a1ed"},"template_params":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de parámetros para rellenar el template"},"children":[]}]}]}],"items":{"type":"string"},"example":["test 1","test 2","test 3"]},"media_url":{"type":"string","description":"URL del archivo multimedia (solo si el template incluye media)","example":"https://mercately.com/example.png"},"agent_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del agente al que se asignará el cliente"},"children":[]}]}]}],"example":980},"tags":{"type":"array","description":"Array de etiquetas para asignar al cliente","items":{"type":"object","properties":{"name":{"type":"string","description":"Nombre de la etiqueta"},"value":{"type":"boolean","description":"true para asignar la etiqueta, false para removerla"}},"example":[{"name":"at","value":true}]}}}}},"components/schemas/send_qr_message":{"id":"components/schemas/send_qr_message","kind":"json-schema","title":"SendWhatsAppQrMessageRequest","data":{"type":"object","title":"SendWhatsAppQrMessageRequest","required":["phone_number"],"properties":{"phone_number":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de teléfono del destinatario (formato internacional con +)"},"children":[]}]}]}],"example":"+593999999999"},"message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Mensaje de texto a enviar (requerido si no se envía media_url)"},"children":[]}]}]}],"example":"Hello, this is a test message"},"media_url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL del archivo multimedia (requerido si no se envía message). Solo se permiten imágenes JPG/JPEG/PNG y archivos PDF"},"children":[]}]}]}],"example":"https://mercately.com/example.png"},"first_name":{"type":"string","description":"Nombre del cliente (opcional)","example":"John"},"last_name":{"type":"string","description":"Apellido del cliente (opcional)","example":"Doe"},"email":{"type":"string","description":"Email del cliente (opcional)","example":"john@example.com"},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección del cliente (opcional)"},"children":[]}]}]}],"example":"123 Main St"},"city":{"type":"string","description":"Ciudad del cliente (opcional)","example":"Quito"},"state":{"type":"string","description":"Estado/Provincia del cliente (opcional)","example":"Pichincha"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal del cliente (opcional)"},"children":[]}]}]}],"example":"170101"},"notes":{"type":"string","description":"Notas sobre el cliente (opcional)","example":"Customer notes"},"agent_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del agente al que se asignará el cliente (opcional)"},"children":[]}]}]}],"example":980},"tags":{"type":"array","description":"Array de etiquetas para asignar al cliente (opcional)","items":{"type":"object","properties":{"name":{"type":"string","description":"Nombre de la etiqueta"},"value":{"type":"boolean","description":"true para asignar la etiqueta, false para removerla"}}},"example":[{"name":"at","value":true}]},"custom_fields":{"type":"array","description":"Array de campos personalizados del cliente (opcional)","items":{"type":"object","properties":{"identifier":{"type":"string","description":"Identificador del campo personalizado"},"value":{"type":"string","description":"Valor del campo personalizado"}}},"example":[{"identifier":"custom_field_1","value":"Some value"}]},"funnel_name":{"type":"string","description":"Nombre del embudo para crear un deal (opcional, requiere stage)","example":"Sales Funnel"},"stage":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Etapa del embudo para crear un deal (opcional, requiere funnel_name)"},"children":[]}]}]}],"example":"Lead"}}}},"components/schemas/template":{"id":"components/schemas/template","kind":"json-schema","title":"template","data":{"type":"object","properties":{"id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador numérico, estable desde la creación."},"children":[]}]}]}],"example":1234},"internal_id":{"type":["string","null"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador del proveedor (el que se usa en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"send_notification_by_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"). Puede ser "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" mientras la plantilla está "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pending"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"7f3f0c1e-1f6b-4a43-9a25-0d1a5f0f0a11"},"name":{"type":"string","example":"order_update"},"status":{"type":"string","enum":["pending","submitted","accepted","rejected","disabled","deleted"],"example":"submitted"},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"example":"UTILITY"},"language":{"type":"string","example":"spanish"},"template_type":{"type":"string","enum":["text","image","video","document","carousel"],"example":"text"},"text":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Texto guardado. En plantillas "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accepted"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" cada variable se ve como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"*"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; usa "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" para leer el contenido."},"children":[]}]}]}],"example":"Hola {{1}}, tu pedido {{2}} va en camino"},"body":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Texto con las variables como "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{2}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"… Úsalo para leer el contenido de la plantilla."},"children":[]}]}]}],"example":"Hola {{1}}, tu pedido {{2}} va en camino"},"header_text":{"type":["string","null"],"example":"Tu pedido"},"interactive_action":{"type":["string","null"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Se deduce de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"quick_reply"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"call_to_action"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},"buttons":{"type":["array","null"],"items":{"type":"object"}},"cards":{"type":["array","null"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tarjetas del carrusel ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"headerType"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"body"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"example"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}],"items":{"type":"object"}},"offer":{"type":["object","null"],"properties":{"title":{"type":"string","example":"Solo hoy"},"expires_in_minutes":{"type":["integer","null"],"example":120}}},"reason":{"type":["string","null"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Motivo del rechazo cuando "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" es "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"created_at":{"type":"string","format":"date-time","example":"2026-10-07T12:40:37.636Z"}}}},"components/schemas/template_error":{"id":"components/schemas/template_error","kind":"json-schema","title":"template_error","data":{"type":"object","properties":{"message":{"type":"string","example":"Template could not be created"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"text"},"code":{"type":"string","example":"variables_not_sequential"},"detail":{"type":"string","example":"variables must be sequential starting at {{1}}"}}}},"template":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"provider_rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". La plantilla guardada, con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"rejected"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"$ref":"#/components/schemas/template"}}}},"components/schemas/flow":{"id":"components/schemas/flow","kind":"json-schema","title":"flow","data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"integer","example":2},"enabled":{"type":"boolean"},"whatsapp":{"type":"boolean"},"messenger":{"type":"boolean"},"instagram":{"type":"boolean"}}}},"components/schemas/get_flows":{"id":"components/schemas/get_flows","kind":"json-schema","title":"get_flows","data":{"type":"object","properties":{"results":{"type":"integer","example":1},"total_pages":{"type":"integer","example":1},"flows":{"type":"array","items":{"$ref":"#/components/schemas/flow"}}}}},"components/schemas/deactivate_flows":{"id":"components/schemas/deactivate_flows","kind":"json-schema","title":"deactivate_flows","data":{"type":"object","properties":{"message":{"type":"string","example":"Flows by platform successfully deactivated"},"info":{"type":"object","properties":{"data":{"type":"object"}},"example":{"data":{}}}}}},"components/schemas/pre_activate_flow":{"id":"components/schemas/pre_activate_flow","kind":"json-schema","title":"pre_activate_flow","data":{"type":"object","properties":{"message":{"type":"string","example":"Flow successfully preactivated"},"info":{"type":"array"}}}},"schema_0":{"kind":"json-schema","data":{"type":"object","properties":{"agents":{"type":"array","items":{"$ref":"#/components/schemas/agents"}}}},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"number","example":1},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2024-01-01"},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2024-12-31"},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"string","enum":["cedula","pasaporte","ruc","rut","otro"]},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"type":"string","example":"1234567890"},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"type":"string","enum":["whatsapp","messenger","instagram"]},"id":"schema_6"},"schema_7":{"kind":"json-schema","data":{"type":"string","enum":["asc","desc"]},"id":"schema_7"},"schema_8":{"kind":"json-schema","data":{"type":"object","properties":{"results":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número total de resultados"},"children":[]}]}]}],"example":1},"total_pages":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número total de páginas"},"children":[]}]}]}],"example":1},"customers":{"type":"array","description":"Lista de clientes","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID interno del cliente","example":12345},"first_name":{"type":"string","description":"Nombre del cliente","example":"Juan"},"last_name":{"type":"string","description":"Apellido del cliente","example":"Pérez"},"email":{"type":"string","format":"email","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Correo electrónico del cliente"},"children":[]}]}]}],"example":"juan@example.com"},"phone":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono del cliente en formato internacional"},"children":[]}]}]}],"example":"+593999999999"},"id_type":{"type":"string","description":"Tipo de documento de identidad","enum":["cedula","pasaporte","ruc","rut","otro"],"example":"cedula"},"id_number":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de documento de identidad"},"children":[]}]}]}],"example":"1234567890"},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección del cliente"},"children":[]}]}]}],"example":"Av. Principal 123"},"city":{"type":"string","description":"Ciudad del cliente","example":"Quito"},"state":{"type":"string","description":"Estado/Provincia del cliente","example":"Pichincha"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal"},"children":[]}]}]}],"example":"170101"},"notes":{"type":"string","description":"Notas adicionales del cliente","example":"Cliente preferencial"},"created_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de creación del cliente"},"children":[]}]}]}],"example":"2024-01-15T10:30:00.000Z"},"updated_at":{"type":"string","format":"date-time","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fecha de última actualización"},"children":[]}]}]}],"example":"2024-01-20T15:45:00.000Z"}}}}}},"id":"schema_8"},"schema_9":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Bad Request"}}},"id":"schema_9"},"schema_10":{"kind":"json-schema","data":{"type":"object","properties":{"customer":{"type":"object","description":"Datos del cliente","properties":{"first_name":{"type":"string","description":"Nombre del cliente","example":"Juan"},"last_name":{"type":"string","description":"Apellido del cliente","example":"Pérez"},"email":{"type":"string","format":"email","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Correo electrónico del cliente"},"children":[]}]}]}],"example":"juan@example.com"},"phone":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono del cliente en formato internacional"},"children":[]}]}]}],"example":"+593999999999"},"id_type":{"type":"string","description":"Tipo de documento de identidad","enum":["cedula","pasaporte","ruc","rut","otro"],"example":"cedula"},"id_number":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de documento de identidad"},"children":[]}]}]}],"example":"1234567890"},"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección del cliente"},"children":[]}]}]}],"example":"Av. Principal 123"},"city":{"type":"string","description":"Ciudad del cliente","example":"Quito"},"state":{"type":"string","description":"Estado/Provincia del cliente","example":"Pichincha"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal"},"children":[]}]}]}],"example":"170101"},"customer_addresses_attributes":{"type":"array","description":"Direcciones adicionales del cliente","items":{"type":"object","properties":{"address":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dirección"},"children":[]}]}]}],"example":"Calle Secundaria 456"},"city":{"type":"string","description":"Ciudad","example":"Guayaquil"},"state":{"type":"string","description":"Estado/Provincia","example":"Guayas"},"zip_code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código postal"},"children":[]}]}]}],"example":"090101"},"country_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del país"},"children":[]}]}]}],"example":1},"latitude":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Latitud de la dirección"},"children":[]}]}]}],"example":"-2.1894"},"longitude":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Longitud de la dirección"},"children":[]}]}]}],"example":"-79.8891"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la dirección"},"children":[]}]}]}],"example":"Oficina principal"},"main":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Indica si es la dirección principal"},"children":[]}]}]}],"example":true}}}},"notes":{"type":"string","description":"Notas adicionales del cliente","example":"Cliente VIP"}}},"agent_id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del agente asignado al cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}],"example":1},"tags":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de etiquetas del cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}],"items":{"type":"object","properties":{"name":{"type":"string","description":"Nombre de la etiqueta","example":"VIP"},"value":{"type":"boolean","description":"Valor de la etiqueta","example":true}}}},"custom_fields":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de campos personalizados del cliente (puede estar en nivel raíz o dentro de customer)"},"children":[]}]}]}],"items":{"type":"object","properties":{"field_name":{"type":"string","description":"Nombre del campo personalizado","example":"preferencia_contacto"},"field_content":{"type":"string","description":"Contenido del campo personalizado","example":"WhatsApp"}}}}}},"id":"schema_10"},"schema_11":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Customer created successfully"},"customer":{"type":"object","properties":{"id":{"type":"integer","example":12345},"first_name":{"type":"string","example":"Juan"},"last_name":{"type":"string","example":"Pérez"},"email":{"type":"string","example":"juan@example.com"},"phone":{"type":"string","example":"+593999999999"},"id_type":{"type":"string","example":"cedula"},"id_number":{"type":"string","example":"1234567890"},"address":{"type":"string","example":"Av. Principal 123"},"city":{"type":"string","example":"Quito"},"state":{"type":"string","example":"Pichincha"},"zip_code":{"type":"string","example":"170101"},"notes":{"type":"string","example":"Cliente VIP"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"}}}}},"id":"schema_11"},"schema_12":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Bad Request"},"errors":{"type":"array","items":{"type":"string"}}}},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"number"},"id":"schema_13"},"schema_14":{"kind":"json-schema","data":{"type":"object","properties":{"whatsapp_conversations":{"type":"array","items":{"$ref":"#/components/schemas/whatsapp_api_message"}},"total_pages":{"type":"integer","example":1}}},"id":"schema_14"},"schema_15":{"kind":"json-schema","data":{"type":"object","properties":{"messenger_conversations":{"type":"array","items":{"$ref":"#/components/schemas/messenger_message"}},"total_pages":{"type":"integer","example":1}}},"id":"schema_15"},"schema_16":{"kind":"json-schema","data":{"type":"object","properties":{"instagram_messages":{"type":"array","items":{"$ref":"#/components/schemas/messenger_message"}},"total_pages":{"type":"integer","example":1}}},"id":"schema_16"},"schema_17":{"kind":"json-schema","data":{"type":"string","example":"Negociaciones"},"id":"schema_17"},"schema_18":{"kind":"json-schema","data":{"type":"string","example":"Calificado"},"id":"schema_18"},"schema_19":{"kind":"json-schema","data":{"type":"integer","example":1},"id":"schema_19"},"schema_20":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"stage not found"}}},"id":"schema_20"},"schema_21":{"kind":"json-schema","data":{"type":"object","properties":{"funnel_name":{"type":"string","example":"Negociaciones"},"stage":{"type":"string","example":"Calificado"},"deal":{"type":"object","properties":{"amount":{"type":"string","example":"150000"},"name":{"type":"string"},"customer_id":{"type":"string","example":"91989a87"},"agent_id":{"type":"integer"},"lead_status":{"type":"string","enum":["cold","warm","hot"],"example":"cold"},"opening_date":{"type":"string","format":"date","example":"2024-05-16"},"expected_close_date":{"type":"string","format":"date","example":"2024-05-23"}}}},"required":["funnel_name","stage","deal"]},"id":"schema_21"},"schema_22":{"kind":"json-schema","data":{"type":"object","properties":{"errors":{"type":"string","example":"unprocessable entity"}}},"id":"schema_22"},"schema_23":{"kind":"json-schema","data":{"type":"string"},"id":"schema_23"},"schema_24":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"deal not found"}}},"id":"schema_24"},"schema_25":{"kind":"json-schema","data":{"type":"string","example":"9c6d04017"},"id":"schema_25"},"schema_26":{"kind":"json-schema","data":{"type":"object","properties":{"funnel_name":{"type":"string","example":"Negociaciones"},"stage":{"type":"string","example":"Calificado"},"deal":{"type":"object","properties":{"amount":{"type":"string","example":"150000"},"name":{"type":"string","example":"Ricardo - pavo"},"customer_id":{"type":"string","example":"91989a87"},"lead_status":{"type":"string","example":"cold"},"opening_date":{"type":"string","format":"date","example":"2024-05-16"},"expected_close_date":{"type":"string","format":"date","example":"2024-05-23"},"funnel_name":{"type":"string","example":"Negociaciones"},"stage":{"type":"string","example":"Calificado"}}}},"required":["funnel_name","stage","deal"]},"id":"schema_26"},"schema_27":{"kind":"json-schema","data":{"type":"string","example":93390836},"id":"schema_27"},"schema_28":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"deal was deleted successfully"}}},"id":"schema_28"},"schema_29":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Error deleting deal"}}},"id":"schema_29"},"schema_30":{"kind":"json-schema","data":{"type":"object","title":"Messenger conversations","properties":{"page":{"type":"number"},"results_per_page":{"type":"number"},"unassigned":{"type":"boolean"}}},"id":"schema_30"},"schema_31":{"kind":"json-schema","data":{"type":"object","properties":{"results":{"type":"integer","example":155},"total_pages":{"type":"integer","example":2},"facebook_messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"621osgzy4696283"},"first_name":{"type":"string","example":"Claudia"},"last_name":{"type":"string","example":"Funnel"},"email":{"type":["string","null"],"example":"null"},"message_count":{"type":"integer","example":3},"last_interaction":{"type":"string","example":"2023-04-17T05:08:17.085Z"},"agent_id":{"type":"integer","example":4637}}}}}},"id":"schema_31"},"schema_32":{"kind":"json-schema","data":{"type":"object","title":"WhatsApp Business Api templates"},"id":"schema_32"},"schema_33":{"kind":"json-schema","data":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","example":"Hola *! ✋"},"status":{"type":"string","example":"accepted"},"template_type":{"type":"string","example":"text"},"internal_id":{"type":"string","example":"c0c040f6-9809-404a-961c-637b109ef410"}}}}}},"id":"schema_33"},"schema_34":{"kind":"json-schema","data":{"type":"object","required":["name","language","category"],"properties":{"name":{"type":"string","maxLength":512,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Se normaliza (minúsculas, espacios a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", solo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"a-z"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"0-9"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"_"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"). Único por retailer."},"children":[]}]}]}],"example":"order_update"},"language":{"type":"string","enum":["spanish","english","es_ES","en_US"]},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"]},"template_type":{"type":"string","enum":["text","image","video","document","carousel"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio salvo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"text":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cuerpo del mensaje, máx. 1024 caracteres sin contar variables. Obligatorio salvo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"Hola {{1}}, tu pedido {{2}} va en camino"},"body_examples":{"type":"array","items":{"type":"string"},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Un valor de ejemplo por variable, en orden. Obligatorio si "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" tiene variables."},"children":[]}]}]}],"example":["Ana","ORD-1042"]},"header_text":{"type":"string","maxLength":60,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"media_url":{"type":"string","format":"uri","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"https"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" pública del archivo. Obligatoria en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" y "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"document"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"buttons":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUICK_REPLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (hasta 3) o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"URL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" / "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PHONE_NUMBER"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (hasta 1 de cada uno). No se mezclan los dos grupos."},"children":[]}]}]}],"items":{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["QUICK_REPLY","URL","PHONE_NUMBER"]},"text":{"type":"string","maxLength":20},"url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL estática, o dinámica terminada en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{{1}}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"example":{"type":"array","items":{"type":"string"},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"URL completa de muestra. Solo con URL dinámica."},"children":[]}]}]}]},"phone_number":{"type":"string","example":"+573001234567"}}}},"offer":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Oferta limitada. Solo "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MARKETING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" con "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"template_type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" o "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; no se envía "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"buttons"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["title","url"],"properties":{"title":{"type":"string","maxLength":16},"url":{"type":"object","required":["text","url"],"properties":{"text":{"type":"string"},"url":{"type":"string"},"example":{"type":"array","items":{"type":"string"}}}},"expires_in_minutes":{"type":"integer","minimum":1},"code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obligatorio si hay "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in_minutes"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"code_button_text":{"type":"string","maxLength":25}}},"cards_media_type":{"type":"string","enum":["image","video"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"carousel"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"cards":{"type":"array","minItems":2,"maxItems":10,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"carousel"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Todas las tarjetas llevan los mismos tipos de botón en el mismo orden."},"children":[]}]}]}],"items":{"type":"object","required":["body","media_url","buttons"],"properties":{"body":{"type":"string","maxLength":160},"body_examples":{"type":"array","items":{"type":"string"}},"media_url":{"type":"string","format":"uri"},"buttons":{"type":"array","minItems":1,"maxItems":2,"items":{"type":"object"}}}}},"add_security_recommendation":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"code_expiry_minutes":{"type":"integer","minimum":1,"maximum":90,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"code_example":{"type":"string","maxLength":30,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo en "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AUTHENTICATION"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Por defecto "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"123456"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"team_id":{"type":"integer","description":"Equipo del retailer al que se asigna la plantilla."},"integration_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de WhatsApp con el que se crea. Obligatorio si hay más de uno activo (ver "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET .../integrations"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},"integration_platform":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo para confirmar la plataforma de "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"integration_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; se deduce sola."},"children":[]}]}]}]}}},"id":"schema_34"},"schema_35":{"kind":"json-schema","data":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/template"}}},"id":"schema_35"},"schema_36":{"kind":"json-schema","data":{"type":"object","properties":{"integrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"int-1"},"platform":{"type":"string","example":"whatsapp_gupshup_messages"},"name":{"type":"string","example":"Ventas"},"phone_number":{"type":"string","example":"+573001234567"},"status":{"type":"string","example":"active"}}}}}},"id":"schema_36"},"schema_37":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Resource not found"},"errors":{"type":"array","items":{}}}},"id":"schema_37"},"schema_38":{"kind":"json-schema","data":{"type":"object","properties":{"customer_id":{"type":"string","example":"d126hhh","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ID del customer (web_id). Requerido si no se proporciona customer_phone"},"children":[]}]}]}]},"customer_phone":{"type":"string","example":"+573201548587","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono del customer (formato internacional con +). Requerido si no se proporciona customer_id"},"children":[]}]}]}]},"platform":{"type":"string","enum":["whatsapp","messenger","instagram"],"example":"whatsapp","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plataforma sobre la cual se realizará la búsqueda para desactivar flows específicos para el customer. Valores permitidos: 'whatsapp', 'messenger' o 'instagram'"},"children":[]}]}]}]}},"required":["platform"]},"id":"schema_38"},"schema_39":{"kind":"json-schema","data":{"type":"object","properties":{"customer_id":{"type":"string","example":"d126hhh","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Id del customer(Opcional, siempre y cuando se busque por customer_phone)"},"children":[]}]}]}]},"customer_phone":{"type":"string","example":"+573201548587","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Teléfono del customer(Opcional, siempre y cuando se busque por customer_id)"},"children":[]}]}]}]},"flow_id":{"type":"string","example":"d82ijd8","description":"Id del flow"},"platform":{"type":"string","example":"whatsapp","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Plataforma sobre la cual se realizará la búsqueda para pre-activar un flow específico para el customer. Sólo se permiten los valores de 'whatsapp', 'messenger' o 'instagram'"},"children":[]}]}]}]}},"required":["customer_id","customer_phone","flow_id","platform"]},"id":"schema_39"},"schema_40":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2023-05-17"},"id":"schema_40"},"schema_41":{"kind":"json-schema","data":{"type":"integer","default":1},"id":"schema_41"},"schema_42":{"kind":"json-schema","data":{"type":"object","properties":{"orders":{"type":"array","items":{"type":"object","properties":{"web_id":{"type":"string"},"status":{"type":"string"},"subtotal":{"type":"string"},"tax_amount":{"type":"string"},"total":{"type":"string"},"shipping_value":{"type":"string"},"notes":{"type":"string"},"sales_channel":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"archived":{"type":"boolean"},"customer":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country_id":{"type":"string"},"zip_code":{"type":"string"},"id_number":{"type":"string"},"document_label":{"type":"string"},"web_id":{"type":"string"}}},"order_items":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"integer"},"unit_price":{"type":"string"},"total":{"type":"string"},"title":{"type":"string"},"sku":{"type":"string"},"image_url":{"oneOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cadena vacía cuando no hay producto asociado"},"children":[]}]}]}],"example":""},{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Objeto vacío cuando hay producto pero sin imágenes, o objeto con url y fileName cuando hay imágenes"},"children":[]}]}]}],"properties":{"url":{"type":"string"},"fileName":{"type":"string"}}}]}}}}}}},"total_pages":{"type":"integer"}}},"id":"schema_42"},"schema_43":{"kind":"json-schema","data":{"type":"object","title":"Order","properties":{"order":{"type":"object","properties":{"sales_channel":{"type":"string"},"notes":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip_code":{"type":"string"},"delivery_method":{"type":"string","enum":["send_order","store_pickup"]},"status":{"type":"string","enum":["pending","canceled","success"]},"shipping_value":{"type":"number","format":"float"},"customer_attributes":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}},"order_items_attributes":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"quantity":{"type":"integer"},"unit_price":{"type":"number","format":"float"}}}}}}}},"id":"schema_43"},"schema_44":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string"},"order":{"type":"object","properties":{"web_id":{"type":"string"},"status":{"type":"string"},"subtotal":{"type":"string"},"tax_amount":{"type":"string"},"total":{"type":"string"},"shipping_value":{"type":"string"},"sales_channel":{"type":"string"},"notes":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"archived":{"type":"boolean"},"customer":{"type":"object"},"order_items":{"type":"array","items":{"type":"object"}}}}}},"id":"schema_44"},"schema_45":{"kind":"json-schema","data":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}},"id":"schema_45"},"schema_46":{"kind":"json-schema","data":{"type":"object","title":"Order","properties":{"order":{"type":"object","properties":{"sales_channel":{"type":"string"},"notes":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip_code":{"type":"string"},"delivery_method":{"type":"string","enum":["send_order","store_pickup"]},"status":{"type":"string","enum":["pending","canceled","success"]},"shipping_value":{"type":"number","format":"float"},"customer_attributes":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string","description":"Must be in international format, including the international dialing code."}},"required":["email","phone"]},"order_items_attributes":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"quantity":{"type":"integer"},"unit_price":{"type":"number","format":"float"}},"required":["product_id","quantity"]}}}}}},"id":"schema_46"},"schema_47":{"kind":"json-schema","data":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object"}},"total_pages":{"type":"integer"}}},"id":"schema_47"},"schema_48":{"kind":"json-schema","data":{"type":"object","properties":{"product":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"sku":{"type":"string"},"quantity":{"type":"integer"},"active":{"type":"boolean"},"price":{"type":"number"},"subcategory_id":{"type":"string"},"image_urls":{"type":"array","items":{"type":"string"}},"options":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Máximo 3 opciones"},"children":[]}]}]}],"items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}}},"variants":{"type":"array","items":{"type":"object","properties":{"price":{"type":"number"},"wholesale_price":{"type":"number"},"sku":{"type":"string"},"quantity":{"type":"number"},"image":{"type":"string"},"variant_url":{"type":"string"},"option1":{"type":"string"},"option2":{"type":"string"},"option3":{"type":"string"}}}}}}}},"id":"schema_48"},"schema_49":{"kind":"json-schema","data":{"type":"object"},"id":"schema_49"},"schema_50":{"kind":"json-schema","data":{"type":"object","properties":{"product":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"sku":{"type":"string"},"quantity":{"type":"integer"},"active":{"type":"boolean"},"price":{"type":"number"},"subcategory_id":{"type":"string"},"image_urls":{"type":"array","items":{"type":"string"}},"options":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Opciones del producto (ej: Talla, Color). Si se envía, las nuevas opciones se agregan a las existentes."},"children":[]}]}]}],"items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}}},"variants":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Combinaciones de variantes. Si se envía, las nuevas combinaciones se agregan a las existentes."},"children":[]}]}]}],"items":{"type":"object","properties":{"price":{"type":"number"},"wholesale_price":{"type":"number"},"sku":{"type":"string"},"quantity":{"type":"number"},"image":{"type":"string"},"variant_url":{"type":"string"},"option1":{"type":"string"},"option2":{"type":"string"},"option3":{"type":"string"}}}}}}}},"id":"schema_50"},"schema_51":{"kind":"json-schema","data":{"type":"object","required":["variant"],"properties":{"variant":{"type":"object","required":["option1"],"properties":{"option1":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Valor de la primera opción (debe existir en el producto)"},"children":[]}]}]}],"example":"XXL"},"option2":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Valor de la segunda opción (opcional)"},"children":[]}]}]}],"example":"Azul"},"option3":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Valor de la tercera opción (opcional)"},"children":[]}]}]}],"example":"Algodón"},"price":{"type":"number","description":"Precio de venta","example":35},"wholesale_price":{"type":"number","description":"Precio mayorista","example":28},"quantity":{"type":"integer","description":"Cantidad en stock","example":10},"sku":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código SKU único"},"children":[]}]}]}],"example":"CAMISETA-XXL-AZUL"},"selling_without_stock":{"type":"boolean","description":"Permitir venta sin stock","example":false},"variant_url":{"type":"string","description":"URL de la variante","example":"https://example.com/product?variant=123"}}}}},"id":"schema_51"},"schema_52":{"kind":"json-schema","data":{"type":"object","properties":{"variant":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Solo envía los campos que deseas actualizar"},"children":[]}]}]}],"properties":{"price":{"type":"number","description":"Precio de venta","example":150},"wholesale_price":{"type":"number","description":"Precio mayorista","example":120},"quantity":{"type":"integer","description":"Cantidad en stock","example":50},"sku":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Código SKU único"},"children":[]}]}]}],"example":"VAR-SM-001"},"selling_without_stock":{"type":"boolean","description":"Permitir venta sin stock","example":false},"variant_url":{"type":"string","description":"URL de la variante","example":"https://example.com/product?variant=123"},"image":{"type":"string","format":"binary","description":"Imagen de la variante"}}}}},"id":"schema_52"},"schema_53":{"kind":"json-schema","data":{"type":"integer","minimum":1,"default":1},"id":"schema_53"},"schema_54":{"kind":"json-schema","data":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único de la categoría"},"children":[]}]}]}],"example":"ljsJpi0fTR"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría"},"children":[]}]}]}],"example":"Tecnología"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría"},"children":[]}]}]}],"example":""},"products_count":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de productos activos en la categoría"},"children":[]}]}]}],"example":7},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización de la categoría"},"children":[]}]}]}],"example":1},"subcategories":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista de subcategorías"},"children":[]}]}]}],"items":{"type":"object","properties":{"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único de la subcategoría"},"children":[]}]}]}],"example":"GETPvRKnBD"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la subcategoría"},"children":[]}]}]}],"example":"Alámbricos"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la subcategoría"},"children":[]}]}]}],"example":""},"products_count":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de productos activos en la subcategoría"},"children":[]}]}]}],"example":3},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización de la subcategoría"},"children":[]}]}]}],"example":1}}}}}}},"total_pages":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Total de páginas disponibles"},"children":[]}]}]}],"example":1}}},"id":"schema_54"},"schema_55":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized"}}},"id":"schema_55"},"schema_56":{"kind":"json-schema","data":{"type":"object","properties":{"message":{"type":"string","example":"Resource not found"}}},"id":"schema_56"},"schema_57":{"kind":"json-schema","data":{"type":"object","required":["category"],"properties":{"category":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría (requerido)"},"children":[]}]}]}],"example":"Electrónica"},"description":{"type":"string","maxLength":250,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría (máximo 250 caracteres)"},"children":[]}]}]}],"example":"Productos electrónicos y dispositivos tecnológicos"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización. Si no se proporciona, se asigna automáticamente"},"children":[]}]}]}],"example":1},"subcategories_attributes":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de subcategorías a crear"},"children":[]}]}]}],"items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la subcategoría (requerido)"},"children":[]}]}]}],"example":"Smartphones"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la subcategoría"},"children":[]}]}]}],"example":"Teléfonos inteligentes y accesorios"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización"},"children":[]}]}]}],"example":1}}}}}}}},"id":"schema_57"},"schema_58":{"kind":"json-schema","data":{"type":"object","properties":{"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único de la categoría"},"children":[]}]}]}],"example":"I7ROmS7Jui"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría"},"children":[]}]}]}],"example":"Electrónica"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría"},"children":[]}]}]}],"example":"Productos electrónicos y dispositivos tecnológicos"},"products_count":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de productos activos en la categoría"},"children":[]}]}]}],"example":0},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización de la categoría"},"children":[]}]}]}],"example":1},"subcategories":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista de subcategorías"},"children":[]}]}]}],"items":{"type":"object","properties":{"web_id":{"type":"string","example":"bas9UxSaUq"},"name":{"type":"string","example":"Smartphones"},"description":{"type":"string","example":"Teléfonos inteligentes y accesorios"},"products_count":{"type":"integer","example":0},"order":{"type":"integer","example":1}}}}}},"id":"schema_58"},"schema_59":{"kind":"json-schema","data":{"type":"string","example":"I7ROmS7Jui"},"id":"schema_59"},"schema_60":{"kind":"json-schema","data":{"type":"object","required":["category"],"properties":{"category":{"type":"object","properties":{"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría"},"children":[]}]}]}],"example":"Electrónica"},"description":{"type":"string","maxLength":250,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría (máximo 250 caracteres)"},"children":[]}]}]}],"example":"Productos electrónicos actualizados"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización"},"children":[]}]}]}],"example":1},"subcategories_attributes":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de subcategorías."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para actualizar: incluye el campo 'id' con el web_id de la subcategoría"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para crear: omite el campo 'id'"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Para eliminar: incluye el campo 'id' y '_destroy: true'"},"children":[]}]}]}]}],"items":{"type":"object","properties":{"id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Web ID de la subcategoría (requerido para actualizar o eliminar)"},"children":[]}]}]}],"example":"bas9UxSaUq"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la subcategoría"},"children":[]}]}]}],"example":"Smartphones"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la subcategoría"},"children":[]}]}]}],"example":"Teléfonos inteligentes actualizados"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización"},"children":[]}]}]}],"example":1},"_destroy":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si es true, elimina la subcategoría"},"children":[]}]}]}],"example":false}}}}}}}},"id":"schema_60"},"schema_61":{"kind":"json-schema","data":{"type":"object","properties":{"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único de la categoría"},"children":[]}]}]}],"example":"I7ROmS7Jui"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría"},"children":[]}]}]}],"example":"Electrónica"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría"},"children":[]}]}]}],"example":"Productos electrónicos actualizados"},"products_count":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Número de productos activos en la categoría"},"children":[]}]}]}],"example":7},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización de la categoría"},"children":[]}]}]}],"example":1},"subcategories":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Lista de subcategorías"},"children":[]}]}]}],"items":{"type":"object","properties":{"web_id":{"type":"string","example":"bas9UxSaUq"},"name":{"type":"string","example":"Smartphones"},"description":{"type":"string","example":"Teléfonos inteligentes actualizados"},"products_count":{"type":"integer","example":3},"order":{"type":"integer","example":1}}}}}},"id":"schema_61"},"schema_62":{"kind":"json-schema","data":{"type":"object","required":["category"],"properties":{"category":{"type":"object","properties":{"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la categoría"},"children":[]}]}]}],"example":"Electrónica"},"description":{"type":"string","maxLength":250,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la categoría (máximo 250 caracteres)"},"children":[]}]}]}],"example":"Productos electrónicos actualizados"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización"},"children":[]}]}]}],"example":1},"subcategories_attributes":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Array de subcategorías"},"children":[]}]}]}],"items":{"type":"object","properties":{"web_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Web ID de la subcategoría"},"children":[]}]}]}],"example":"bas9UxSaUq"},"name":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Nombre de la subcategoría"},"children":[]}]}]}],"example":"Smartphones"},"description":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Descripción de la subcategoría"},"children":[]}]}]}],"example":"Teléfonos inteligentes actualizados"},"order":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Orden de visualización"},"children":[]}]}]}],"example":1},"_destroy":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Si es true, elimina la subcategoría"},"children":[]}]}]}],"example":false}}}}}}}},"id":"schema_62"},"schema_63":{"kind":"json-schema","data":{"type":"object","properties":{"web_id":{"type":"string","example":"I7ROmS7Jui"},"name":{"type":"string","example":"Electrónica"},"description":{"type":"string","example":"Productos electrónicos actualizados"},"products_count":{"type":"integer","example":7},"order":{"type":"integer","example":1},"subcategories":{"type":"array","items":{"type":"object","properties":{"web_id":{"type":"string","example":"bas9UxSaUq"},"name":{"type":"string","example":"Smartphones"},"description":{"type":"string","example":"Teléfonos inteligentes actualizados"},"products_count":{"type":"integer","example":3},"order":{"type":"integer","example":1}}}}}},"id":"schema_63"},"schema_64":{"kind":"json-schema","data":{"type":"object","properties":{"web_id":{"type":"string","example":"I7ROmS7Jui"},"name":{"type":"string","example":"Electrónica"},"description":{"type":"string","example":"Productos electrónicos y dispositivos tecnológicos"},"products_count":{"type":"integer","example":0},"order":{"type":"integer","example":1},"subcategories":{"type":"array","items":{"type":"object","properties":{"web_id":{"type":"string","example":"bas9UxSaUq"},"name":{"type":"string","example":"Smartphones"},"description":{"type":"string","example":"Teléfonos inteligentes y accesorios"},"products_count":{"type":"integer","example":0},"order":{"type":"integer","example":1}}}}}},"id":"schema_64"},"schema_65":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2026-06-01"},"id":"schema_65"},"schema_66":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2026-07-01"},"id":"schema_66"},"schema_67":{"kind":"json-schema","data":{"type":"object","properties":{"start_date":{"type":"string","example":"2026-06-01"},"end_date":{"type":"string","example":"2026-07-01"},"total_leads":{"type":"integer","example":30},"by_platform":{"type":"object","description":"Desglose de los leads generados clasificados por cada plataforma/canal.","properties":{"whatsapp":{"type":"integer","example":5},"instagram":{"type":"integer","example":1},"messenger":{"type":"integer","example":2},"no_channel":{"type":"integer","example":22}}}}},"id":"schema_67"},"schema_68":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"El formato de fecha provisto en start_date es inválido."}}},"id":"schema_68"},"schema_69":{"kind":"json-schema","data":{"type":"object","properties":{"start_date":{"type":"string","example":"2026-06-01"},"end_date":{"type":"string","example":"2026-07-01"},"funnels":{"type":"array","description":"Lista de embudos de venta disponibles con sus respectivas etapas.","items":{"type":"object","properties":{"id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único del embudo."},"children":[]}]}]}],"example":"1dcb040ecbcbe33-e0e3-47dc-ae23-db4013174384"},"name":{"type":"string","example":"Enbudo 1"},"total_opportunities":{"type":"integer","example":2},"by_stage":{"type":"array","description":"Desglose del rendimiento por cada etapa del embudo.","items":{"type":"object","properties":{"step_id":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Identificador único de la etapa."},"children":[]}]}]}],"example":"1afea89142a5ab0-d76e-44a7-b4d5-bd322dba1548"},"name":{"type":"string","example":"Etapa 1"},"type_step":{"type":"string","example":"step"},"position":{"type":"integer","example":1},"count":{"type":"integer","example":2},"amount":{"type":"number","format":"float","example":378}}}}}}}}},"id":"schema_69"},"schema_70":{"kind":"json-schema","data":{"type":"object","properties":{"response_time_by_agent":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Listado de agentes con sus respectivos promedios de tiempo de respuesta (en minutos o segundos según la configuración)."},"children":[]}]}]}],"items":{"type":"object","properties":{"first_name":{"type":"string","example":"Jhon"},"last_name":{"type":"string","example":"Doe"},"tiempo_promedio_primera_respuesta":{"type":["number","null"],"format":"float","example":110.25},"tiempo_promedio_primera_respuesta_mia":{"type":["number","null"],"format":"float","example":null},"tiempo_promedio_respuesta_promedio":{"type":["number","null"],"format":"float","example":123.7},"tiempo_respuesta_horario_laboral":{"type":["number","null"],"format":"float","example":null}}}}}},"id":"schema_70"},"schema_71":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2025-07-01"},"id":"schema_71"},"schema_72":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2026-08-01"},"id":"schema_72"},"schema_73":{"kind":"json-schema","data":{"type":"object","properties":{"start_date":{"type":"string","example":"2025-07-01"},"end_date":{"type":"string","example":"2026-08-01"},"total_leads":{"type":"integer","example":30},"by_source":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Desglose de leads agrupados por su fuente de atribución."},"children":[]}]}]}],"properties":{"paid_social":{"type":"integer","example":0},"organic":{"type":"integer","example":0},"no_attribution":{"type":"integer","example":0},"no_channel":{"type":"integer","example":30}}}}},"id":"schema_73"},"schema_74":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2026-05-01"},"id":"schema_74"},"schema_75":{"kind":"json-schema","data":{"type":"object","properties":{"start_date":{"type":"string","example":"2026-06-01"},"end_date":{"type":"string","example":"2026-07-01"},"total_leads":{"type":"integer","example":30},"by_campaing":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Métricas desglosadas por campaña (las claves representan el nombre de cada campaña)."},"children":[]}]}]}],"additionalProperties":{"type":"object","description":"Conteos de prospectos por cada etapa del embudo.","additionalProperties":{"type":"integer"}},"example":{"Campaña 1":{"etapa_1":5,"etapa_2":23,"ganados":3}}}}},"id":"schema_75"},"schema_76":{"kind":"json-schema","data":{"type":"string","format":"date","example":"2026-06-03"},"id":"schema_76"},"schema_77":{"kind":"json-schema","data":{"type":"integer","example":1204},"id":"schema_77"},"schema_78":{"kind":"json-schema","data":{"type":"object","properties":{"date":{"type":"string","example":"2026-08-01"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":1},"per_page":{"type":"integer","example":10},"total":{"type":"integer","example":84},"total_pages":{"type":"integer","example":9}}},"leads":{"type":"array","description":"Lista detallada de leads del periodo.","items":{"type":"object","properties":{"customer":{"type":"object","properties":{"web_id":{"type":"string","example":"483abc920"},"phone":{"type":"string","example":"+593991234567"},"id_number":{"type":["string","null"],"example":"1712345678"},"first_name":{"type":"string","example":"Ana"},"last_name":{"type":"string","example":"Ramírez"},"whatsapp_name":{"type":"string","example":"Ana R."},"email":{"type":["string","null"],"example":"ana@gmail.com"},"city":{"type":["string","null"],"example":"Quito"},"created_at":{"type":"string","format":"date-time","example":"2026-05-15T20:10:35-05:00"}}},"agent":{"type":["object","null"],"properties":{"id":{"type":"integer","example":1204},"name":{"type":"string","example":"Sonia Patiño"},"email":{"type":"string","example":"sonia@mastermoto.com"},"assigned_at":{"type":"string","format":"date-time","example":"2026-05-15T20:14:02-05:00"},"assignment_reason":{"type":"string","example":"automatic"}}},"agent_metrics":{"type":"object","properties":{"avg_response_after_mia_seconds":{"type":["integer","null"],"example":1218},"responded_after_assignment":{"type":["boolean","null"],"example":true},"first_agent_message_at":{"type":["string","null"],"format":"date-time","example":"2026-05-15T20:34:20-05:00"},"last_agent_message_at":{"type":["string","null"],"format":"date-time","example":"2026-05-16T09:45:12-05:00"},"agent_management_seconds":{"type":["integer","null"],"example":47452}}},"lead_source":{"type":"object","properties":{"channel":{"type":"string","example":"ctwa"},"utm_source":{"type":["string","null"],"example":null},"campaign_name":{"type":["string","null"],"example":"MM || Tráfico Abril 26"},"ad_name":{"type":["string","null"],"example":"Sukida Joy 150 - Crédito Fácil"},"ad_headline":{"type":["string","null"],"example":"Estrena tu Sukida Joy 150 con $99 de entrada"}}},"funnel":{"type":"array","items":{"type":"object","properties":{"funnel_name":{"type":"string","example":"Ventas Motos"},"step_name":{"type":"string","example":"Oportunidad / Lead"},"step_changed_at":{"type":"string","format":"date-time","example":"2026-05-16T10:02:44-05:00"},"deal_created_at":{"type":"string","format":"date-time","example":"2026-05-15T20:11:08-05:00"}}}},"mia":{"type":"object","properties":{"first_mia_message_at":{"type":["string","null"],"format":"date-time","example":"2026-05-15T20:10:41-05:00"},"last_mia_message_at":{"type":["string","null"],"format":"date-time","example":"2026-05-15T20:31:55-05:00"},"mia_management_seconds":{"type":["integer","null"],"example":1274},"buy_intention":{"type":"boolean","example":true},"human_help":{"type":"boolean","example":false},"active":{"type":"boolean","example":false}}},"conversation_metrics":{"type":"object","properties":{"customer_messages_count":{"type":"integer","example":18},"mia_messages_count":{"type":"integer","example":9},"agent_messages_count":{"type":"integer","example":14},"total_messages_count":{"type":"integer","example":41},"first_customer_message_at":{"type":"string","format":"date-time","example":"2026-05-15T20:10:35-05:00"},"last_message_at":{"type":"string","format":"date-time","example":"2026-05-16T09:45:12-05:00"}}},"tags":{"type":"array","items":{"type":"string"},"example":["MODELO ESPECÍFICO","ASESORÍA","CRÉDITO"]},"custom_fields":{"type":"object","additionalProperties":{"type":["string","null"]},"example":{"modelo_interes_final":"Pulsar 125 N","marca_interes":"Bajaj","forma_pago":"Crédito"}}}}}}},"id":"schema_78"},"schema_79":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"string","example":"error"},"message":{"type":"string","example":"El formato de fecha provisto en date es inválido."}}},"id":"schema_79"}},"exampleStore":{"paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response":{"value":{"results":1,"total_pages":1,"customers":[{"id":12345,"first_name":"Juan","last_name":"Pérez","email":"juan@example.com","phone":"+593999999999","id_type":"cedula","id_number":"1234567890","address":"Av. Principal 123","city":"Quito","state":"Pichincha","zip_code":"170101","notes":"Cliente preferencial","created_at":"2024-01-15T10:30:00.000Z","updated_at":"2024-01-20T15:45:00.000Z"}]},"key":"response","summary":"response","id":"paths/~1retailers~1api~1v1~1customers/get/responses/200/content/application~1json/examples/response"},"paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request":{"value":{"message":"Bad Request"},"key":"bad_request","summary":"bad_request","id":"paths/~1retailers~1api~1v1~1customers/get/responses/400/content/application~1json/examples/bad_request"},"paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer":{"value":{"customer":{"first_name":"Juan","last_name":"Pérez","email":"juan@example.com","phone":"+593999999999","id_type":"cedula","id_number":"1234567890","address":"Av. Principal 123","city":"Quito","state":"Pichincha","zip_code":"170101","customer_addresses_attributes":[{"address":"Calle Secundaria 456","city":"Guayaquil","state":"Guayas","zip_code":"090101","country_id":1,"latitude":"-2.1894","longitude":"-79.8891","description":"Oficina principal","main":true}],"notes":"Cliente VIP"},"agent_id":1,"tags":[{"name":"VIP","value":true}],"custom_fields":[{"field_name":"preferencia_contacto","field_content":"WhatsApp"}]},"key":"create_customer","summary":"create_customer","id":"paths/~1retailers~1api~1v1~1customers/post/requestBody/content/application~1json/examples/create_customer"},"paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request":{"value":{"message":"Bad Request","errors":["Phone can't be blank","Email is invalid"]},"key":"bad_request","summary":"bad_request","id":"paths/~1retailers~1api~1v1~1customers/post/responses/400/content/application~1json/examples/bad_request"},"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text":{"value":{"name":"order_update","language":"spanish","category":"UTILITY","template_type":"text","header_text":"Tu pedido","text":"Hola {{1}}, tu pedido {{2}} va en camino","body_examples":["Ana","ORD-1042"]},"key":"text","summary":"Texto con variables y encabezado","id":"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/text"},"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons":{"value":{"name":"pedido_enviado","language":"spanish","category":"UTILITY","template_type":"image","media_url":"https://cdn.mitienda.com/envio.png","text":"Hola {{1}}, tu pedido salió hoy","body_examples":["Ana"],"integration_id":"int-1","buttons":[{"type":"URL","text":"Rastrear","url":"https://tienda.com/track/{{1}}","example":["https://tienda.com/track/ORD-1042"]},{"type":"PHONE_NUMBER","text":"Llámanos","phone_number":"+573001234567"}]},"key":"image_buttons","summary":"Imagen con URL dinámica y botón de llamada","id":"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/image_buttons"},"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel":{"value":{"name":"coleccion_octubre","language":"spanish","category":"MARKETING","template_type":"carousel","text":"Hola {{1}}, mira nuestra colección","body_examples":["Ana"],"cards_media_type":"image","cards":[{"body":"Camisa azul","media_url":"https://cdn.mitienda.com/azul.png","buttons":[{"type":"URL","text":"Comprar","url":"https://tienda.com/azul"}]},{"body":"Pantalón {{1}} nuevo","body_examples":["rojo"],"media_url":"https://cdn.mitienda.com/rojo.png","buttons":[{"type":"URL","text":"Comprar","url":"https://tienda.com/rojo"}]}]},"key":"carousel","summary":"Carrusel","id":"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/carousel"},"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer":{"value":{"name":"oferta_viernes","language":"spanish","category":"MARKETING","template_type":"image","media_url":"https://cdn.mitienda.com/oferta.png","text":"Hola {{1}}, solo por hoy tenemos un descuento para ti","body_examples":["Ana"],"offer":{"title":"Solo hoy","url":{"text":"Comprar","url":"https://tienda.com/oferta"},"expires_in_minutes":120,"code":"VIP10"}},"key":"offer","summary":"Oferta limitada","id":"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/offer"},"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication":{"value":{"name":"codigo_login","language":"spanish","category":"AUTHENTICATION","add_security_recommendation":true,"code_expiry_minutes":10},"key":"authentication","summary":"Autenticación (código OTP)","id":"paths/~1retailers~1api~1v1~1whatsapp_templates/post/requestBody/content/application~1json/examples/authentication"},"paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response":{"value":{"orders":[{"web_id":"EzLGaK0YZa","status":"pending","subtotal":"200.0","tax_amount":"0.0","total":"200.0","shipping_value":"0.0","notes":"","sales_channel":null,"created_at":"2023-05-17T01:42:57.624Z","archived":false,"customer":{"first_name":"Henry ","last_name":"Tonato","email":"henry@gmail.com","phone":"593995141472","address":"","city":"","state":"","country_id":"EC","zip_code":"","id_number":"","document_label":null,"web_id":"EleO7OTOer"},"order_items":[{"quantity":1,"unit_price":"200.0","total":"200.0","title":"Mensajes","sku":"Col.2556","image_url":{}}]}],"total_pages":1},"key":"response","summary":"response","id":"paths/~1api~1v1~1orders/get/responses/200/content/application~1json/examples/response"},"paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response":{"value":{"message":"Órden creada con éxito","order":{"web_id":"aAKpT9laN5","status":"pending","subtotal":"400.0","tax_amount":"0.0","total":"405.0","shipping_value":"5.0","sales_channel":null,"notes":"New notes","created_at":"2023-06-12T18:26:58.534Z","archived":false,"customer":{"first_name":"Juan","last_name":"Campos","email":"juan@email42.com","phone":"593996459124","address":"","city":"","state":"","country_id":"EC","zip_code":"","id_number":"","document_label":"cedula","web_id":"bReccZpRjO"},"order_items":[{"quantity":2,"unit_price":"200.0","total":"400.0","title":"Mensajes","sku":"Col.2556","image_url":{}}]}},"key":"response","summary":"response","id":"paths/~1api~1v1~1orders/post/responses/201/content/application~1json/examples/response"},"paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response":{"value":{"message":"Órden actualizada con éxito","order":{"web_id":"4Bs2mKblN3","status":"success","subtotal":"60.0","tax_amount":"0.0","total":"65.0","shipping_value":"5.0","sales_channel":null,"notes":"New notes","created_at":"2023-06-13T03:31:06.825Z","archived":false,"customer":{"first_name":"Henry","last_name":"Campos","email":null,"phone":null,"address":null,"city":null,"state":null,"country_id":null,"zip_code":null,"id_number":null,"document_label":null,"web_id":"sVnez19hSa"},"order_items":[{"quantity":3,"unit_price":"20.0","total":"60.0","title":"Mensajes","sku":"Col.2556","image_url":{}}]}},"key":"response","summary":"response","id":"paths/~1api~1v1~1orders~1web_id/put/responses/200/content/application~1json/examples/response"},"paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response":{"value":{"message":"Órden borrada con éxito"},"key":"response","summary":"response","id":"paths/~1api~1v1~1orders~1web_id/delete/responses/200/content/application~1json/examples/response"},"paths/~1api~1v1~1products/get/responses/200/content/application~1json/example":{"value":{"products":[{"web_id":"CRasFSldo7","title":"Camiseta Gráfica Premium","description":"Camiseta con diseño gráfico exclusivo","quantity":85,"price":"39.99","active":true,"url":null,"sku":"CAM-GRA-010","wholesale_price":"20.0","images":[],"subcategory":{"name":"Camisetas","web_id":"GETPvRKnBD"},"category":{"name":"Ropa","web_id":"ljsJpi0fTR"},"product_variants":[{"name":"Color","web_id":"pv123abc","product_variant_options":[{"name":"Negro","web_id":"BEYaSU7yTH"},{"name":"Blanco","web_id":"vftzaNsoI3"}]},{"name":"Talla","web_id":"pv456def","product_variant_options":[{"name":"S","web_id":"nCbIHF5EGT"},{"name":"M","web_id":"QboGUaqrOl"}]}],"product_variant_combinations":[{"web_id":"xa6d2qprcI","name":"Negro/S","price":"45.86","wholesale_price":"22.94","sku":"CAM-GRA-010-NEGRO-S","quantity":8,"variant_option_web_ids":["BEYaSU7yTH","nCbIHF5EGT"],"image":"","variant_url":null},{"web_id":"aD8EI424Tx","name":"Negro/M","price":"43.60","wholesale_price":"21.81","sku":"CAM-GRA-010-NEGRO-M","quantity":20,"variant_option_web_ids":["BEYaSU7yTH","QboGUaqrOl"],"image":"","variant_url":null}]}],"total_pages":4},"id":"paths/~1api~1v1~1products/get/responses/200/content/application~1json/example"},"paths/~1api~1v1~1products/post/responses/200/content/application~1json/example":{"value":{"message":"Producto creado con éxito","product":{"web_id":"FzOWVvUwbC","title":"Product 001","description":"Product 001","quantity":20,"price":"1.5","active":true,"url":null,"sku":"p004","wholesale_price":"0.0","images":["https://d3a4wxp51vazl1.cloudfront.net/uploads/506/product_attachment/FzOWVvUwbC/qrewrwYdhfNDCqW3hv4MTiwFq.jpg"],"subcategory":{"name":"Alámbricos","web_id":"GETPvRKnBD"},"category":{"name":"Tecnología","web_id":"ljsJpi0fTR"},"product_variants":[{"name":"Talla","web_id":"AbHj6GqcMF","product_variant_options":[{"name":"SM","web_id":"3I6zc3DGMY"},{"name":"LG","web_id":"57gl2i88SZ"},{"name":"XL","web_id":"J7PFMLX9wA"}]},{"name":"Color","web_id":"vVlmXsA2Bm","product_variant_options":[{"name":"Azul","web_id":"Xe9QkMiD1i"},{"name":"Negro","web_id":"Y8zjQ7BPY4"}]}],"product_variant_combinations":[{"web_id":"x0wsCBTIMI","name":"SM/Azul","price":"33.0","wholesale_price":null,"sku":"SKU-EX1","quantity":10,"variant_option_web_ids":["3I6zc3DGMY","Xe9QkMiD1i"],"image":"https://dc2p3rqc7bvrd.cloudfront.net/uploads/1/product_variant_combination/x0wsCBTIMI/camisa-del-producto_40x403x.webp","variant_url":null},{"web_id":"y1xtDUITNJ","name":"XL/Azul","price":"33.0","wholesale_price":null,"sku":"SKU-EX5","quantity":10,"variant_option_web_ids":["J7PFMLX9wA","Xe9QkMiD1i"],"image":"","variant_url":null}]}},"id":"paths/~1api~1v1~1products/post/responses/200/content/application~1json/example"},"paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example":{"value":{"web_id":"CRasFSldo7","title":"Camiseta Gráfica Premium","description":"Camiseta con diseño gráfico exclusivo","quantity":85,"price":"39.99","active":true,"url":null,"sku":"CAM-GRA-010","wholesale_price":"20.0","images":[],"subcategory":{"web_id":"GETPvRKnBD","name":"Camisetas","description":"","products_count":5,"active_products_count":2},"category":{"web_id":"ljsJpi0fTR","name":"Ropa","description":"","products_count":11,"active_products_count":6},"product_variants":[{"name":"Color","web_id":"pv123abc","product_variant_options":[{"name":"Negro","web_id":"BEYaSU7yTH"},{"name":"Blanco","web_id":"vftzaNsoI3"}]},{"name":"Talla","web_id":"pv456def","product_variant_options":[{"name":"S","web_id":"nCbIHF5EGT"},{"name":"M","web_id":"QboGUaqrOl"}]}],"product_variant_combinations":[{"web_id":"xa6d2qprcI","name":"Negro/S","price":"45.86","wholesale_price":"22.94","sku":"CAM-GRA-010-NEGRO-S","quantity":8,"variant_option_web_ids":["BEYaSU7yTH","nCbIHF5EGT"],"image":"","variant_url":null},{"web_id":"aD8EI424Tx","name":"Negro/M","price":"43.60","wholesale_price":"21.81","sku":"CAM-GRA-010-NEGRO-M","quantity":20,"variant_option_web_ids":["BEYaSU7yTH","QboGUaqrOl"],"image":"","variant_url":null}]},"id":"paths/~1api~1v1~1products~1:id_or_sku/get/responses/200/content/application~1json/example"},"paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example":{"value":{"message":"Producto actualizado con éxito","product":{"web_id":"FzOWVvUwbC","title":"Product 001","description":"Product 001","quantity":20,"price":"1.5","active":true,"url":null,"sku":"p004","wholesale_price":"0.0","images":["https://d3a4wxp51vazl1.cloudfront.net/uploads/506/product_attachment/FzOWVvUwbC/qrGZwYdhfewrW3hv4MTiwFq.jpg"],"subcategory":{"name":"Alámbricos","web_id":"GETPvRKnBD"},"category":{"name":"Tecnología","web_id":"ljsJpi0fTR"},"product_variants":[{"name":"Talla","web_id":"AbHj6GqcMF","product_variant_options":[{"name":"SM","web_id":"3I6zc3DGMY"},{"name":"LG","web_id":"57gl2i88SZ"},{"name":"XL","web_id":"J7PFMLX9wA"}]},{"name":"Color","web_id":"vVlmXsA2Bm","product_variant_options":[{"name":"Azul","web_id":"Xe9QkMiD1i"},{"name":"Negro","web_id":"Y8zjQ7BPY4"}]}],"product_variant_combinations":[{"web_id":"x0wsCBTIMI","name":"SM/Azul","price":"33.0","wholesale_price":null,"sku":"SKU-EX1","quantity":10,"variant_option_web_ids":["3I6zc3DGMY","Xe9QkMiD1i"],"image":"https://dc2p3rqc7bvrd.cloudfront.net/uploads/1/product_variant_combination/x0wsCBTIMI/camisa-del-producto_40x403x.webp","variant_url":null},{"web_id":"y1xtDUITNJ","name":"XL/Azul","price":"33.0","wholesale_price":null,"sku":"SKU-EX5","quantity":10,"variant_option_web_ids":["J7PFMLX9wA","Xe9QkMiD1i"],"image":"","variant_url":null}]}},"id":"paths/~1api~1v1~1products~1web_id/put/responses/200/content/application~1json/example"},"paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example":{"value":{"message":"Producto eliminado con éxito","product":{"web_id":"tUCJZrCUs5","title":"Abrigo borrego","description":"Abrigo crema con lana de borrego.\r\nTallas: XS, S, M, L, XL, XXL.","quantity":41,"price":"8.0","active":true,"url":null,"sku":"AB.577","wholesale_price":"6.0","images":["https://d3a4wxp51vazl1.cloudfront.net/uploads/506/product_attachment/tUCJZrCUs5/7-01.jpg","https://d3a4wxp51vazl1.cloudfront.net/uploads/506/product_attachment/tUCJZrCUs5/8-01.jpg","https://d3a4wxp51vazl1.cloudfront.net/uploads/506/product_attachment/tUCJZrCUs5/9-01.jpg"],"subcategory":{"name":"Abrigos","web_id":"EM5FJCF7sY"},"category":{"name":"Abrigos y chaquetas","web_id":"maFDOHylFB"}}},"id":"paths/~1api~1v1~1products~1web_id/delete/responses/200/content/application~1json/example"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example":{"value":{"message":"Variante creada con éxito","variant":{"web_id":"newVariantId","name":"XXL/Azul","price":"35.0","wholesale_price":"28.0","sku":"CAMISETA-XXL-AZUL","quantity":10,"variant_option_web_ids":["optionWebId1","optionWebId2"],"image":"","variant_url":"https://example.com/product?variant=123"}},"id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/201/content/application~1json/example"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example":{"value":{"message":"Unauthorized"},"id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/401/content/application~1json/example"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example":{"value":{"message":"Producto no encontrado"},"id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/404/content/application~1json/example"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example":{"value":{"message":"La combinación ya existe","errors":["Una variante con el nombre 'XXL/Azul' ya existe para este producto"]},"id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/409/content/application~1json/example"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options":{"value":{"message":"Opciones inválidas","errors":["option1 'XXL' no existe en las opciones del producto"]},"key":"invalid_options","summary":"Opciones inválidas","id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/invalid_options"},"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error":{"value":{"message":"No fue posible crear la variante","errors":["Sku Ya está en uso"]},"key":"validation_error","summary":"Error de validación","id":"paths/~1api~1v1~1products~1product_web_id~1variants/post/responses/422/content/application~1json/examples/validation_error"},"paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example":{"value":{"variant":{"web_id":"x0wsCBTIMI","name":"SM/Azul","price":"100.0","wholesale_price":"80.0","sku":"VAR-SM-001","quantity":50,"variant_option_web_ids":["3I6zc3DGMY","Xe9QkMiD1i"],"image":"https://example.com/image.webp","variant_url":"https://example.com/variant"}},"id":"paths/~1api~1v1~1variants~1{web_id}/get/responses/200/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example":{"value":{"message":"Unauthorized"},"id":"paths/~1api~1v1~1variants~1{web_id}/get/responses/401/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example":{"value":{"message":"Variante no encontrada"},"id":"paths/~1api~1v1~1variants~1{web_id}/get/responses/404/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example":{"value":{"message":"Variante actualizada con éxito","variant":{"web_id":"x0wsCBTIMI","name":"SM/Azul","price":"150.0","wholesale_price":"120.0","sku":"VAR-SM-001","quantity":50,"variant_option_web_ids":["3I6zc3DGMY","Xe9QkMiD1i"],"image":"https://dc2p3rqc7bvrd.cloudfront.net/uploads/1/product_variant_combination/x0wsCBTIMI/image.webp","variant_url":"https://example.com/product?variant=123"}},"id":"paths/~1api~1v1~1variants~1{web_id}/patch/responses/200/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example":{"value":{"message":"Unauthorized"},"id":"paths/~1api~1v1~1variants~1{web_id}/patch/responses/401/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example":{"value":{"message":"Variante no encontrada"},"id":"paths/~1api~1v1~1variants~1{web_id}/patch/responses/404/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example":{"value":{"message":"No fue posible actualizar la variante","errors":["Sku Ya está en uso"]},"id":"paths/~1api~1v1~1variants~1{web_id}/patch/responses/422/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example":{"value":{"message":"Unauthorized"},"id":"paths/~1api~1v1~1variants~1{web_id}/delete/responses/401/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example":{"value":{"message":"Variante no encontrada"},"id":"paths/~1api~1v1~1variants~1{web_id}/delete/responses/404/content/application~1json/example"},"paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example":{"value":{"message":"No fue posible eliminar la variante","errors":["La variante tiene dependencias que impiden su eliminación"]},"id":"paths/~1api~1v1~1variants~1{web_id}/delete/responses/422/content/application~1json/example"},"paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response":{"value":{"categories":[{"web_id":"ljsJpi0fTR","name":"Tecnología","description":"","products_count":7,"order":1,"subcategories":[{"web_id":"GETPvRKnBD","name":"Alámbricos","description":"","products_count":3,"order":1},{"web_id":"8Kncn44rQD","name":"3 en 1","description":"","products_count":4,"order":2}]}],"total_pages":1},"key":"response","summary":"response","id":"paths/~1api~1v1~1categories/get/responses/200/content/application~1json/examples/response"},"paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories":{"value":{"category":{"name":"Electrónica","description":"Productos electrónicos y dispositivos tecnológicos","order":1,"subcategories_attributes":[{"name":"Smartphones","description":"Teléfonos inteligentes y accesorios","order":1},{"name":"Laptops","description":"Computadoras portátiles","order":2}]}},"key":"create_with_subcategories","summary":"create_with_subcategories","id":"paths/~1api~1v1~1categories/post/requestBody/content/application~1json/examples/create_with_subcategories"},"paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success":{"value":{"web_id":"I7ROmS7Jui","name":"Electrónica","description":"Productos electrónicos y dispositivos tecnológicos","products_count":0,"order":1,"subcategories":[{"web_id":"bas9UxSaUq","name":"Smartphones","description":"Teléfonos inteligentes y accesorios","products_count":0,"order":1},{"web_id":"VqpkV7TLd5","name":"Laptops","description":"Computadoras portátiles","products_count":0,"order":2}]},"key":"success","summary":"success","id":"paths/~1api~1v1~1categories/post/responses/200/content/application~1json/examples/success"},"paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error":{"value":{"errors":["Name can't be blank"]},"key":"validation_error","summary":"validation_error","id":"paths/~1api~1v1~1categories/post/responses/422/content/application~1json/examples/validation_error"},"paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories":{"value":{"category":{"name":"Electrónica","description":"Productos electrónicos actualizados","order":1,"subcategories_attributes":[{"web_id":"bas9UxSaUq","name":"Smartphones","description":"Teléfonos inteligentes actualizados","order":1},{"web_id":"VqpkV7TLd5","name":"Laptops","description":"Computadoras portátiles actualizadas","order":2}]}},"key":"update_with_subcategories","summary":"update_with_subcategories","id":"paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/update_with_subcategories"},"paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory":{"value":{"category":{"name":"Electrónica","subcategories_attributes":[{"id":"bas9UxSaUq","_destroy":true}]}},"key":"delete_subcategory","summary":"delete_subcategory","id":"paths/~1api~1v1~1categories~1web_id/put/requestBody/content/application~1json/examples/delete_subcategory"},"paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error":{"value":{"errors":["Name can't be blank"]},"key":"validation_error","summary":"validation_error","id":"paths/~1api~1v1~1categories~1web_id/put/responses/422/content/application~1json/examples/validation_error"},"paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response":{"value":{"web_id":"I7ROmS7Jui","name":"Electrónica","description":"Productos electrónicos y dispositivos tecnológicos","products_count":0,"order":1,"subcategories":[{"web_id":"bas9UxSaUq","name":"Smartphones","description":"Teléfonos inteligentes y accesorios","products_count":0,"order":1}]},"key":"response","summary":"response","id":"paths/~1api~1v1~1categories~1web_id/delete/responses/200/content/application~1json/examples/response"}},"securitySchemeStore":{"api-key":{"id":"api-key","type":"apiKey","description":"API Key authentication","in":"header","paramName":"api-key"}},"servers":[{"url":"https://app.mercately.com","description":"Production server"},{"url":"https://mercately.shop","description":"Shops API Production server"}],"specType":"openapi"},"options":{"mockServer":{"url":"/_mock/apis","position":"off","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/index.json?download"},{"url":"/_bundle/apis/index.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Mercately Retailers API","description":"La plataforma para desarrolladores de Mercately, está creada para ayudar a todos nuestros clientes y empoderarlos para que crezcan mejor. Nuestras API están diseñadas para permitir que los equipos de cualquier forma o tamaño construyan integraciones y aprovechar al máximo Mercately.\nTodas las API de Mercately se construyen usando convenciones REST y están diseñadas para tener una estructura de URL predecible. U tilizan muchas funciones HTTP estándar, incluidos métodos (POST, GET, PUT, DELETE) y códigos de respuesta de error."}},"baseSlug":"/apis","routesMapping":{}}