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
{
"id":"VLbxGglIct",
"status":"WAITING_CUSTODY",
"tax":2.02,
"days":288,
"paymentDate":1550023200000,
"grossPaymentValue":232199.89,
"netPaymentValue":190804.21,
"buyerId":78676,
"buyerName":"INVESTIDOR",
"buyerGovernmentId":"02638882000895",
"sponsorId":4026534,
"sponsorName":"SACADO",
"sponsorPersonType":"LEGAL_PERSON",
"sponsorGovernmentId":"02135252000189",
"sponsorExternalCode":"100",
"sponsorAddress":"ROD. SP 080 KM 75,1",
"sponsorAddressNumber":"S/N",
"sponsorAddressComplement":"",
"sponsorNeighborhood":"CENTRO",
"sponsorCity":"São Paulo",
"sponsorState":"SP",
"sponsorCountry":"Brasil",
"sponsorZipCode":"26380000",
"sponsorBank": "033",
"sponsorAgency":"1234",
"sponsorAccount":"98765",
"sponsorAccountDigit":"9",
"sellerId":1614639272,
"sellerName":"CEDENTE",
"sellerPersonType":"LEGAL_PERSON",
"sellerGovernmentId":"02890352000103",
"sellerAddress":"Rua Monte Aprazável",
"sellerAddressNumber":"109",
"sellerAddressComplement":"",
"sellerNeighborhood":"Centro",
"sellerCity":"São Paulo",
"sellerState":"SP",
"sellerCountry":"Brasil",
"sellerZipCode":"04512030",
"sellerBank":"341",
"sellerAgency":"9122",
"sellerAgencyDigit":"0",
"sellerAccount":"02603",
"sellerAccountDigit":"1",
"coobrigation":false,
"createdAt":1553609535336,
"items":[
{
"id":"SFgA83Edw4",
"receivableUuid":"S8jTcn7GeW",
"externalId":"CFIiMIxfFZ",
"assetType":"DUPLICATA_MERCANTIL",
"performed":true,
"operationType":"PRE",
"invoiceType":"NOTA_FISCAL_ELETRONICA",
"invoiceDate":1574906400000,
"invoiceNumber":"rn0iSyHbCf",
"installment":1,
"totalInstallment":1,
"paymentValue":232199.89,
"paymentDate":1574906400000,
"status":"WAITING_CUSTODY",
"tax":1.7999999523162842,
"sellerPaymentValue":190804.21,
"sponsorTax":0.2199999988079071,
"sponsorPaymentValue":4847.36,
"penaltyBill":0.0,
"interestLatePayment":0.0
}
],
"_links":{
"seller":{
"href":"https://zuul.monkey.exchange/v2/buyers/78676/sellers/1614639272",
"type":"GET"
},
"sponsor":{
"href":"https://zuul.monkey.exchange/v2/buyers/78676/sponsors/4026534",
"type":"GET"
},
"purchase":{
"href":"https://zuul.monkey.exchange/v2/buyers/78676/purchases/VLbxGglIct",
"type":"GET"
},
"purchases":{
"href":"https://zuul.monkey.exchange/v2/buyers/78676/purchases",
"type":"GET"
},
"signature":{
"href":"https://zuul.monkey.exchange/v2/buyers/78676/signatures/VLbxGglIct",
"type":"GET"
}
}
}
Updated about 2 months ago