Create a journal record

Request

Creates a journal record.

Security
SecretApiKey or JWT
Bodyapplication/jsonrequired

Journal record resource.

journalEntryIdstring, <= 50 charactersrequired

ID of the journal entry.

Example:"jrn_ent_01JXJ8EF9WVR0W187QZ6WF5703"
invoiceItemIdstring, <= 50 charactersrequired

ID of the invoice item.

Example:"ii_0YVFDEQS2KCFTBN9HXWJFY55GV"
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"
curl -i -X POST \
  https://www.rebilly.com/_mock/catalog/all/journal-records \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "journalEntryId": "jrn_ent_01JXJ8EF9WVR0W187QZ6WF5703",
    "invoiceItemId": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV",
    "estimatedAmount": 0,
    "recognizedAmount": 0,
    "debitAccountId": "jrn_acc_01JXJ8S97PTMYX8W01SQ72FSWC",
    "creditAccountId": "jrn_acc_01JXJ8RW7AWMVAH7DP3VXYQC1W"
  }'

Responses

Journal record created.

Headers
Locationstring, (uri)

Location of the related resource.

Example:"https://api.rebilly.com/example"
X-RateLimit-Limitinteger

Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.

Example:3600
X-RateLimit-Remaininginteger

Remaining number of rate limit tokens for this request within the rate limit period. For example, in the sandbox environment, rate limits for non-GET endpoints are set at 3000 requests per 10 minutes.

Example:3600
Bodyapplication/json
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": { "customer": {}, "invoice": {}, "invoiceItem": {}, "debitAccount": {}, "creditAccount": {}, "journalEntry": {} }, "_links": [ {} ] }