Compra Realizada
Quando uma compra é realizada enviamos este evento onde temos as informações a respeito de quem realizou a operação, valores a serem pagos e as datas para os pagamentos.
Você pode utilizar os _links para navegar nos recursos relacionados a este evento.
Path: /purchase
Webhook payload object
Chave | Tipo | Descrição |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Webhook payload example
{
"_links": {
"bid": {
"href": "https://gateway.dev.sales.finance/v1/buyers/62144175000120/bids/6620a220-b400-4222-bb94-afbc029956be",
"type": "GET"
}
},
"auctionId": "f7Hrm6k7Rl",
"bidId": "6620a220-b400-4222-bb94-afbc029956be",
"status": "WAITING_CUSTODY",
"averageTax": 16.9105,
"averageTenor": 169,
"paymentDate": 1649041200000,
"grossPaymentValue": 50891.25,
"netPaymentValue": 22451.45,
"buyerName": "BUYER SALES FINANCE",
"buyerGovernmentId": "62144175000120",
"sponsorName": "BUYER SALES FINANCE",
"sponsorPersonType": "LEGAL_PERSON",
"sponsorGovernmentId": "36147299000159",
"sponsorAddress": "Rua Sponsor",
"sponsorAddressNumber": "574",
"sponsorAddressComplement": "sponsor",
"sponsorNeighborhood": "Moema",
"sponsorCity": "São Paulo",
"sponsorState": "SP",
"sponsorCountry": "Brasil",
"sponsorZipCode": "13801510",
"sponsorBank": "033",
"sponsorAgency": "341",
"sponsorAccount": "1265",
"sponsorAccountDigit": "0",
"sellerName": "SELLER SALES FINANCE 2",
"sellerPersonType": "LEGAL_PERSON",
"sellerGovernmentId": "57648355000109",
"sellerAddress": "Rua Seller 2",
"sellerAddressNumber": "2",
"sellerAddressComplement": "Seller 2",
"sellerNeighborhood": "Moema",
"sellerCity": "São Paulo",
"sellerState": "SP",
"sellerCountry": "Brasil",
"sellerZipCode": "13801510",
"sellerBank": "001",
"sellerAgency": "2323",
"sellerAgencyDigit": "0",
"sellerAccount": "22",
"sellerAccountDigit": "2",
"createdAt": 1649424623283,
"items": [
{
"uuid": "7qohB0H6m1",
"externalId": "CX4119",
"invoiceDate": 1593054000000,
"invoiceNumber": "XV4119",
"invoiceKey": null,
"installment": 1,
"totalInstallment": 1,
"grossPaymentValue": 11897.25,
"paymentDate": 1665975600000,
"effectivePaymentDate": 1665975600000,
"tax": 19.9,
"netPaymentValue": 3569.54
}
]
}Updated 9 months ago