Sale
Receiving notifications for sales creations or updates.
It is possible to be notified every time a sale occurs in your Whitelabel. Also when the sale change status (ex: from pending to approved).
You just need to request Ingresse to add your webhook address into the system.
Sale Webhook
name | description |
---|---|
sale | when a sale is created or change status |
Once it is registered, every time one of those actions is performed, Ingresse will send a POST
request with the following body message:
Webhook body message
key | description |
---|---|
webhook | the type of the hook related to the data |
data | the content of the webhook |
timestamp | the timestamp when the message was posted to destination |
Example
{
"webhook": "sale",
"timestamp": "2019-03-12T19:32:46Z",
"data": {
"user": {
"zipcode": null,
"verified": true,
"type": "free",
"token": null,
"street": null,
"state": null,
"socialId": [
{
"network": "facebook",
"id": "1100980240073098"
}
],
"picture": "https://graph.facebook.com/1100980240073008/picture?height=176&width=176",
"phone": "11948913763",
"number": null,
"neighborhood": null,
"name": "John Doe ",
"id": 2087863,
"email": "[email protected]",
"ddi": "55",
"creationdate": "2019-03-12T16:30:02-03:00",
"country": "Brazil",
"complement": null,
"city": null
},
"transactionId": "2087883-28479-495FE2FE776898F862B750AF06469A8AF6ED9FM5",
"total": 88,
"tickets": [
{
"validTo": {
"timezone_type": 3,
"timezone": "America/Sao_Paulo",
"date": "2019-03-23 19:00:00.000000"
},
"unitPrice": "40.00",
"typeName": "Pista",
"typeId": 382796,
"type": "ticket",
"ticketId": 382789,
"tax": 4,
"sessions": [
{
"timezone_type": 3,
"timezone": "America/Sao_Paulo",
"date": "2019-03-23 19:00:00.000000"
}
],
"sessionId": 43397,
"quantityMin": 0,
"quantityMax": 0,
"quantity": "2",
"percentage": "100",
"passkey": null,
"name": "4º Lote",
"keyLimit": "section:382789:ticket:382796",
"holder": []
}
],
"ticketQuantity": 2,
"tax": 8,
"statusHistory": [
{
"order": 1,
"name": "pending",
"createdAt": "2019-03-12 16:32:46"
}
],
"senderHash": null,
"saleStatus": "pending",
"saleId": "8366571",
"refund": null,
"referrerPath": null,
"referrerDomain": null,
"price": 80,
"payment": null,
"passkey": null,
"interestToCustomer": true,
"interest": 0,
"fraudNetPayload": null,
"extras": [],
"event": {
"zipCode": "04801-010",
"venue": "Autódromo de Interlagos - portão 7",
"userId": null,
"type": "arena",
"totalTickets": null,
"totalSessions": 1,
"title": "BAILE DO PERNA",
"time": "19:00:00",
"street": "Avenida Senador Teotônio Vilela, 261",
"state": "SP",
"shipping": false,
"poster": "https://event-kraken.s3.amazonaws.com/event/posters/28469/medium.jpg",
"paymentOptions": null,
"owner": {
"id": 1585403,
"email": "[email protected]"
},
"longitude": -46.70092,
"link": "event-link",
"latitude": -23.70379,
"id": 28469,
"eventDateId": 43397,
"defaultPaymentGateway": null,
"date": "2019-03-23",
"crossStreet": null,
"cpfTicketsLimit": 0,
"city": "São Paulo"
},
"date": {
"timezone_type": 3,
"timezone": "America/Sao_Paulo",
"date": "2019-03-12 16:32:46.000000"
},
"customer": null,
"companyId": 1,
"appId": "1008767"
}
}
Updated over 5 years ago