---
# System prepended metadata

title: ':email: EMAILS'

---


# :email: EMAILS

[ToC]

##  Store
###  Registro nueva tienda  

```https
  POST (PROD) 
```

```https
  POST (DEV) https://jq01z6q9hl.execute-api.us-east-1.amazonaws.com/mailing/pruebaBienvenida
```

| Body | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `user` | `string` | **Requerido**. Nombre usuario registrado |
| `store` | `string` | **Requerido**. Nombre tienda registrada |
| `email` | `string` | **Requerido**. Correo de la tienda registrada |


```json=
//  Request body
{
    "user": "Valeria"
    "store": "Arket Emporio Vegano"
    "email": "arket@gmail.com"
}
```
#### Email Bienvenida a tienda  
:heavy_check_mark: 

#### Email nuevo registro de tienda a ComeS  
 :red_circle: 



###  Ingreso nuevo pedido  

```https
  POST (PROD) 
```

```https
  POST (DEV) https://4q01qql9ij.execute-api.us-east-1.amazonaws.com/default/pruebaTemplate
```

| Body | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `orderNote` | `object` | **Requerido**. Contiene objeto `store` y `store_direction`|
| `neto`  				| `int`	   	|  **Requerido**. Neto de la orden				   			|
| `iva`  				| `int`	   	|  **Requerido**. Iva de la orden				  			|
| `total`  				| `int`	   	|  **Requerido**. Total							   			|
| `total_order`  		| `int`	   	|  	Total del pedido aplicando descuento							   			|
| `type_discount`  		| `int`	   	| 	Porcentaje o monto						   			|
| `discount`  			| `int`	   	| Descuento						   			|
| `comment_by_order`  	| `string` 	| Comentario para orden			   			|		
|`store` | `object` | **Requerido**. Contiene los datos de contacto con la tienda
| `contact_name`  	| `string` 	| **Requerido**. Nombre de contacto	|
| `contact_email`  	| `string` 	| **Requerido**. Correo de contacto	|
| `contact_phone`  	| `string` 	| **Requerido**. Teléfono de contacto	|
| `brand_name`  	| `string` 	| **Requerido**. Nombre de tienda	|
| `store_direction` | `object` | **Requerido**. |
| `country` | `string` | **Requerido**. |
| `region` | `string` | **Requerido**. |
| `sub_region` | `string` | **Requerido**. |
| `municipality` | `string` |  |
| `street` | `string` | **Requerido**. |
|`number` | `string` | **Requerido**. |
|`reference` | `string` |  |
| `detailOrderNotes` | `array` | **Requerido**. Contiene objeto `product` |



```json=
//  Request body
{
"orderNote": {
        "neto": 156723,
        "iva": 29777,
        "total": 186500,
        "type_discount": null,
        "discount": null,
        "total_order": 186500,
        "comment_by_order": "nota del pedido",
    "store": {
        "contact_name": "nombre contacto",
        "contact_email": "email contacto/tienda",
        "contact_phone": "teléfono contacto/tienda",
        "brand_name": "nombre tienda"
     }
     "store_direction": {
            "country": null,
            "region": null,
            "sub_region": null,
            "municipality": null,
            "street": "Prueba 2",
            "number": "1234",
            "reference": "",
        
        }
   
},
"detailOrderNotes": [
        {
            "ID_detail_order_note": "cl3otxt52009960v1fthwlz9h",
            "qty": 1,
            "unit_price": 83500,
            "sub_total": 83500,
            "comment_by_product": null,
            "product": {
                "ID_product": "1",
                "sku": null,
                "name": "Kombucha té blanco lavanda beterraga 330 cc",
                "image": [
                    {
                        "ID_image": "1",
                        "file_image": "MKVioleta.jpg",
                        "name_image": "Kombucha Violeta",
                        "alt": "kombucha lavanda"
                    }
                ],
                "producer": {
                    "ID_producer": "1",
                    "brand_name": "Moksha Kombucha"
                }
            },
            "ID_order_note": "cl3otxt3j009360v12zre52ct"
        },
}
```
#### Email de ingreso de nuevo pedido hacia ComeS  
:red_circle: 

#### Email de ingreso de nuevo pedido hacia Tienda  
:heavy_check_mark: 

###  Contacto página web tiendas  

```https
  POST (PROD)  https://dkm67wldsb.execute-api.us-east-1.amazonaws.com/default/FormularioContactoCS_STore
```

```https
  POST (DEV)
```

| Body | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `name` | `string` | **Requerido**. Nombre |
| `phone` | `string` | **Requerido**. telefono |
| `email` | `string` | **Requerido**. Correo |
| `senderType` | `string` | **Requerido**. Correo de la tienda registrada |
| `message` | `string` | **Requerido**. mensaje |


```json=
//  Request body
{
    "name": "Valeria"
    "email": "arket@gmail.com"
    "phone": "+569878748"
    "senderType": ""
    "message" : "mensaje"
}
```
#### Contacto con ComeS  
:heavy_check_mark: 



##  Producer
###  Registro nuevo productor  

```https
  POST (PROD) https://ujl9uosmp6.execute-api.us-east-1.amazonaws.com/default/EnviaFormularioRegistroProductores
```

```https
  POST (DEV) https://k85camg633.execute-api.us-east-1.amazonaws.com/default/RegistroProductoresPrueba
```

| Body | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `producer` | `objeto` | **Requerido**. Contiene array `formalization`,`contact`,`direction`,`products_info`,`producer_category` y `files`|
|rut                 |`string`      |**Requerido**. Rut productor|
|brand_name                |`string`      | Nombre productor|
|web       |`string`      |página web o red social del productor |
|additional_info               |`string`      | información de sus productos|
|name               |`string`      |**Requerido**. Nombre de la persona de contacto|
|phone               |`string`      |**Requerido**. Numero telefono productor|
|email               |`string`      |**Requerido**. Email de productor|
|health_resolution |`string`  |**Requerido**. cumple con resolución sanitaria|
|start_activities  |`string`|**Requerido**. tiene iniciación de actividades|


```json=
//  Request body
{
    "producer": {
        "brand_name": "Mermeladas ñan",
        "rut": "454545454545",
        "web": "",
        "additional_info": "",
        "formalization": {
            "health_resolution": "No",
            "start_activities": "Si"
        },
        "contact": [
            {
                "name": "Marcela",
                "phone": "78787878787",
                "email": "katherine.v@live.cl"
            }
        ],
        "direction": [
            {
                "country": "Chile",
                "code_country": "CHL",
                "region": "Región Metropolitana de Santiago",
                "sub_region": "Santiago",
                "municipality": "Maipú",
                "street": null,
                "number": null,
                "local_or_office": null,
                "label": "Maipú, Santiago, Región Metropolitana de Santiago, CHL",
                "reference": null,
            }
        ],
        "products_info": [
            {
                "hasNutritional_info": true,
                "hasIngredient_sheet": false,
                "hasCertification": false,
                "additional_info": "",
                "hasExpiration_date": false
            }
        ],
        "producer_category": [
            {
                "category": {
                    "category": "Bebestibles",
                    "category_type": {
                        "ID_category_type": "2",
                        "type": "agroprocesados"
                    }
                }
            }
        ],
        "files": [
            {
                "file_name": "c8b90dcd-7d3f-4604-b125-e522be5bd9e2-banner-producer2.jpg"
            }
        ]
    }
}
```
#### Email Bienvenida a productor (cumpliendo requisitos)  
:heavy_check_mark: 
#### Email Bienvenida a productor (no cumple requisitos)  
:heavy_check_mark: 

#### Email nuevo registro de productor a ComeS  
:heavy_check_mark: 

###  Contacto con productor que no pertenece a ComeS - Directorio  

```https
  POST (PROD)  
```

```https
  POST (DEV) https://6mcslgzh0g.execute-api.us-east-1.amazonaws.com/default/ContactoProductorPrueba
```

| Body | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `name` | `string` | **Requerido**. Nombre |
| `phone` | `string` | **Requerido**. telefono |
| `email` | `string` | **Requerido**. Correo |
| `senderType` | `string` | **Requerido**. Correo de la tienda registrada |
| `message` | `string` | **Requerido**. mensaje |


```json=
//  Request body
{
    "name": "Valeria"
    "email": "arket@gmail.com"
    "phone": "+569878748"
    "senderType": ""
    "message" : "mensaje"
}
```
#### Aviso a ComeS  
:heavy_check_mark: 

#### Contacto con produtor  
:heavy_check_mark: 

