Carrinhos

O modelo de carrinho contém todas as informações sobre suas vendas, como nome, cpf, bandeira de cartão e etc.


GET/carts/

Listar todos os carrinhos

Esse endpoint permite que você recupere uma lista paginada de todos os seus carrinhos.

Request

GET
/carts/
  curl --location 'http://api.funnfestival.com.br/carts/' \
--header 'Authorization: Bearer {token}'

Response

[
    {
        "document_id": "32805433807",
        "entrance": "18/02/2023 19:19",
        "exit": "Não ocorreu",
        "details": [
            {
                "id": "#3655E1EF0073",
                "type": "Compra",
                "seller": "Maria Julia Lodi",
                "value": "R$ 24,00",
                "time": "21:45"
            },
            {
                "idCompra": "#3655E1EF0073",
                 // ...
            }
        ]
    },
    {     
      "document_id": "32805433809",
      // ...
    }
]

GET/carts/search/document/:cpf

Buscar por CPF

Este endpoint permite que você recupere um carrinho fornecendo seu CPF de protocolo.

Request

GET
/carts/search/document/
curl --location 'http://api.funnfestival.com.br/carts/search/document/051.866.281-07'

Response

[
    {
        "id": 1,
        "purchase_id": "80171",
        "name": "Ana Costa ",
        "document_id": "000.866.000-07",
        "email": "amanda243@hotmail.com",
        "phone": "61991444444",
        "transaction_id": "80171",
        "transaction_hash": "iagHrS7X7XBun31WHhVdJByAUndDbv",
        "tid": "1124421197",
        "nsu": "1124421197",
        "fee_value": "R$ 15,00",
        "fee_total": "R$ 165,00",
        "cardholder":  "**********",
        "cardholder_document_id": "**********",
        "cardholder_name":  "**********",
        "card_flag": "MASTERCARD",
        "card_end_number": "279043",
        "payment_type": "Cartão de Crédito",
        "need_change": "Não",
        "purchase_date": "2023-01-20T13:53:00.000Z",
        "tickets": "[{\"event\":\"Israel & Rodolffo , Feminino (meia), 28/01/2023 , 1° Lote\",\"details\":\"Amanda  , amanda@hotmail.com, 051.*******-07, (61) *******.2687\",\"price\":\"1x R$ 77,00\"},{\"event\":\"Israel & Rodolffo , Masculino (meia), 28/01/2023 , 1° Lote\",\"details\":\"Andrei ******* , *******@gmail.com, 009.*******-17, (61) 99905.*******\",\"price\":\"1x R$ 88,00\"}]",
        "status": "PAGO",
        "platform": "https://ingrex.com.br",
        "createdAt": "2023-01-23T03:08:24.073Z",
        "updatedAt": "2023-01-23T03:08:26.306Z"
    }
]

GET/carts/search/:nome

Buscar por Nome

Este endpoint permite que você recupere um carrinho fornecendo seu nome de protocolo.

Request

POST
/carts/search/:nome
curl --location 'http://api.funnfestival.com.br/carts/search/document/Amanda Araújo Costa'

Response

[
    {
        "id": 1,
        "purchase_id": "80171",
        "name": "Amanda *******",
        "document_id": "*******",
        "email": "amanda.araujocosta@hotmail.com",
        "phone": "61991242687",
        "transaction_id": "80171",
        "transaction_hash": "iagHrS7X7XBun31WHhVdJByAUndDbv",
        "tid": "1124421197",
        "nsu": "1124421197",
        "fee_value": "R$ 15,00",
        "fee_total": "R$ 165,00",
        "cardholder": "*******",
        "cardholder_document_id": "051*******-07",
        "cardholder_name": "*******",
        "card_flag": "MASTERCARD",
        "card_end_number": "279043",
        "payment_type": "Cartão de Crédito",
        "need_change": "Não",
        "purchase_date": "2023-01-20T13:53:00.000Z",
        "tickets": "[{\"event\":\"Israel & Rodolffo , Feminino (meia), 28/01/2023 , 1° Lote\",\"details\":\"******* , amanda.*******@hotmail.com, 051.*******, (61) *******\",\"price\":\"1x R$ 77,00\"},{\"event\":\"Israel & Rodolffo , Masculino (meia), 28/01/2023 , 1° Lote\",\"details\":\"Andrei *******o , *******@gmail.com, 009.*******-17, (61) *******.3115\",\"price\":\"1x R$ 88,00\"}]",
        "status": "PAGO",
        "platform": "https://ingrex.com.br",
        "createdAt": "2023-01-23T03:08:24.073Z",
        "updatedAt": "2023-01-23T03:08:26.306Z"
    }
]

GET/carts/search/:tickets

Buscar por Tickets

Este endpoint permite que você recupere um carrinho fornecendo seu tickets de protocolo.

Request

POST
/carts/search/:tickets
curl --location 'http://api.funnfestival.com.br/carts/search/:tickets'

Response

[
    {
        "id": 1,
        "purchase_id": "80171",
        "name": "Amanda *******",
        "document_id": "051.*******-07",
        "email": "*******@hotmail.com",
        "phone": "61991242687",
        "transaction_id": "80171",
        "transaction_hash": "iagHrS7X7XBun31WHhVdJByAUndDbv",
        "tid": "1124421197",
        "nsu": "1124421197",
        "fee_value": "R$ 15,00",
        "fee_total": "R$ 165,00",
        "cardholder": "Amanda*******",
        "cardholder_document_id": "051.866.281-07",
        "cardholder_name": "Amanda*******",
        "card_flag": "MASTERCARD",
        "card_end_number": "279043",
        "payment_type": "Cartão de Crédito",
        "need_change": "Não",
        "purchase_date": "2023-01-20T13:53:00.000Z",
        "tickets": "[{\"event\":\"Israel & Rodolffo , Feminino (meia), 28/01/2023 , 1° Lote\",\"details\":\"Amanda *******, *******@hotmail.com, 051.*******, (61) 99124.*******\",\"price\":\"1x R$ 77,00\"},{\"event\":\"Israel & Rodolffo , Masculino (meia), 28/01/2023 , 1° Lote\",\"details\":\"Andrei ******* , *******@gmail.com, 009*******17, (61) *******.3115\",\"price\":\"1x R$ 88,00\"}]",
        "status": "PAGO",
        "platform": "https://ingrex.com.br",
        "createdAt": "2023-01-23T03:08:24.073Z",
        "updatedAt": "2023-01-23T03:08:26.306Z"
    }
]

GET/carts/lastest

Buscar por últimas compras

Este endpoint permite que você recupere um carrinho fornecendo últimas compras das últimas 2 horas.

Request

POST
/carts/lastest
curl --location 'http://api.funnfestival.com.br/carts/lastest'

Response

[
{
    "id": 219512,
    "purchase_id": "94784",
    "name": "Pris*******",
    "document_id": "011*******",
    "email": "*******@hotmail.com",
    "phone": "61991*******",
    "transaction_id": "94784",
    "transaction_hash": "Nt7jTSW9xwnHsrxEjXyW5C7uqBgbJr",
    "tid": "45701831",
    "nsu": "",
    "fee_value": "R$ 3,00",
    "fee_total": "R$ 33,00",
    "cardholder": null,
    "cardholder_document_id": null,
    "cardholder_name": null,
    "card_flag": null,
    "card_end_number": null,
    "payment_type": "Pix",
    "need_change": "Não",
    "purchase_date": "2023-02-24T17:00:00.000Z",
    "tickets": "[{\"event\":\"SE BEBER NÃO CASE - MOLEJO, Ingresso Solidário - Meia Feminino, 11/03/2023 , 1° Lote\",\"details\":\"Pris*******s, *******@hotmail.com, 011.*******-95, (61) *******.8787\",\"price\":\"1x R$ 33,00\"}]",
    "status": "PIX GERADO",
    "platform": "https://ingrex.com.br",
    "createdAt": "2023-02-24T17:26:09.793Z",
    "updatedAt": "2023-02-24T17:26:17.144Z"
},
{
    "id": 219525,
    "purchase_id": "94761",
    "name": "HELEN*******",
    "document_id": "010.3*******",
    "email": "helenm*******",
    "phone": "61993*******",
    "transaction_id": "94761",
    "transaction_hash": "yR2iG3QYBjbzPB1bt1D8PNZAFrUiF3",
    "tid": "45698107",
    "nsu": "",
    "fee_value": "R$ 3,00",
    "fee_total": "R$ 33,00",
    "cardholder": null,
    "cardholder_document_id": null,
    "cardholder_name": null,
    "card_flag": null,
    "card_end_number": null,
    "payment_type": "Pix",
    "need_change": "Não",
    "purchase_date": "2023-02-24T16:14:00.000Z",
    "tickets": "[{\"event\":\"SE BEBER NÃO CASE - MOLEJO, Ingresso Solidário - Meia Feminino, 11/03/2023 , 1° Lote\",\"details\":\"HELEN ******* , *******@gmail.com, 010.*******, (61) *******.3523\",\"price\":\"1x R$ 33,00\"}]",
    "status": "PIX GERADO",
    "platform": "https://ingrex.com.br",
    "createdAt": "2023-02-24T17:26:09.796Z",
    "updatedAt": "2023-02-24T17:26:17.164Z"
},

]
GET/carts/search/update/boot/

Executar boot

Este endpoint permite que você execute o boot de carrinho.

Request

GET
/carts/search/update/boot/
curl --location 'http://api.funnfestival.com.br/carts/search/update/boot/' \
--header 'Authorization: Bearer {token}'

Response

{}