Retrieve journal records

Request

Retrieves a list of journal records.

Security
SecretApiKey or JWT
Query
limitinteger, [ 0 .. 1000 ]

Limits the number of collection items to be returned.

offsetinteger, [ 0 .. 1000 ]

Specifies the starting point within the collection of items to be returned.

filterstring

Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.

For more information, see Search filters.

sortArray of strings

Sorts and orders the collection of items. To sort in descending order, prefix with -. Multiple fields can be sorted by separating each with ,.

expandstring

Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.

For more information, see Embedded resources.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/journal-records?limit=1000&offset=1000&filter=string&sort=string&expand=string' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

List of journal records retrieved.

Headers
Pagination-Totalinteger

Total number of items.

Example:332
Pagination-Limitinteger

Maximum number of items per page.

Example:100
Pagination-Offsetinteger

Specifies the starting point within the collection of resource results. For example, a request with limit=20 retrieves and displays the first 20 results on a page. A following request with limit=20 and offset=20, retrieves the next page of 20 results.

Example:2
Bodyapplication/json
Array [
idstring, <= 50 charactersread-only

Unique resource ID.

Example:"jrn_rec_0YVCXV2HE5DBT89QV7RXSJEZQ4"
journalEntryIdstring, <= 50 charactersrequired

ID of the journal entry.

Example:"jrn_ent_01JXJ8EF9WVR0W187QZ6WF5703"
customerIdstring, <= 50 charactersread-only

ID of the customer.

Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
invoiceIdstring, <= 50 charactersread-only

ID of the invoice.

Example:"in_0YVF9605RKC62BP14NE2R7V2XT"
invoiceItemIdstring, <= 50 charactersrequired

ID of the invoice item.

Example:"ii_0YVFDEQS2KCFTBN9HXWJFY55GV"
typestringread-only
Enum:"automated""manual"
estimatedAmountnumber or null, (double)

Amount of revenue estimated to be recognized at the schedule date. This value is ignored when updating a journal record with a type of automated.

recognizedAmountnumber or null, (double)

Amount of revenue recognized at the journal period end.

debitAccountIdstring or null, <= 50 charactersrequired

ID of the debit journal account.

Example:"jrn_acc_01JXJ8S97PTMYX8W01SQ72FSWC"
creditAccountIdstring or null, <= 50 charactersrequired

ID of the credit journal account.

Example:"jrn_acc_01JXJ8RW7AWMVAH7DP3VXYQC1W"
createdTimestring, (date-time)(CreatedTime)read-only

Date and time when the resource is created. This value is set automatically when the resource is created.

updatedTimestring, (date-time)(UpdatedTime)read-only

Date and time when the resource is updated. This value is set automatically when the resource is updated.

_embeddedobjectread-only

Embedded objects that are requested by the expand query parameter.

]
Response
[ { "id": "jrn_rec_0YVCXV2HE5DBT89QV7RXSJEZQ4", "journalEntryId": "jrn_ent_01JXJ8EF9WVR0W187QZ6WF5703", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "invoiceItemId": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV", "type": "automated", "estimatedAmount": 0, "recognizedAmount": 0, "debitAccountId": "jrn_acc_01JXJ8S97PTMYX8W01SQ72FSWC", "creditAccountId": "jrn_acc_01JXJ8RW7AWMVAH7DP3VXYQC1W", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_embedded": {}, "_links": [] } ]