VRPlatformVRPlatform
Statements

/statements/{id}

Update Statements by Id

PUT
/statements/{id}
X-API-Key<token>

API key provided in dashboard

In: header

Path Parameters

id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

status*string
Value in"draft" | "inReview" | "published"
emailDelivery?

If set, an email will be sent to each owner when the statement is published

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api.vrplatform.app/statements/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "status": "draft"  }'
{
  "id": "string",
  "total": -9007199254740991,
  "financials": {
    "balanceStart": -9007199254740991,
    "netRevenue": -9007199254740991,
    "expenses": -9007199254740991,
    "reserve": -9007199254740991,
    "netIncome": -9007199254740991,
    "payouts": -9007199254740991,
    "balanceEnd": -9007199254740991
  },
  "summary": [
    {
      "name": "string",
      "text": "string",
      "value": 0,
      "separated": true
    }
  ],
  "payment": {
    "expected": -9007199254740991,
    "received": -9007199254740991,
    "status": "unpaid"
  },
  "uniqueRef": "string",
  "currency": "string",
  "startAt": "string",
  "endAt": "string",
  "issues": [
    {
      "code": "emptyJournalEntryAccountIds",
      "severity": "error",
      "context": {
        "affected": 0
      },
      "message": "string"
    }
  ],
  "payouts": [
    {
      "id": "string",
      "date": "string",
      "total": 0,
      "totalFormatted": "string"
    }
  ],
  "source": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "type": "string",
    "status": "active",
    "appId": "string",
    "appIcon": "string"
  },
  "listing": {
    "id": "string",
    "name": "string",
    "uniqueRef": "string"
  },
  "status": "draft",
  "ownership": {
    "id": "string",
    "startAt": "string",
    "endAt": "string",
    "reserve": -9007199254740991,
    "members": [
      {
        "id": "string",
        "ownerId": "string",
        "contactId": "string",
        "split": 0
      }
    ]
  },
  "layout": {
    "name": "string",
    "summaryType": "default",
    "isDefault": true,
    "showTeamEmail": true,
    "netRevenueSections": [
      {
        "id": "string",
        "name": "string",
        "locked": true,
        "visible": "all",
        "aggregate": true,
        "columns": [
          {
            "id": "string",
            "name": "string",
            "locked": true,
            "visible": "all",
            "type": "field",
            "value": "string"
          }
        ]
      }
    ],
    "otherSections": [
      {
        "id": "string",
        "name": "string",
        "locked": true,
        "visible": "all",
        "columns": [
          {
            "id": "string",
            "name": "string",
            "locked": true,
            "visible": "all",
            "type": "field",
            "value": "string"
          }
        ]
      }
    ],
    "id": "string",
    "version": -9007199254740991,
    "activeListings": [
      {
        "id": "string",
        "name": "string"
      }
    ],
    "linkedAccounts": [
      {
        "id": "string",
        "name": "string",
        "uniqueRef": "string",
        "status": "active"
      }
    ],
    "createdAt": "string",
    "systemSections": [
      {
        "id": "string",
        "name": "string",
        "locked": true,
        "visible": "all",
        "columns": [
          {
            "id": "string",
            "name": "string",
            "locked": true,
            "visible": "all",
            "type": "field",
            "value": "string"
          }
        ]
      }
    ]
  },
  "rows": [
    {
      "id": "string",
      "total": -9007199254740991,
      "section": "string",
      "issues": [
        {
          "code": "previousPeriodJournalEntries",
          "severity": "warning",
          "context": {
            "affected": 0
          },
          "message": "string"
        }
      ],
      "columns": [
        {
          "name": "string",
          "text": "string",
          "type": "string",
          "value": 0,
          "props": {
            "property1": null,
            "property2": null
          }
        }
      ],
      "type": "transaction",
      "source": {
        "id": "string",
        "type": "deposit",
        "description": "string",
        "lines": [
          {
            "id": "string",
            "description": "string"
          }
        ],
        "recurringFee": {
          "id": "string"
        }
      }
    }
  ],
  "attachments": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
      "createdAt": "string",
      "filename": "string",
      "extension": "string",
      "contentType": "string",
      "byteSize": -9007199254740991,
      "isOwnerAccessible": true
    }
  ],
  "syncId": "24d9ea7f-fdab-4f53-95fd-4deda2362964"
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}