Consumos
O modelo de consumos contém todas as informações sobre seus consumos, como compra, produto, e vendedor.
GET/consumption/
Listar todos os consumos
Esse endpoint permite que você recupere uma lista paginada de todos os seus consumos.
Request
GET
/consumption/ curl --location 'http://api.funnfestival.com.br/consumption/' \
--header 'Authorization: Bearer {token}'
Response
[
{
"document_id": "32805434444",
"entrance": "18/02/2023 19:19",
"exit": "Não ocorreu",
"details": [
{
"id": "#4B03C4930176",
"type": "Compra",
"seller": "Raimundo Lonato Machado Souza",
"value": "R$ 22,00",
"time": "00:38"
},
{
"idCompra": "#4B03C4930176",
"product": "DOG NA CHAPA",
"price": "R$ 22,00",
"quantitity": "1",
"discount": "",
"total": "R$ 22,00"
},
{
"id": "#FD967CB002C4",
"type": "Compra",
"seller": "Maria Eduarda",
"value": "R$ 16,00",
"time": "00:23"
},
{
"idCompra": "#FD967CB002C4",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#592B625D0135",
"type": "Compra",
"seller": "Yasmim Lara",
"value": "R$ 16,00",
"time": "23:34"
},
{
"idCompra": "#592B625D0135",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#4B03C4930134",
"type": "Compra",
"seller": "Raimundo Souza",
"value": "R$ 22,00",
"time": "23:15"
},
{
"idCompra": "#4B03C4930134",
"product": "DOG NA CHAPA",
"price": "R$ 22,00",
"quantitity": "1",
"discount": "",
"total": "R$ 22,00"
},
{
"id": "#1C0548330FCE",
"type": "Recarga",
"seller": "Raquel Cardoso",
"value": "R$ 100,00",
"time": "22:16"
},
{
"id": "#3F16CE23108E",
"type": "Recarga",
"seller": "Maria Alves Cardoso",
"value": "R$ 15,00",
"time": "22:13"
},
{
"id": "#B19529D00035",
"type": "Compra",
"seller": "Mateus Torres",
"value": "R$ 16,00",
"time": "22:13"
},
{
"idCompra": "#B19529D00035",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#F2500449005A",
"type": "Compra",
"seller": "KAMILA DE JESUS",
"value": "R$ 16,00",
"time": "22:12"
},
]
},
{
"document_id": "32805434444",
//...
}
]
GET/consumption/:cpf
Buscar por CPF
Este endpoint permite que você recupere um consumos fornecendo seu CPF de protocolo.
Request
GET
/consumption/:cpfcurl --location 'http://api.funnfestival.com.br/consumption/:cpf'
Response
[
{
"document_id": "32805434444",
"entrance": "18/02/2023 19:19",
"exit": "Não ocorreu",
"details": [
{
"id": "#4B03C4930176",
"type": "Compra",
"seller": "Raimundo,
"value": "R$ 22,00",
"time": "00:38"
},
{
"idCompra": "#4B03C4930176",
"product": "DOG NA CHAPA",
"price": "R$ 22,00",
"quantitity": "1",
"discount": "",
"total": "R$ 22,00"
},
{
"id": "#FD967CB002C4",
"type": "Compra",
"seller": "Kathleen",
"value": "R$ 16,00",
"time": "00:23"
},
{
"idCompra": "#FD967CB002C4",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#592B625D0135",
"type": "Compra",
"seller": "Yasmim",
"value": "R$ 16,00",
"time": "23:34"
},
{
"idCompra": "#592B625D0135",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#4B03C4930134",
"type": "Compra",
"seller": "Raimundo",
"value": "R$ 22,00",
"time": "23:15"
},
{
"idCompra": "#4B03C4930134",
"product": "DOG NA CHAPA",
"price": "R$ 22,00",
"quantitity": "1",
"discount": "",
"total": "R$ 22,00"
},
{
"id": "#1C0548330FCE",
"type": "Recarga",
"seller": "Monalisa",
"value": "R$ 100,00",
"time": "22:16"
},
{
"id": "#3F16CE23108E",
"type": "Recarga",
"seller": "Cintia",
"value": "R$ 15,00",
"time": "22:13"
},
{
"id": "#B19529D00035",
"type": "Compra",
"seller": "Matheus Carvalho Torres",
"value": "R$ 16,00",
"time": "22:13"
},
{
"idCompra": "#B19529D00035",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#F2500449005A",
"type": "Compra",
"seller": "KAMILA ",
"value": "R$ 16,00",
"time": "22:12"
},
{
"idCompra": "#F2500449005A",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#3655E1EF0073",
"type": "Compra",
"seller": "Maria",
"value": "R$ 24,00",
"time": "21:45"
},
{
"idCompra": "#3655E1EF0073",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#121D11E729A6",
"type": "Recarga",
"seller": "Abraão",
"value": "R$ 15,00",
"time": "21:42"
},
{
"id": "#B19529D00013",
"type": "Compra",
"seller": "Matheus Torres",
"value": "R$ 52,00",
"time": "20:57"
},
{
"idCompra": "#B19529D00013",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "2",
"discount": "",
"total": "R$ 32,00"
},
{
"id": "#59F22D9E0148",
"type": "Compra",
"seller": "CAROLINA ANDRE",
"value": "R$ 32,00",
"time": "20:28"
},
{
"idCompra": "#59F22D9E0148",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "2",
"discount": "",
"total": "R$ 32,00"
},
{
"id": "#F25004490021",
"type": "Compra",
"seller": "KAMILA",
"value": "R$ 32,00",
"time": "20:04"
},
{
"idCompra": "#F25004490021",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "2",
"discount": "",
"total": "R$ 32,00"
},
{
"id": "#FD967CB00270",
"type": "Compra",
"seller": "Maria de Jesus",
"value": "R$ 16,00",
"time": "19:42"
},
{
"idCompra": "#FD967CB00270",
"product": "CORONA LONG NECK",
"price": "R$ 16,00",
"quantitity": "1",
"discount": "",
"total": "R$ 16,00"
},
{
"id": "#E9E61EBB0002",
"type": "Compra",
"seller": "Samuel Sales",
"value": "R$ 48,00",
"time": "19:42"
},
{
"idCompra": "#E9E61EBB0002",
"product": "ECO COPO",
"price": "R$ 10,00",
"quantitity": "1",
"discount": "",
"total": "R$ 10,00"
},
null,
{
"idCompra": "#E9E61EBB0002",
"product": "DEPOSITO CAUÇÃO",
"price": "R$ 7,00",
"quantitity": "1",
"discount": "",
"total": "R$ 7,00"
},
{
"id": "#E87A9CFB1538",
"type": "Recarga",
"seller": "GUSTAVO HENRYCK",
"value": "R$ 197,00",
"time": "19:21"
},
null
]
}
]
GET/consumption/search/update/boot/
Executar boot
Este endpoint permite que você execute o boot de carrinho.
Request
GET
/consumption/search/update/boot/curl --location 'http://api.funnfestival.com.br/consumption/search/update/boot/' \
--header 'Authorization: Bearer {token}'
Response
{}