SBReceipt

SBReceipt

Cet objet représente un reçu dans votre entreprise. Utilisez-le pour gérer les reçus émis par Smartbills.

Property NameDescriptionTypeRequired
idUnique identifier of the receipt.longYes
merchantMerchant details, including name, contact, and address.SBMerchantYes
locationLocation details for the merchant, including name, address, and contact information.SBLocationNo
itemsList of purchased items, including product, price, and discounts.List<SBReceiptLineItem>Yes
totalItemsTotal cost of all items in the receipt.SBMoneyYes
totalPaymentsTotal payments made for the receipt.SBMoneyYes
totalDiscountsTotal discounts applied to the receipt.SBMoneyNo
totalDutiesTotal duties applied to the receipt.SBMoneyNo
totalShippingTotal shipping cost for the receipt.SBMoneyNo
totalTipTotal tips included in the receipt.SBMoneyNo
totalFeesTotal fees included in the receipt.SBMoneyNo
subTotalSubtotal amount before taxes and discounts.SBMoneyYes
totalTaxesTotal taxes applied to the receipt.SBMoneyYes
totalTotal amount of the receipt, including all fees, taxes, and discounts.SBMoneyYes
paymentsList of payments made for the receipt.List<SBReceiptPayment>Yes
taxesList of taxes applied to the receipt.List<SBReceiptTax>No
receiptIdUnique identifier of the receipt in string format.stringYes
typeType of receipt (e.g., "OFFICIAL").stringYes
attachmentsList of associated documents.List<SBAttachment>No
bankTransactionAssociated bank transaction details.SBBankTransactionNo
dateDate of the receipt creation.DateTimeYes
cancelledAtDate the receipt was cancelled.DateTime?No
dueDateDue date for the payment.DateTime?No
closedAtDate the receipt was closed.DateTime?No
createdAtDate the receipt was created.DateTimeYes
urlURL to the receipt or its details.stringNo