Skip to main content
POST
Create Contract Journal Entry

Body

Base serializer that injects the request user's customer on create and restricts related-object querysets to the same customer.

contract
integer
required
date
string<date>
required
performance_obligation
integer | null
invoice
integer | null
description
string
Maximum string length: 500
currency
string
Maximum string length: 3
source
enum<string>
  • INVOICE - Invoice
  • RECOGNITION - Recognition
  • RECLASS - Reclass
  • TERMINATION - Termination
  • CATCH_UP - Catch-up
  • MANUAL - Manual
Available options:
INVOICE,
RECOGNITION,
RECLASS,
TERMINATION,
CATCH_UP,
MANUAL
status
enum<string>
  • DRAFT - Draft
  • SCHEDULED - Scheduled
  • POSTED - Posted
Available options:
DRAFT,
SCHEDULED,
POSTED
tags
any
reversal_of
integer | null

Response

201 - application/json

Base serializer that injects the request user's customer on create and restricts related-object querysets to the same customer.

id
integer
required
read-only
contract
integer
required
contract_name
string
required
read-only
invoice_number
string
default:""
required
read-only
ordinal
integer
required
read-only
date
string<date>
required
lines
object[]
required
read-only
created_at
string<date-time>
required
read-only
last_modified_at
string<date-time>
required
read-only
performance_obligation
integer | null
invoice
integer | null
description
string
Maximum string length: 500
currency
string
Maximum string length: 3
source
enum<string>
  • INVOICE - Invoice
  • RECOGNITION - Recognition
  • RECLASS - Reclass
  • TERMINATION - Termination
  • CATCH_UP - Catch-up
  • MANUAL - Manual
Available options:
INVOICE,
RECOGNITION,
RECLASS,
TERMINATION,
CATCH_UP,
MANUAL
status
enum<string>
  • DRAFT - Draft
  • SCHEDULED - Scheduled
  • POSTED - Posted
Available options:
DRAFT,
SCHEDULED,
POSTED
tags
any
reversal_of
integer | null