Charges

Charge object describes a single payment associated with an invoice. Charges can be either created manually, or done via a payment gateway.

Here is the structure of the charge object

Charge

PropertyTypeRequiredDescription
amountnumbertrueThe amount of the transaction.
datedatetrueThe exact date of the transaction.
statusenumtrueThe status of the transaction. One of the following success, pending, fail.
referencestringtrueHuman readable description of the transaction.
sourcestringfalseThe system the charge originated at. OfficeR&D by default
accountstringfalseThe name of the account where money are depositet at.
integrationobjectfalsePresent if charge is collected via payment gateway. Its property providerChargeId is set to the gateway charge ID
createdAtdatereadonlyThe date when the charge has been created at.
createdByidreadonlyThe user that created the charge.
modifiedAtdatereadonlyThe date when the charge has been modified for the last time. If no update is made this field will match the createdAt field.
modifiedByidreadonlyThe user that did the last modification to the charge. If no update is made this field will match the createdBy field.
paymentidreadonlyThe invoice or credit note the charge is associated with.
officeidreadonlyThe location of the invoice or credit note the charge is assigned to.