Compra Realizada V2
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
{
"purchaseId" : "f7Hrm6k7RR",
"auctionId" : "f7Hrm6k7Rl",
"bidId" : "6620a220-b400-4222-bb94-afbc029956be",
"status" : "WAITING_CUSTODY",
"averageTax" : 1.3345,
"averageTenor" : 169,
"paymentDate" : 1649041200000,
"grossPaymentValue" : 50891.25,
"netPaymentValue" : 22451.45,
"buyerName" : "BUYER SALES FINANCE",
"buyerGovernmentId" : "62144175000120",
"sellerName" : "SALES SALES FINANCE",
"sellerPersonType" : "LEGAL_PERSON",
"sellerGovernmentId" : "57648355000109",
"sellerAddress" : "RUA SELLER",
"sellerAddressNumber" : "404",
"sellerAddressComplement": "Seller",
"sellerNeighborhood" : "Moema",
"sellerCity" : "SÃO PAULO",
"sellerState" : "SP",
"sellerCountry" : "Brasil",
"sellerZipCode" : "13801510",
"sellerBank" : "001",
"sellerAgency" : "2323",
"sellerAgencyDigit" : "0",
"sellerAccount" : "11100",
"sellerAccountDigit" : "1",
"createdAt" : 1649424623283,
"items" : [
{
"uuid" : "7qohB0H6m1",
"externalId" : "CX4119",
"invoiceDate" : 1593054000000,
"invoiceNumber" : "1287572-32",
"invoiceKey" : "XV4119",
"installment" : 1,
"totalInstallment" : 1,
"grossPaymentValue" : 11897.25,
"paymentDate" : 1665975600000,
"effectivePaymentDate" : 1665975600000,
"tax" : 1.3345,
"netPaymentValue" : "3569.54",
"sponsorName" : "SPONSOR SALES FINANCE",
"sponsorPersonType" : "LEGAL_PERSON",
"sponsorGovernmentId" : "36147299000159",
"sponsorAddress" : "Rua Sponsor",
"sponsorAddressNumber" : "404",
"sponsorAddressComplement" : "NA",
"sponsorNeighborhood" : "Moeda",
"sponsorCity" : "São Paulo",
"sponsorState" : "SP",
"sponsorCountry" : "Brasil",
"sponsorZipCode" : "13801510",
"sponsorBank" : "001",
"sponsorAgency" : "2323",
"sponsorAgencyDigit" : "0"
}
],
"_links" : {
"purchase" : {
"href" : "https://gateway.sales.finance/v2/buyers/62144175000120/purchases/f7Hrm6k7RR",
"type" : "GET"
},
"purchase-response" : {
"href" : "https://gateway.sales.finance/v1/buyers/62144175000120/purchases/f7Hrm6k7RR/response",
"type" : "POST"
}
}
}Updated 9 months ago