Download OpenAPI specification:
PHPR API USING API-PLATFORM
Creates a accounting_entries resource.
| id required | string accounting_entries identifier |
The new accounting_entries resource
| transaction | string <iri-reference> |
| createdAt | string <date-time> |
| account | string <iri-reference> // @todo No cascade persists because of the generator (issue #1 https://tools.phpcreation.com/confluence/display/PHPRDoc/Bundle_Accounting-Listener_2017) |
| amount required | string |
| comment | string or null |
| notes | string or null |
| deletedAt | string or null <date-time> |
| slug required | string DB Identifier |
| customProperties | any Can contain anything (array, objects, nested objects...). |
| customData | Array of strings or null |
| updatedAt | string <date-time> |
| disabledAt | string or null <date-time> |
object (Collection.jsonld) | |
| upload_filename | string |
| upload_subfolder | string |
| upload_file | string |
| upload_file_link | string |
| relativeAmount | number Get amount relative to account type. |
| dtBalance | number or null Get the sum in Dt for the transactions entries. |
| ctBalance | number or null Get the sum in Ct for the transactions entries. |
| timestamp | string <date-time> Get createdAt. |
| upload_Subfolder | string |
| upload_File | string |
| upload_File_Link | string |
{- "createdAt": "2019-08-24T14:15:22Z",
- "amount": "string",
- "comment": "string",
- "notes": "string",
- "deletedAt": "2019-08-24T14:15:22Z",
- "slug": "string",
- "customProperties": null,
- "customData": [
- "string"
], - "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "entityFiles": { },
- "upload_filename": "string",
- "upload_subfolder": "string",
- "upload_file": "string",
- "upload_file_link": "string",
- "relativeAmount": 0,
- "dtBalance": 0,
- "ctBalance": 0,
- "timestamp": "2019-08-24T14:15:22Z",
- "upload_Subfolder": "string",
- "upload_File": "string",
- "upload_File_Link": "string"
}{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "transaction": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "shortcode": "N",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "toString": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "createdAt": "2019-08-24T14:15:22Z",
- "account": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "parent": { },
- "shortcode": "AC",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "root": 0,
- "lvl": 0,
- "lft": 0,
- "rgt": 0,
- "toString": "string",
- "translationTitlePropertyName": "string",
- "translationDescriptionPropertyName": "string",
- "childrenListing": "string",
- "leaf": true,
- "leafApi": true,
- "levelApi": 0,
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}, - "amount": "string",
- "comment": "string",
- "shortcode": "Y",
- "deletedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "slug": "string",
- "customData": [
- "string"
], - "updatedAt": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z",
- "toString": "string",
- "absoluteAmount": 0,
- "relativeAmount": 0,
- "dtBalance": 0,
- "ctBalance": 0,
- "day": "2019-08-24T14:15:22Z",
- "customPropertiesListing": "string",
- "anonymousToken": "string",
- "uniqueId": "string",
- "taggingListing": "string",
- "enabled": true,
- "disabled": true
}