Aqui você vê as diferenças entre duas revisões dessa página.
|
integracao_easypromo [2024/11/06 18:06] rafael |
integracao_easypromo [2025/08/27 20:14] (atual) rafael [Descontos do consumidor] |
||
|---|---|---|---|
| Linha 73: | Linha 73: | ||
| <td>boolean</td> | <td>boolean</td> | ||
| <td>Produto está ativo ou inativo</td> | <td>Produto está ativo ou inativo</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>image</td> | ||
| + | <td>string</td> | ||
| + | <td>Base64 da imagem do produto (opcional)</td> | ||
| </tr> | </tr> | ||
| </tbody> | </tbody> | ||
| Linha 88: | Linha 93: | ||
| "barcode": "13456789", | "barcode": "13456789", | ||
| "price": 12.99, | "price": 12.99, | ||
| - | "active": true | + | "active": true, |
| + | "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUFBQU..." | ||
| } | } | ||
| | | ||
| Linha 147: | Linha 153: | ||
| "expires_at": null, | "expires_at": null, | ||
| "disabled_at": null, | "disabled_at": null, | ||
| + | "flash_offer_enabled": false, | ||
| "active": true, | "active": true, | ||
| "created_at": "2024-05-20T12:06:27.000000Z", | "created_at": "2024-05-20T12:06:27.000000Z", | ||
| Linha 220: | Linha 227: | ||
| <td>string</td> | <td>string</td> | ||
| <td>Data de início da promoção</td> | <td>Data de início da promoção</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>expires_at</td> | ||
| + | <td>string</td> | ||
| + | <td>Data de término da promoção</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>flash_offer_enabled</td> | ||
| + | <td>boolean</td> | ||
| + | <td>Oferta relâmpago ativa (Campo expires_at é obrigatório)</td> | ||
| </tr> | </tr> | ||
| <tr> | <tr> | ||
| Linha 236: | Linha 253: | ||
| "percent_off": 10, | "percent_off": 10, | ||
| "quantity_limit": 0, | "quantity_limit": 0, | ||
| - | "starts_at": "2024-05-22 15:45:00", | + | "starts_at": "2024-05-22 15:45:00 |
| + | "expires_at": "2024-05-23 15:45:00", | ||
| + | "flash_offer_enabled": true, | ||
| "active": true | "active": true | ||
| } | } | ||
| Linha 307: | Linha 326: | ||
| <td>string</td> | <td>string</td> | ||
| <td>Data de início da promoção</td> | <td>Data de início da promoção</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>expires_at</td> | ||
| + | <td>string</td> | ||
| + | <td>Data de término da promoção</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>flash_offer_enabled</td> | ||
| + | <td>boolean</td> | ||
| + | <td>Oferta relâmpago ativa (Campo expires_at é obrigatório)</td> | ||
| </tr> | </tr> | ||
| <tr> | <tr> | ||
| Linha 323: | Linha 352: | ||
| "percent_off": 10, | "percent_off": 10, | ||
| "quantity_limit": 0, | "quantity_limit": 0, | ||
| - | "starts_at": "2024-05-22 15:45:00", | + | "starts_at": "2024-05-22 15:45:00 |
| + | "expires_at": "2024-05-23 15:45:00", | ||
| + | "flash_offer_enabled": true, | ||
| "active": true | "active": true | ||
| } | } | ||
| Linha 428: | Linha 459: | ||
| <td>string</td> | <td>string</td> | ||
| <td>Número do cupom</td> | <td>Número do cupom</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons</td> | ||
| + | <td>array</td> | ||
| + | <td>Lista com os IDS dos cupons utilizados na compra</td> | ||
| </tr> | </tr> | ||
| <tr> | <tr> | ||
| Linha 531: | Linha 567: | ||
| "pdv": "1", | "pdv": "1", | ||
| "coupon": "15", | "coupon": "15", | ||
| + | "coupons": [4,5,8], | ||
| "operator": "Manu", | "operator": "Manu", | ||
| "payments": [ | "payments": [ | ||
| Linha 812: | Linha 849: | ||
| <td>number</td> | <td>number</td> | ||
| <td>Desconto total a ser aplicado no item da venda</td> | <td>Desconto total a ser aplicado no item da venda</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons.coupon_id</td> | ||
| + | <td>number</td> | ||
| + | <td>ID do cupom a ser aplicado na compra</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons.discount_type</td> | ||
| + | <td>string</td> | ||
| + | <td>Tipo do desconto (PERCENT ou VALUE)</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons.value</td> | ||
| + | <td>number</td> | ||
| + | <td>Valor do desconto</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons.is_stackable</td> | ||
| + | <td>boolean</td> | ||
| + | <td>Cupom acumulativo para mesma compra</td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | <td>coupons.discount</td> | ||
| + | <td>number</td> | ||
| + | <td>Valor final do desconto a ser aplicado na compra</td> | ||
| </tr> | </tr> | ||
| </tbody> | </tbody> | ||
| Linha 857: | Linha 919: | ||
| } | } | ||
| } | } | ||
| + | "coupons": [{ | ||
| + | "coupon_id": 4, | ||
| + | "discount_type": "PERCENT", | ||
| + | "value": 7.5, | ||
| + | "is_stackable": true, | ||
| + | "discount": 0.75 | ||
| + | }], | ||
| } | } | ||