{"openapi":"3.2.0","info":{"title":"UnoPago Webhooks","description":"Outgoing webhook events sent by UnoPago to your endpoints","version":"1.0.0"},"webhooks":{"invoice_created":{"post":{"tags":["Webhook events"],"summary":"Invoice Created","description":"Triggered when a new invoice is created, a checkout session's `DRAFT` order included: it is announced when the session is created, usually with `customer: null`, and its first payment sends `invoice_updated`.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"invoice":{"type":"object","properties":{"lateFeeType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"pricingMode":{"type":"string","enum":["CURRENCY","REFERENCE"]},"status":{"type":"string","enum":["DRAFT","UNPAID","OVERDUE","PENDING","PARTIAL","PAID","VOIDED"]},"source":{"type":"string","enum":["STANDARD","KIOSK","ONBOARDING","CHECKOUT"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"externalId":{"type":["string","null"]},"accountId":{"type":"string"},"customerId":{"type":["string","null"]},"printJobId":{"type":["string","null"]},"fiscalRecordId":{"type":["string","null"]},"billingDetailsId":{"type":["string","null"]},"description":{"type":["string","null"]},"issueDate":{"type":"string"},"dueDate":{"type":["string","null"]},"expired":{"type":"boolean"},"paidAt":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"planDate":{"type":["string","null"]},"billingRunKey":{"type":["string","null"]},"lateFee":{"type":["number","null"]},"fiscalInvoicing":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"account":{"type":"object","properties":{"type":{"type":"string","enum":["SCHOOL","COMMERCE"]},"status":{"type":"string","enum":["ACTIVE","MAINTENANCE","SUSPENDED","DEACTIVATED"]},"mainCurrency":{"type":"string","enum":["VES","USD","EUR"]},"defaultPricingMode":{"type":"string","enum":["CURRENCY","REFERENCE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"name":{"type":"string"},"description":{"type":"string"},"isTest":{"type":"boolean"},"nationalId":{"type":["string","null"]},"phoneNumber":{"type":["string","null"]},"address":{"type":["string","null"]},"image":{"type":["string","null"]},"accountNotificationSettingId":{"type":["string","null"]},"merchantId":{"type":["string","null"]},"platformAccountId":{"type":["string","null"]},"externalId":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["type","status","mainCurrency","defaultPricingMode","id","name","description","isTest","nationalId","phoneNumber","address","image","accountNotificationSettingId","merchantId","platformAccountId","externalId","createdAt","updatedAt"]},"customer":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"externalId":{"type":["string","null"]},"mainContactId":{"type":["string","null"]},"nationalId":{"type":["string","null"]},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":["string","null"]},"phoneNumber":{"type":["string","null"]},"address":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","accountId","externalId","mainContactId","nationalId","firstName","lastName","email","phoneNumber","address","createdAt","updatedAt"]},{"type":"null"}],"description":"`null` for a `DRAFT` order: a checkout session's, announced when the session is created (a store's, once per checkout attempt). Usually what you get for a checkout order; read `status`, since the event reads the order when it is sent. Its first confirmed payment gives it a customer and sends `invoice_updated`, which carries `customerId` only: read the customer with `GET /v1/customers/{id}`."},"items":{"type":"array","items":{"type":"object","properties":{"discountValueType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"productId":{"type":["string","null"]},"studentId":{"type":["string","null"]},"description":{"type":"string"},"amount":{"type":"number"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exento":{"type":"boolean"},"isService":{"type":"boolean"},"subscriptionId":{"type":["string","null"]},"ivaRatePercent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"discountValue":{"type":["number","null"]},"discountExpiresAt":{"type":["string","null"]},"discountExpired":{"type":["boolean","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["discountValueType","id","accountId","invoiceId","productId","studentId","description","amount","quantity","exento","isService","subscriptionId","ivaRatePercent","discountExpiresAt","discountExpired","createdAt","updatedAt"]}},"discounts":{"type":"array","items":{"type":"object","properties":{"valueType":{"type":"string","enum":["PERCENTAGE","FIXED"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"description":{"type":"string"},"value":{"type":"number"},"expiresAt":{"type":["string","null"]},"expired":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["valueType","id","accountId","invoiceId","fromPaymentId","description","value","expiresAt","expired","createdAt","updatedAt"]}},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["IGTF","IVA","PROCESSING_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"amount":{"type":"number"},"rate":{"type":"number"},"rateBase":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["type","id","accountId","invoiceId","fromPaymentId","amount","rate","rateBase","createdAt","updatedAt"]}}},"required":["lateFeeType","currency","pricingMode","status","source","id","externalId","accountId","customerId","printJobId","fiscalRecordId","billingDetailsId","description","issueDate","dueDate","expired","paidAt","voidedAt","planDate","billingRunKey","fiscalInvoicing","createdAt","updatedAt","account","customer","items","discounts","fees"]},"checkoutSessionId":{"description":"The hosted checkout session it came from, `null` when it came from anywhere else (a payment recorded from the panel included). A session paid in parts sends a `payment_received` per payment, all with the same id. Read the session with `GET /v1/checkout-sessions/{id}`.","type":["string","null"]}},"required":["invoice","checkoutSessionId"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"invoice_updated":{"post":{"tags":["Webhook events"],"summary":"Invoice Updated","description":"Triggered when an invoice is updated","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"invoice":{"type":"object","properties":{"lateFeeType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"pricingMode":{"type":"string","enum":["CURRENCY","REFERENCE"]},"status":{"type":"string","enum":["DRAFT","UNPAID","OVERDUE","PENDING","PARTIAL","PAID","VOIDED"]},"source":{"type":"string","enum":["STANDARD","KIOSK","ONBOARDING","CHECKOUT"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"externalId":{"type":["string","null"]},"accountId":{"type":"string"},"customerId":{"type":["string","null"]},"printJobId":{"type":["string","null"]},"fiscalRecordId":{"type":["string","null"]},"billingDetailsId":{"type":["string","null"]},"description":{"type":["string","null"]},"issueDate":{"type":"string"},"dueDate":{"type":["string","null"]},"expired":{"type":"boolean"},"paidAt":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"planDate":{"type":["string","null"]},"billingRunKey":{"type":["string","null"]},"lateFee":{"type":["number","null"]},"fiscalInvoicing":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"discountValueType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"productId":{"type":["string","null"]},"studentId":{"type":["string","null"]},"description":{"type":"string"},"amount":{"type":"number"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exento":{"type":"boolean"},"isService":{"type":"boolean"},"subscriptionId":{"type":["string","null"]},"ivaRatePercent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"discountValue":{"type":["number","null"]},"discountExpiresAt":{"type":["string","null"]},"discountExpired":{"type":["boolean","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["discountValueType","id","accountId","invoiceId","productId","studentId","description","amount","quantity","exento","isService","subscriptionId","ivaRatePercent","discountExpiresAt","discountExpired","createdAt","updatedAt"]}},"discounts":{"type":"array","items":{"type":"object","properties":{"valueType":{"type":"string","enum":["PERCENTAGE","FIXED"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"description":{"type":"string"},"value":{"type":"number"},"expiresAt":{"type":["string","null"]},"expired":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["valueType","id","accountId","invoiceId","fromPaymentId","description","value","expiresAt","expired","createdAt","updatedAt"]}},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["IGTF","IVA","PROCESSING_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"amount":{"type":"number"},"rate":{"type":"number"},"rateBase":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["type","id","accountId","invoiceId","fromPaymentId","amount","rate","rateBase","createdAt","updatedAt"]}},"transactions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ITEMS","DISCOUNT","LATE_FEE","IVA","IGTF","PROCESSING_FEE","PAYMENT","REFUND","RETENTION","EXCHANGE_DIFFERENCE","ADJUSTMENT"]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"invoiceId":{"type":"string"},"statementId":{"type":["string","null"]},"description":{"type":"string"},"transactionDate":{"type":"string"},"exchangeRate":{"type":"number"},"rateDate":{"type":"string"},"credit":{"type":"number"},"debit":{"type":"number"},"paymentId":{"type":["string","null"]},"fromPaymentId":{"type":["string","null"]},"retentionId":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"payment":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","enum":["VES","USD","EUR"]},"receiverBankName":{"anyOf":[{"type":"string","enum":["A100BANCO","BANCAMIGA","BANCARIBE","BANESCO","BDV","BFC","BNC","MERCANTIL","PROVINCIAL","BANCO_DEL_TESORO","BANCO_PLAZA","SOFITASA","BANCO_ACTIVO","BANCO_AGRICOLA","BANCO_BICENTENARIO","BANCO_CARONI","BANCO_EXTERIOR","BANCRECER","BANFANB","BANGENTE","BANPLUS","DELSUR","R4","VENEZOLANO_DE_CREDITO","BANK_OF_AMERICA","AMERANT_BANK","US_BANK","WELLS_FARGO","BINANCE"]},{"type":"null"}]},"method":{"type":"string","enum":["BANK_TRANSFER","ZELLE","C2P","IMMEDIATE_DEBIT","P2P","CASH","POS","CUSTOMER_CREDIT","STRIPE_ACH","STRIPE_CARD","DEBIT_CARD","PAYROLL","BINANCE_PAY","LEDGER_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"amount":{"type":"number"},"transactionDate":{"type":"string"},"rateDate":{"type":["string","null"]},"referenceCode":{"type":["string","null"]},"externalId":{"type":["string","null"]},"receiverBankHolderName":{"type":["string","null"]},"receiverBankNationalId":{"type":["string","null"]},"customerFullName":{"type":["string","null"]},"customerNationalId":{"type":["string","null"]},"customerPhoneNumber":{"type":["string","null"]},"customerBankAccountNumber":{"type":["string","null"]},"customerEmail":{"type":["string","null"]},"customerNote":{"type":["string","null"]},"customerIpAddress":{"type":["string","null"]},"customerUserAgent":{"type":["string","null"]},"isAutoPay":{"type":"boolean"},"bankAccountId":{"type":["string","null"]},"paymentClaimId":{"type":["string","null"]},"bankTransactionId":{"type":["string","null"]},"createdById":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"splitAmount":{"type":["number","null"]}},"required":["currency","receiverBankName","method","id","accountId","customerId","amount","transactionDate","rateDate","referenceCode","externalId","receiverBankHolderName","receiverBankNationalId","customerFullName","customerNationalId","customerPhoneNumber","customerBankAccountNumber","customerEmail","customerNote","customerIpAddress","customerUserAgent","isAutoPay","bankAccountId","paymentClaimId","bankTransactionId","createdById","createdAt","updatedAt"]},{"type":"null"}]}},"required":["kind","currency","id","accountId","customerId","invoiceId","statementId","description","transactionDate","exchangeRate","rateDate","credit","debit","paymentId","fromPaymentId","retentionId","createdAt","updatedAt","payment"]}}},"required":["lateFeeType","currency","pricingMode","status","source","id","externalId","accountId","customerId","printJobId","fiscalRecordId","billingDetailsId","description","issueDate","dueDate","expired","paidAt","voidedAt","planDate","billingRunKey","fiscalInvoicing","createdAt","updatedAt","items","discounts","fees","transactions"]},"checkoutSessionId":{"description":"The hosted checkout session it came from, `null` when it came from anywhere else (a payment recorded from the panel included). A session paid in parts sends a `payment_received` per payment, all with the same id. Read the session with `GET /v1/checkout-sessions/{id}`.","type":["string","null"]}},"required":["invoice","checkoutSessionId"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"invoice_paid":{"post":{"tags":["Webhook events"],"summary":"Invoice Paid","description":"Triggered when an invoice is paid","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"invoice":{"type":"object","properties":{"lateFeeType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"pricingMode":{"type":"string","enum":["CURRENCY","REFERENCE"]},"status":{"type":"string","enum":["DRAFT","UNPAID","OVERDUE","PENDING","PARTIAL","PAID","VOIDED"]},"source":{"type":"string","enum":["STANDARD","KIOSK","ONBOARDING","CHECKOUT"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"externalId":{"type":["string","null"]},"accountId":{"type":"string"},"customerId":{"type":["string","null"]},"printJobId":{"type":["string","null"]},"fiscalRecordId":{"type":["string","null"]},"billingDetailsId":{"type":["string","null"]},"description":{"type":["string","null"]},"issueDate":{"type":"string"},"dueDate":{"type":["string","null"]},"expired":{"type":"boolean"},"paidAt":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"planDate":{"type":["string","null"]},"billingRunKey":{"type":["string","null"]},"lateFee":{"type":["number","null"]},"fiscalInvoicing":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"discountValueType":{"anyOf":[{"type":"string","enum":["PERCENTAGE","FIXED"]},{"type":"null"}]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"productId":{"type":["string","null"]},"studentId":{"type":["string","null"]},"description":{"type":"string"},"amount":{"type":"number"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exento":{"type":"boolean"},"isService":{"type":"boolean"},"subscriptionId":{"type":["string","null"]},"ivaRatePercent":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"discountValue":{"type":["number","null"]},"discountExpiresAt":{"type":["string","null"]},"discountExpired":{"type":["boolean","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["discountValueType","id","accountId","invoiceId","productId","studentId","description","amount","quantity","exento","isService","subscriptionId","ivaRatePercent","discountExpiresAt","discountExpired","createdAt","updatedAt"]}},"discounts":{"type":"array","items":{"type":"object","properties":{"valueType":{"type":"string","enum":["PERCENTAGE","FIXED"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"description":{"type":"string"},"value":{"type":"number"},"expiresAt":{"type":["string","null"]},"expired":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["valueType","id","accountId","invoiceId","fromPaymentId","description","value","expiresAt","expired","createdAt","updatedAt"]}},"fees":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["IGTF","IVA","PROCESSING_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"invoiceId":{"type":"string"},"fromPaymentId":{"type":["string","null"]},"amount":{"type":"number"},"rate":{"type":"number"},"rateBase":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["type","id","accountId","invoiceId","fromPaymentId","amount","rate","rateBase","createdAt","updatedAt"]}},"transactions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ITEMS","DISCOUNT","LATE_FEE","IVA","IGTF","PROCESSING_FEE","PAYMENT","REFUND","RETENTION","EXCHANGE_DIFFERENCE","ADJUSTMENT"]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"invoiceId":{"type":"string"},"statementId":{"type":["string","null"]},"description":{"type":"string"},"transactionDate":{"type":"string"},"exchangeRate":{"type":"number"},"rateDate":{"type":"string"},"credit":{"type":"number"},"debit":{"type":"number"},"paymentId":{"type":["string","null"]},"fromPaymentId":{"type":["string","null"]},"retentionId":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"payment":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","enum":["VES","USD","EUR"]},"receiverBankName":{"anyOf":[{"type":"string","enum":["A100BANCO","BANCAMIGA","BANCARIBE","BANESCO","BDV","BFC","BNC","MERCANTIL","PROVINCIAL","BANCO_DEL_TESORO","BANCO_PLAZA","SOFITASA","BANCO_ACTIVO","BANCO_AGRICOLA","BANCO_BICENTENARIO","BANCO_CARONI","BANCO_EXTERIOR","BANCRECER","BANFANB","BANGENTE","BANPLUS","DELSUR","R4","VENEZOLANO_DE_CREDITO","BANK_OF_AMERICA","AMERANT_BANK","US_BANK","WELLS_FARGO","BINANCE"]},{"type":"null"}]},"method":{"type":"string","enum":["BANK_TRANSFER","ZELLE","C2P","IMMEDIATE_DEBIT","P2P","CASH","POS","CUSTOMER_CREDIT","STRIPE_ACH","STRIPE_CARD","DEBIT_CARD","PAYROLL","BINANCE_PAY","LEDGER_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"amount":{"type":"number"},"transactionDate":{"type":"string"},"rateDate":{"type":["string","null"]},"referenceCode":{"type":["string","null"]},"externalId":{"type":["string","null"]},"receiverBankHolderName":{"type":["string","null"]},"receiverBankNationalId":{"type":["string","null"]},"customerFullName":{"type":["string","null"]},"customerNationalId":{"type":["string","null"]},"customerPhoneNumber":{"type":["string","null"]},"customerBankAccountNumber":{"type":["string","null"]},"customerEmail":{"type":["string","null"]},"customerNote":{"type":["string","null"]},"customerIpAddress":{"type":["string","null"]},"customerUserAgent":{"type":["string","null"]},"isAutoPay":{"type":"boolean"},"bankAccountId":{"type":["string","null"]},"paymentClaimId":{"type":["string","null"]},"bankTransactionId":{"type":["string","null"]},"createdById":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"splitAmount":{"type":["number","null"]}},"required":["currency","receiverBankName","method","id","accountId","customerId","amount","transactionDate","rateDate","referenceCode","externalId","receiverBankHolderName","receiverBankNationalId","customerFullName","customerNationalId","customerPhoneNumber","customerBankAccountNumber","customerEmail","customerNote","customerIpAddress","customerUserAgent","isAutoPay","bankAccountId","paymentClaimId","bankTransactionId","createdById","createdAt","updatedAt"]},{"type":"null"}]}},"required":["kind","currency","id","accountId","customerId","invoiceId","statementId","description","transactionDate","exchangeRate","rateDate","credit","debit","paymentId","fromPaymentId","retentionId","createdAt","updatedAt","payment"]}}},"required":["lateFeeType","currency","pricingMode","status","source","id","externalId","accountId","customerId","printJobId","fiscalRecordId","billingDetailsId","description","issueDate","dueDate","expired","paidAt","voidedAt","planDate","billingRunKey","fiscalInvoicing","createdAt","updatedAt","items","discounts","fees","transactions"]},"checkoutSessionId":{"description":"The hosted checkout session it came from, `null` when it came from anywhere else (a payment recorded from the panel included). A session paid in parts sends a `payment_received` per payment, all with the same id. Read the session with `GET /v1/checkout-sessions/{id}`.","type":["string","null"]}},"required":["invoice","checkoutSessionId"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"payment_received":{"post":{"tags":["Webhook events"],"summary":"Payment Received","description":"Triggered when a payment is created","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"payment":{"type":"object","properties":{"currency":{"type":"string","enum":["VES","USD","EUR"]},"receiverBankName":{"anyOf":[{"type":"string","enum":["A100BANCO","BANCAMIGA","BANCARIBE","BANESCO","BDV","BFC","BNC","MERCANTIL","PROVINCIAL","BANCO_DEL_TESORO","BANCO_PLAZA","SOFITASA","BANCO_ACTIVO","BANCO_AGRICOLA","BANCO_BICENTENARIO","BANCO_CARONI","BANCO_EXTERIOR","BANCRECER","BANFANB","BANGENTE","BANPLUS","DELSUR","R4","VENEZOLANO_DE_CREDITO","BANK_OF_AMERICA","AMERANT_BANK","US_BANK","WELLS_FARGO","BINANCE"]},{"type":"null"}]},"method":{"type":"string","enum":["BANK_TRANSFER","ZELLE","C2P","IMMEDIATE_DEBIT","P2P","CASH","POS","CUSTOMER_CREDIT","STRIPE_ACH","STRIPE_CARD","DEBIT_CARD","PAYROLL","BINANCE_PAY","LEDGER_FEE"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"amount":{"type":"number"},"transactionDate":{"type":"string"},"rateDate":{"type":["string","null"]},"referenceCode":{"type":["string","null"]},"externalId":{"type":["string","null"]},"receiverBankHolderName":{"type":["string","null"]},"receiverBankNationalId":{"type":["string","null"]},"customerFullName":{"type":["string","null"]},"customerNationalId":{"type":["string","null"]},"customerPhoneNumber":{"type":["string","null"]},"customerBankAccountNumber":{"type":["string","null"]},"customerEmail":{"type":["string","null"]},"customerNote":{"type":["string","null"]},"customerIpAddress":{"type":["string","null"]},"customerUserAgent":{"type":["string","null"]},"isAutoPay":{"type":"boolean"},"bankAccountId":{"type":["string","null"]},"paymentClaimId":{"type":["string","null"]},"bankTransactionId":{"type":["string","null"]},"createdById":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"splitAmount":{"type":["number","null"]},"paymentTransactions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["ITEMS","DISCOUNT","LATE_FEE","IVA","IGTF","PROCESSING_FEE","PAYMENT","REFUND","RETENTION","EXCHANGE_DIFFERENCE","ADJUSTMENT"]},"currency":{"type":"string","enum":["VES","USD","EUR"]},"id":{"type":"string","format":"cuid","pattern":"^[cC][0-9a-z]{6,}$"},"accountId":{"type":"string"},"customerId":{"type":"string"},"invoiceId":{"type":"string"},"statementId":{"type":["string","null"]},"description":{"type":"string"},"transactionDate":{"type":"string"},"exchangeRate":{"type":"number"},"rateDate":{"type":"string"},"credit":{"type":"number"},"debit":{"type":"number"},"paymentId":{"type":["string","null"]},"fromPaymentId":{"type":["string","null"]},"retentionId":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["kind","currency","id","accountId","customerId","invoiceId","statementId","description","transactionDate","exchangeRate","rateDate","credit","debit","paymentId","fromPaymentId","retentionId","createdAt","updatedAt"]}}},"required":["currency","receiverBankName","method","id","accountId","customerId","amount","transactionDate","rateDate","referenceCode","externalId","receiverBankHolderName","receiverBankNationalId","customerFullName","customerNationalId","customerPhoneNumber","customerBankAccountNumber","customerEmail","customerNote","customerIpAddress","customerUserAgent","isAutoPay","bankAccountId","paymentClaimId","bankTransactionId","createdById","createdAt","updatedAt","paymentTransactions"]},"checkoutSessionId":{"description":"The hosted checkout session it came from, `null` when it came from anywhere else (a payment recorded from the panel included). A session paid in parts sends a `payment_received` per payment, all with the same id. Read the session with `GET /v1/checkout-sessions/{id}`.","type":["string","null"]}},"required":["payment","checkoutSessionId"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"checkout_session_paid":{"post":{"tags":["Webhook events"],"summary":"Checkout Session Paid","description":"Triggered once a checkout session is fully paid. Use it as the fulfilment signal: fulfil on the event type, not on which fields are set. It carries the session's `externalId`, `invoiceId`, `amountPaid` and `paymentIds`, every payment applied to it, oldest first.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"checkoutSession":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","PROCESSING","PAID","FAILED","EXPIRED","CANCELED"]},"automaticTax":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":["string","null"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"exento":{"type":"boolean"},"taxes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"IVA"},"rate":{"type":"number"},"amount":{"type":"number"}},"required":["type","rate","amount"]}}},"required":["productId","description","quantity","amount","exento","taxes"]}},"subtotal":{"type":"number"},"ivaRate":{"type":["number","null"]},"ivaAmount":{"type":"number"},"ivaBreakdown":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"number"},"rateBase":{"type":"number"},"amount":{"type":"number"}},"required":["rate","rateBase","amount"]}},"amount":{"type":"number"},"currency":{"type":"string","enum":["VES","USD","EUR"]},"amountVes":{"type":"number"},"exchangeRate":{"type":["number","null"]},"exchangeRateDate":{"type":["string","null"]},"amountPaid":{"type":"number","description":"What the session has been paid so far, in `currency`, on `amount` (fees not included), a payment recorded into its invoice outside the checkout included. A canceled session still counts what it was paid."},"amountRemaining":{"type":"number","description":"`amount` minus `amountPaid`, never below 0, whatever the `status`."},"splits":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"externalId":{"type":["string","null"]},"amount":{"type":"number"},"amountVes":{"type":["number","null"]}},"required":["vendor","externalId","amount","amountVes"]},"description":"The parts of the order owed to vendors, in `currency`. `amountVes` is each part in bolívares at the rate of the payment that paid the session, `null` until it is `PAID`. Empty for a session without them."},"reference":{"type":["string","null"]},"description":{"type":["string","null"]},"buyerName":{"type":["string","null"]},"buyerEmail":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"provider":{"type":"string","enum":["API","SHOPIFY","STOREFRONT"]},"invoiceId":{"description":"The session's order, written as a `DRAFT` when the session is created and issued to the payer by its first payment. `null` only for a session created before drafts, until its first payment. Canceling a partly paid session voids it; a `DRAFT` is left as it is.","type":["string","null"]},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments applied to its invoice, oldest first, the same ids `payment_received` carries. Empty until a first payment. Includes a payment recorded into its invoice from the panel, whose own `payment_received` has `checkoutSessionId: null`."},"paymentId":{"description":"Deprecated: will be removed. The payment that closed the session, `null` until it is `PAID`. Use `paymentIds`.","type":["string","null"]},"test":{"type":"boolean"}},"required":["id","externalId","status","automaticTax","items","subtotal","ivaRate","ivaAmount","ivaBreakdown","amount","currency","amountVes","exchangeRate","exchangeRateDate","amountPaid","amountRemaining","splits","reference","description","buyerName","buyerEmail","paidAt","expiresAt","createdAt","updatedAt","provider","invoiceId","paymentIds","paymentId","test"]}},"required":["checkoutSession"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"checkout_session_partially_paid":{"post":{"tags":["Webhook events"],"summary":"Checkout Session Partially Paid","description":"Triggered when a payment pays part of a checkout session and leaves the rest to pay: one per such payment, with the session still `OPEN` and its `amountPaid`, `amountRemaining` and `paymentIds`. The payment that closes the session sends `checkout_session_paid` instead. The session is read when the event is sent, so a late delivery can already show it `PAID`: trust the event type.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"checkoutSession":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","PROCESSING","PAID","FAILED","EXPIRED","CANCELED"]},"automaticTax":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":["string","null"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"exento":{"type":"boolean"},"taxes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"IVA"},"rate":{"type":"number"},"amount":{"type":"number"}},"required":["type","rate","amount"]}}},"required":["productId","description","quantity","amount","exento","taxes"]}},"subtotal":{"type":"number"},"ivaRate":{"type":["number","null"]},"ivaAmount":{"type":"number"},"ivaBreakdown":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"number"},"rateBase":{"type":"number"},"amount":{"type":"number"}},"required":["rate","rateBase","amount"]}},"amount":{"type":"number"},"currency":{"type":"string","enum":["VES","USD","EUR"]},"amountVes":{"type":"number"},"exchangeRate":{"type":["number","null"]},"exchangeRateDate":{"type":["string","null"]},"amountPaid":{"type":"number","description":"What the session has been paid so far, in `currency`, on `amount` (fees not included), a payment recorded into its invoice outside the checkout included. A canceled session still counts what it was paid."},"amountRemaining":{"type":"number","description":"`amount` minus `amountPaid`, never below 0, whatever the `status`."},"splits":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"externalId":{"type":["string","null"]},"amount":{"type":"number"},"amountVes":{"type":["number","null"]}},"required":["vendor","externalId","amount","amountVes"]},"description":"The parts of the order owed to vendors, in `currency`. `amountVes` is each part in bolívares at the rate of the payment that paid the session, `null` until it is `PAID`. Empty for a session without them."},"reference":{"type":["string","null"]},"description":{"type":["string","null"]},"buyerName":{"type":["string","null"]},"buyerEmail":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"provider":{"type":"string","enum":["API","SHOPIFY","STOREFRONT"]},"invoiceId":{"description":"The session's order, written as a `DRAFT` when the session is created and issued to the payer by its first payment. `null` only for a session created before drafts, until its first payment. Canceling a partly paid session voids it; a `DRAFT` is left as it is.","type":["string","null"]},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments applied to its invoice, oldest first, the same ids `payment_received` carries. Empty until a first payment. Includes a payment recorded into its invoice from the panel, whose own `payment_received` has `checkoutSessionId: null`."},"paymentId":{"description":"Deprecated: will be removed. The payment that closed the session, `null` until it is `PAID`. Use `paymentIds`.","type":["string","null"]},"test":{"type":"boolean"}},"required":["id","externalId","status","automaticTax","items","subtotal","ivaRate","ivaAmount","ivaBreakdown","amount","currency","amountVes","exchangeRate","exchangeRateDate","amountPaid","amountRemaining","splits","reference","description","buyerName","buyerEmail","paidAt","expiresAt","createdAt","updatedAt","provider","invoiceId","paymentIds","paymentId","test"]}},"required":["checkoutSession"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"checkout_session_expired":{"post":{"tags":["Webhook events"],"summary":"Checkout Session Expired","description":"Triggered when an open checkout session passes its `expiresAt` without being paid, including a bank rejection that arrives after it.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"checkoutSession":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","PROCESSING","PAID","FAILED","EXPIRED","CANCELED"]},"automaticTax":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":["string","null"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"exento":{"type":"boolean"},"taxes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"IVA"},"rate":{"type":"number"},"amount":{"type":"number"}},"required":["type","rate","amount"]}}},"required":["productId","description","quantity","amount","exento","taxes"]}},"subtotal":{"type":"number"},"ivaRate":{"type":["number","null"]},"ivaAmount":{"type":"number"},"ivaBreakdown":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"number"},"rateBase":{"type":"number"},"amount":{"type":"number"}},"required":["rate","rateBase","amount"]}},"amount":{"type":"number"},"currency":{"type":"string","enum":["VES","USD","EUR"]},"amountVes":{"type":"number"},"exchangeRate":{"type":["number","null"]},"exchangeRateDate":{"type":["string","null"]},"amountPaid":{"type":"number","description":"What the session has been paid so far, in `currency`, on `amount` (fees not included), a payment recorded into its invoice outside the checkout included. A canceled session still counts what it was paid."},"amountRemaining":{"type":"number","description":"`amount` minus `amountPaid`, never below 0, whatever the `status`."},"splits":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"externalId":{"type":["string","null"]},"amount":{"type":"number"},"amountVes":{"type":["number","null"]}},"required":["vendor","externalId","amount","amountVes"]},"description":"The parts of the order owed to vendors, in `currency`. `amountVes` is each part in bolívares at the rate of the payment that paid the session, `null` until it is `PAID`. Empty for a session without them."},"reference":{"type":["string","null"]},"description":{"type":["string","null"]},"buyerName":{"type":["string","null"]},"buyerEmail":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"provider":{"type":"string","enum":["API","SHOPIFY","STOREFRONT"]},"invoiceId":{"description":"The session's order, written as a `DRAFT` when the session is created and issued to the payer by its first payment. `null` only for a session created before drafts, until its first payment. Canceling a partly paid session voids it; a `DRAFT` is left as it is.","type":["string","null"]},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments applied to its invoice, oldest first, the same ids `payment_received` carries. Empty until a first payment. Includes a payment recorded into its invoice from the panel, whose own `payment_received` has `checkoutSessionId: null`."},"paymentId":{"description":"Deprecated: will be removed. The payment that closed the session, `null` until it is `PAID`. Use `paymentIds`.","type":["string","null"]},"test":{"type":"boolean"}},"required":["id","externalId","status","automaticTax","items","subtotal","ivaRate","ivaAmount","ivaBreakdown","amount","currency","amountVes","exchangeRate","exchangeRateDate","amountPaid","amountRemaining","splits","reference","description","buyerName","buyerEmail","paidAt","expiresAt","createdAt","updatedAt","provider","invoiceId","paymentIds","paymentId","test"]}},"required":["checkoutSession"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"checkout_session_canceled":{"post":{"tags":["Webhook events"],"summary":"Checkout Session Canceled","description":"Triggered when an open checkout session is canceled by the merchant API or replaced by a new storefront checkout.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"checkoutSession":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","PROCESSING","PAID","FAILED","EXPIRED","CANCELED"]},"automaticTax":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":["string","null"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"number"},"exento":{"type":"boolean"},"taxes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"IVA"},"rate":{"type":"number"},"amount":{"type":"number"}},"required":["type","rate","amount"]}}},"required":["productId","description","quantity","amount","exento","taxes"]}},"subtotal":{"type":"number"},"ivaRate":{"type":["number","null"]},"ivaAmount":{"type":"number"},"ivaBreakdown":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"number"},"rateBase":{"type":"number"},"amount":{"type":"number"}},"required":["rate","rateBase","amount"]}},"amount":{"type":"number"},"currency":{"type":"string","enum":["VES","USD","EUR"]},"amountVes":{"type":"number"},"exchangeRate":{"type":["number","null"]},"exchangeRateDate":{"type":["string","null"]},"amountPaid":{"type":"number","description":"What the session has been paid so far, in `currency`, on `amount` (fees not included), a payment recorded into its invoice outside the checkout included. A canceled session still counts what it was paid."},"amountRemaining":{"type":"number","description":"`amount` minus `amountPaid`, never below 0, whatever the `status`."},"splits":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"externalId":{"type":["string","null"]},"amount":{"type":"number"},"amountVes":{"type":["number","null"]}},"required":["vendor","externalId","amount","amountVes"]},"description":"The parts of the order owed to vendors, in `currency`. `amountVes` is each part in bolívares at the rate of the payment that paid the session, `null` until it is `PAID`. Empty for a session without them."},"reference":{"type":["string","null"]},"description":{"type":["string","null"]},"buyerName":{"type":["string","null"]},"buyerEmail":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"provider":{"type":"string","enum":["API","SHOPIFY","STOREFRONT"]},"invoiceId":{"description":"The session's order, written as a `DRAFT` when the session is created and issued to the payer by its first payment. `null` only for a session created before drafts, until its first payment. Canceling a partly paid session voids it; a `DRAFT` is left as it is.","type":["string","null"]},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments applied to its invoice, oldest first, the same ids `payment_received` carries. Empty until a first payment. Includes a payment recorded into its invoice from the panel, whose own `payment_received` has `checkoutSessionId: null`."},"paymentId":{"description":"Deprecated: will be removed. The payment that closed the session, `null` until it is `PAID`. Use `paymentIds`.","type":["string","null"]},"test":{"type":"boolean"}},"required":["id","externalId","status","automaticTax","items","subtotal","ivaRate","ivaAmount","ivaBreakdown","amount","currency","amountVes","exchangeRate","exchangeRateDate","amountPaid","amountRemaining","splits","reference","description","buyerName","buyerEmail","paidAt","expiresAt","createdAt","updatedAt","provider","invoiceId","paymentIds","paymentId","test"]}},"required":["checkoutSession"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"settlement_completed":{"post":{"tags":["Webhook events"],"summary":"Settlement Completed","description":"Triggered when UnoPago pays out what it collected to the account's bank account. `paymentIds` lists the payments it covers that UnoPago recorded, so it can be shorter than `paymentCount`. A payout to one of your vendors sends the same event with `vendor`: the three settlement events are how you learn what became of a vendor's payout, and UnoPago sends the vendor nothing. A vendor's events go to your account's own endpoints, never to the connected-accounts ones, also when its parts came from your connected accounts' orders: subscribe an endpoint of your own to the three. If you split orders, read `vendor` before counting a payout as yours: `netAmount` of a vendor's payout was deposited to the vendor.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"settlement":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","CANCELED"]},"currency":{"type":"string","const":"VES"},"totalAmount":{"type":"string","description":"What the paid payments collected, in bolívares. On a vendor's payout, the vendor's parts of them."},"totalFees":{"type":"string","description":"UnoPago's fees on them. `0` on a vendor's payout: the account pays the fee on the whole charge."},"totalSplits":{"type":"string","description":"The parts of those payments owed to vendors (`splits` on their checkout sessions), paid to each vendor in a payout of its own. `0` on a vendor's payout and on a payout with no split payment."},"netAmount":{"type":"string","description":"What was sent to the bank account: `totalAmount − totalFees − totalSplits`."},"vendor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]}},"required":["id","externalId"]},{"type":"null"}],"description":"The vendor this payout pays, with your own id for it. `null` on your own payout. A vendor is not notified by UnoPago: these events are how you learn its payout was paid, failed or was canceled. They are sent to your account's own endpoints, not to the connected-accounts ones."},"paymentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments this payout covers that UnoPago recorded, the same ids `payment_received` carries. Can be shorter than `paymentCount`. On a vendor's payout, the payments its parts came from. On `settlement_canceled`, the canceled payout's payments, paid in a later payout once UnoPago clears them."},"processingBank":{"type":"string"},"bankReference":{"type":["string","null"]},"bankAccount":{"anyOf":[{"type":"object","properties":{"bankCode":{"type":"string"},"accountNumberLast4":{"type":"string"}},"required":["bankCode","accountNumberLast4"]},{"type":"null"}]},"processedAt":{"type":["string","null"]}},"required":["id","status","currency","totalAmount","totalFees","totalSplits","netAmount","vendor","paymentCount","paymentIds","processingBank","bankReference","bankAccount","processedAt"]}},"required":["settlement"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"settlement_failed":{"post":{"tags":["Webhook events"],"summary":"Settlement Failed","description":"Triggered when a payout could not be completed: the bank refused it, or UnoPago could not confirm it (the check before sending it failed, or a review found it was not paid). A payout that fails twice sends it twice, with a different event `id`. The money stays owed to the account and UnoPago reviews it: it either sends this payout again (`settlement_completed` with the same `id`, or another `settlement_failed`) or releases it: then `settlement_canceled` arrives and its payments are paid in a later payout with a new `id`. A vendor's payout (`vendor` is set) fails the same ways. When it was the bank that refused it, usually a wrong account, you can release it yourself: update the vendor's bank account and have an owner confirm it; `settlement_canceled` arrives and the next run pays it to the new account. The event does not say which of the two it was: if no `settlement_canceled` follows the confirmation, UnoPago is reviewing the payout.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"settlement":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","CANCELED"]},"currency":{"type":"string","const":"VES"},"totalAmount":{"type":"string","description":"What the paid payments collected, in bolívares. On a vendor's payout, the vendor's parts of them."},"totalFees":{"type":"string","description":"UnoPago's fees on them. `0` on a vendor's payout: the account pays the fee on the whole charge."},"totalSplits":{"type":"string","description":"The parts of those payments owed to vendors (`splits` on their checkout sessions), paid to each vendor in a payout of its own. `0` on a vendor's payout and on a payout with no split payment."},"netAmount":{"type":"string","description":"What was sent to the bank account: `totalAmount − totalFees − totalSplits`."},"vendor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]}},"required":["id","externalId"]},{"type":"null"}],"description":"The vendor this payout pays, with your own id for it. `null` on your own payout. A vendor is not notified by UnoPago: these events are how you learn its payout was paid, failed or was canceled. They are sent to your account's own endpoints, not to the connected-accounts ones."},"paymentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments this payout covers that UnoPago recorded, the same ids `payment_received` carries. Can be shorter than `paymentCount`. On a vendor's payout, the payments its parts came from. On `settlement_canceled`, the canceled payout's payments, paid in a later payout once UnoPago clears them."},"processingBank":{"type":"string"},"bankReference":{"type":["string","null"]},"bankAccount":{"anyOf":[{"type":"object","properties":{"bankCode":{"type":"string"},"accountNumberLast4":{"type":"string"}},"required":["bankCode","accountNumberLast4"]},{"type":"null"}]},"processedAt":{"type":["string","null"]}},"required":["id","status","currency","totalAmount","totalFees","totalSplits","netAmount","vendor","paymentCount","paymentIds","processingBank","bankReference","bankAccount","processedAt"]}},"required":["settlement"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"settlement_canceled":{"post":{"tags":["Webhook events"],"summary":"Settlement Canceled","description":"Triggered when UnoPago cancels a payout that was never sent — the bank refused it, or UnoPago held it to review its payments — instead of sending it again: it will never be paid. `paymentIds` are its payments: they are paid in a later payout, with a new `id`, once UnoPago clears them.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"settlement":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","CANCELED"]},"currency":{"type":"string","const":"VES"},"totalAmount":{"type":"string","description":"What the paid payments collected, in bolívares. On a vendor's payout, the vendor's parts of them."},"totalFees":{"type":"string","description":"UnoPago's fees on them. `0` on a vendor's payout: the account pays the fee on the whole charge."},"totalSplits":{"type":"string","description":"The parts of those payments owed to vendors (`splits` on their checkout sessions), paid to each vendor in a payout of its own. `0` on a vendor's payout and on a payout with no split payment."},"netAmount":{"type":"string","description":"What was sent to the bank account: `totalAmount − totalFees − totalSplits`."},"vendor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"]}},"required":["id","externalId"]},{"type":"null"}],"description":"The vendor this payout pays, with your own id for it. `null` on your own payout. A vendor is not notified by UnoPago: these events are how you learn its payout was paid, failed or was canceled. They are sent to your account's own endpoints, not to the connected-accounts ones."},"paymentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paymentIds":{"type":"array","items":{"type":"string"},"description":"The payments this payout covers that UnoPago recorded, the same ids `payment_received` carries. Can be shorter than `paymentCount`. On a vendor's payout, the payments its parts came from. On `settlement_canceled`, the canceled payout's payments, paid in a later payout once UnoPago clears them."},"processingBank":{"type":"string"},"bankReference":{"type":["string","null"]},"bankAccount":{"anyOf":[{"type":"object","properties":{"bankCode":{"type":"string"},"accountNumberLast4":{"type":"string"}},"required":["bankCode","accountNumberLast4"]},{"type":"null"}]},"processedAt":{"type":["string","null"]}},"required":["id","status","currency","totalAmount","totalFees","totalSplits","netAmount","vendor","paymentCount","paymentIds","processingBank","bankReference","bankAccount","processedAt"]}},"required":["settlement"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"account_verified":{"post":{"tags":["Webhook events"],"summary":"Account Verified","description":"Triggered when UnoPago approves the account's verification. A platform receives it on its **Cuentas conectadas** endpoints for each connected account, with `account` set, so it does not need to poll `GET /v1/accounts/{accountId}/verification`.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"verification":{"type":"object","properties":{"accountId":{"type":"string","description":"The account that was reviewed: on a platform's **Cuentas conectadas** endpoints, the same connected account as `account`."},"status":{"type":"string","enum":["VERIFIED","REJECTED"]},"rejectionReason":{"description":"Why UnoPago rejected it, in Spanish, ready to show the account. `null` when it was verified.","type":["string","null"]},"reviewedAt":{"type":"string"}},"required":["accountId","status","rejectionReason","reviewedAt"]}},"required":["verification"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}},"account_verification_rejected":{"post":{"tags":["Webhook events"],"summary":"Account Verification Rejected","description":"Triggered when UnoPago rejects the account's verification, with `rejectionReason`. The account can submit a new document right away; each rejection sends its own event, with a different `id`. A platform receives it on its **Cuentas conectadas** endpoints for each connected account, with `account` set.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"eventType":{"type":"string"},"account":{"description":"The connected account the event happened in, on events a platform receives on its **Cuentas conectadas** endpoints. Absent on your own account's events.","type":"string"},"createdAt":{"type":"string"},"data":{"type":"object","properties":{"verification":{"type":"object","properties":{"accountId":{"type":"string","description":"The account that was reviewed: on a platform's **Cuentas conectadas** endpoints, the same connected account as `account`."},"status":{"type":"string","enum":["VERIFIED","REJECTED"]},"rejectionReason":{"description":"Why UnoPago rejected it, in Spanish, ready to show the account. `null` when it was verified.","type":["string","null"]},"reviewedAt":{"type":"string"}},"required":["accountId","status","rejectionReason","reviewedAt"]}},"required":["verification"]}},"required":["id","eventType","createdAt","data"]}}}},"responses":{"200":{"description":"Webhook received successfully"}}}}}}