Skip to content

Create Other Cost or Revenue Entry

Request

Creates a new one-time cost or revenue entry for the specified Project.

Security
ApiKey
Path
project_idstring, (uuid)required

The unique identifier for the Project.

Body
typestring(AdjustmentType)required

The type of entry: "cost" or "revenue".

Enum:"cost""revenue"
amountobject(Money)required

The monetary amount of the entry.

datestring, (date)required

The effective date of the entry in ISO format.

namestring or null

An optional descriptive name for the entry.

project_offering_idstring or null, (uuid)

The unique identifier of the Project Offering this entry is associated with, or null for project-level entries.

curl -i -X POST \
  'https://developer.getparallax.com/_mock/api-documentation/swagger/v1/projects/{project_id}/other-costs-and-revenue' \
  -H 'Content-Type: application/json-patch+json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "type": "cost",
    "amount": {
      "currency_code": "string",
      "amount": 0
    },
    "date": "2019-08-24",
    "name": "string",
    "project_offering_id": "7dfed78d-ddbe-4f81-b7b1-e4094f9ff440"
  }'

Responses

Created

Bodyapplication/json
idstring, (uuid)required

The unique identifier for the entry.

namestring or null

An optional descriptive name for the entry.

datestring, (date)required

The effective date of the entry in ISO format.

amountobject(Money)required

The monetary amount of the entry.

typestring(AdjustmentType)required

The type of entry: "cost" or "revenue".

Enum:"cost""revenue"
project_offering_idstring or null, (uuid)

The unique identifier of the Project Offering this entry is associated with, or null for project-level entries.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "date": "2019-08-24", "amount": { "currency_code": "string", "amount": 0 }, "type": "cost", "project_offering_id": "7dfed78d-ddbe-4f81-b7b1-e4094f9ff440" }