Create Sales Summary
POST/v1/journal_entries
Create a sales summary journal entry to record daily sales activity.
Notes:
- Partners can request a source system name with associated Logo just email [email protected]
- The date of the journal entry should be the date of the sales summary
- All monetary amounts should be floats representing dollar amounts (or equivalent currency) rather than cents. $1.00 is 1.00, not a value in cents.
- Any blank/null floats should be sent as 0.00. Empty string fields should be empty strings.
- All _credits should equal _debits.
- Optional memo and document number for reference
- Object type fields allow you to add drop down subcategories with labels. Each of which will be added as a new line for mapping.
- Not all fields are required. Only the top level fields are required.
Request
- application/json
Body
Default value: bookkeep_sales_summary
Must be set to 'bookkeep_sales_summary'
Unique identifier for the entity which you get from the URL when logged in to bookkeep or if you query for entity list. Usually an entity connected to one accounting platform in the case of QuickBooks or Xero.
Default value: Location Name
An immutable identifier for this sales channel from your system. Note that each location will create a separate mapping template. If this changes it will create a new mapping template. This will be used in the summary line to indicate the location name.
Default value: bookkeep
Identifier for the source system use 'bookkeep' for testing then request your own from [email protected]
The date of the journal entry should be the date of the sales summary using the format YYYY-MM-DD
Currency code (e.g. USD) 3 character currency code
Net sales calculated from the gross sales, discounts, and refunds etc.
Number of transactions included in this summary
Document number for the journal entry which will override the default document number in QuickBooks
Optional memo for the journal entry that will pass through to the accounting platform so details can be added here regarding the summary information.
gross_sales_credit object
Breakdown of gross sales by category
discounts_debit float
Total discounts amount
refunds_debit float
Total refunds amount
sales_tax_collected_credit float
Sales tax collected
sales_tax_withheld_debit float
Sales tax withheld
payments_debit object
Breakdown of payments by type
Cash payments amount
Gift card sales amount
Gift card tender amount
Gratuity collected
Total fees
ar_credits_posted_credit float
AR credits posted
ar_charges_posted_debit float
AR charges posted
misc_credits_credit float
Miscellaneous credits
misc_debits_debit float
Miscellaneous debits
Responses
- 200
- 401
- 422
- 500
- 4XX
Journal entry created successfully
- application/json
- Schema
- Example (from schema)
Schema
validation_summary object
{
"message": "Success! Debits (1000.00) equal credits (1000.00)",
"validation_summary": {
"debit": 1000,
"credit": 1000,
"difference": 0
}
}
Authentication or authorization error
- application/json
- Schema
- Example (from schema)
Schema
{
"errors": "Unauthorized"
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
Error message(s)
{
"errors": "Invalid date format"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
Error message from the server
{
"errors": "An unexpected error occurred"
}
Gateway error
- application/json
- Schema
- Example (from schema)
Schema
Error response from the gateway
validation_summary object
{
"errors": {},
"validation_summary": {
"debit": 0,
"credit": 0,
"difference": 0
}
}