# Objects / Closures

# Closures

**Object**
## Denomination

| Fields | Type | Description |
| --- | --- | --- |
| denomination | *Float!* | The denomination of currency that was used |
| amount | *Float!* | The number of the denomination that was used |
| direction | [MovementDirectionEnum!](/documentation/Enums/Movement-Direction-Enum#MovementDirectionEnum) | The direction of the denomination movement |



**Object**
## RegisterClosureDiscount

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the register closure discount |
| invoiceId | *String!* | The ID of the invoice (normally numbers, but can contain any string) (typically called "invoice number") |
| user | [User](/documentation/Objects/User#User) | The user who performed the discount |
| customer | [Customer](/documentation/Objects/Customers#Customer) | The customer who received the discount |
| discount | *Float* | The amount the item was discounted by |
| discountReason | *String* | The reason for the discount |
| totalPrice | *Float* | The total price for the item that was discounted |
| createdAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The time the discount was performed |



**Object**
## RegisterClosureGiftCard

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the gift card for the register closure |
| user | [User](/documentation/Objects/User#User) | The user who sold the gift card |
| customer | [Customer](/documentation/Objects/Customers#Customer) | The customer who purchased to gift card |
| sale | [Sale](/documentation/Objects/Sales#Sale) | The sale that the gift card was sold on |
| code | *String* | The code of the gift card |
| amount | *Float* | The amount the gift card was sold for |
| createdAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The time the gift card was sold |



**Object**
## RegisterClosureLoyalty

| Fields | Type | Description |
| --- | --- | --- |
| accrued | *Float!* | The loyalty amount that was accrued during the register closure |
| redeemed | *Float!* | The amount of loyalty that was redeemed during the register closure |



**Object**
## RegisterClosureMovements

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the movement for the register closure |
| register | [Register](/documentation/Objects/Register#Register) | The register the the movement occurred on |
| user | [User](/documentation/Objects/User#User) | The user that performed the movement |
| paymentMethod | [PaymentMethod](/documentation/Objects/Payment-Method#PaymentMethod) | The payment method that was used to perform the movement |
| amount | *Float* | The amount of money that was moved either to or from the payment method |
| reason | *String* | The reason for moving the money |
| denominations | [[Denomination]](/documentation/Objects/Closures#Denomination) | A list of denominations that were used for the movement |
| timestamp | [DateTime](/documentation/Types/Date-Time#DateTime) | The time that the movement occurred |



**Object**
## RegisterClosureNote

| Fields | Type | Description |
| --- | --- | --- |
| id | *Int!* | The ID of the note for the register closure |
| note | *String* | The note |
| user | [User](/documentation/Objects/User#User) | The user that added the note |
| createdAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The time the note was added to the register closure |



**Object**
## RegisterClosurePayment

| Fields | Type | Description |
| --- | --- | --- |
| id | *Int!* | The ID of the payment for the register closure |
| paymentMethod | [PaymentMethod](/documentation/Objects/Payment-Method#PaymentMethod) | The payment method that was used |
| expected | *Float* | The expected amount for the payment method |
| received | *Float* | The amount actually received for the payment method |
| additional | [JSON](/documentation/Types/JSON#JSON) | Additional information relating to the payment method |



**Object**
## RegisterClosureTax

| Fields | Type | Description |
| --- | --- | --- |
| id | *Int!* | The ID of the tax for the register closure |
| taxRate | [TaxRate](/documentation/Objects/Tax-Rate#TaxRate) | The tax rate used |
| revenue | *Float* | The sale value for the tax rate |
| cost | *Float* | The total cost of the products for this tax rate (always inclusive of tax) |
| tax | *Float* | The amount of tax that was paid for the tax rate |
| surcharge | *Float!* | The surcharge that was charged to this tax rate, this figure is included in the revenue amount |



**Object**
## RegisterClosure

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the register closure |
| user | [User](/documentation/Objects/User#User) | The user who performed the register closure |
| register | [Register](/documentation/Objects/Register#Register) | The register that was closed |
| movement | *Float* | The total amount of movement that occurred |
| totalExpected | *Float* | The total amount of money expected to be received |
| totalReceived | *Float* | The total amount of money actually received |
| totalTransactions | *Int* | The total number of transactions that occurred during the time the register was open |
| totalSurcharge | *Float* | The total surcharge that was charged while the register was open |
| notes | [[RegisterClosureNote]](/documentation/Objects/Closures#RegisterClosureNote) | The notes on the register closure |
| sales | [[Sale]](/documentation/Objects/Sales#Sale) | The sales that occurred while the register was open |
| accountSales | [[Sale]](/documentation/Objects/Sales#Sale) | The account sales that occurred while the register was open |
| refunds | [[Sale]](/documentation/Objects/Sales#Sale) | The refunds that occurred while the register was open |
| tax | [[RegisterClosureTax]](/documentation/Objects/Closures#RegisterClosureTax) | The amount of tax per tax rate that was paid while the register was open |
| movements | [[RegisterClosureMovements]](/documentation/Objects/Closures#RegisterClosureMovements) | How much money was moved in and out of the register while it was open |
| payments | [[RegisterClosurePayment]](/documentation/Objects/Closures#RegisterClosurePayment) | The payment methods that were used while the register was open |
| accountPayments | [[CustomerPayment]](/documentation/Objects/Customers#CustomerPayment) | The account payments that were made while the register was open |
| soldGiftCards | [[RegisterClosureGiftCard]](/documentation/Objects/Closures#RegisterClosureGiftCard) | The gift cards that were sold while the register was open |
| redeemedGiftCards | [[RegisterClosureGiftCard]](/documentation/Objects/Closures#RegisterClosureGiftCard) | The gift cards that were redeemed while the register was open |
| discounts | [[RegisterClosureDiscount]](/documentation/Objects/Closures#RegisterClosureDiscount) | The discounts that occurred while the register was open |
| loyalty | [RegisterClosureLoyalty!](/documentation/Objects/Closures#RegisterClosureLoyalty) | The loyalty usage that occurred while the register was open |
| openedAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The time the register was opened |
| closedAt | [DateTime](/documentation/Types/Date-Time#DateTime) | The time the register was closed |