Purchase Bookkeeping Exports

German: “Ausgaben / Buchhaltungsexporte”

Attributes

{
  "id": 1101,
  "from": "2015-01-01",
  "to": "2015-12-31",
  "purchase_ids": [
    2197,
    2189,
    9771,
    2206,
    8841,
    4292,
    2204,
    2195,
    9014,
    6123,
    2205,
    8839,
    2203,
    8837,
    14447,
    2190,
    12641,
    6421,
    8836,
    2192,
    2194,
    8838,
    6124,
    2198,
    2193,
    2202,
    2199,
    2207,
    4337,
    14325,
    8840,
    2191,
    2196,
    2200,
    6122,
    2201
  ],
  "comment": "2015",
  "user": {
    "id": 933589840,
    "firstname": "Tobias",
    "lastname": "Miesel"
  },
  "status": "pending",
  "created_at": "2021-03-23T05:38:53Z",
  "updated_at": "2021-03-23T05:38:53Z"
}

GET /purchases/bookkeeping_exports

Retrieve all purchase bookkeeping exports:

curl -X GET \
  'https://{domain}.mocoapp.com/api/v1/purchases/bookkeeping_exports' \
  -H 'Authorization: Token token=YOUR_API_KEY'

GET /purchases/bookkeeping_exports/{id}

Retrieve a single purchase bookkeeping export:

curl -X GET \
  'https://{domain}.mocoapp.com/api/v1/purchases/bookkeeping_exports/{id}' \
  -H 'Authorization: Token token=YOUR_API_KEY'

POST /purchases/bookkeeping_exports

Create an purchase bookkeeping export:

curl -X POST \
  'https://{domain}.mocoapp.com/api/v1/purchases/bookkeeping_exports' \
  -H 'Authorization: Token token=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
        "purchase_ids": [123, 234, 345],
      }'

Mandatory fields are marked with a star (*):

  • purchase_ids* – [123, 234, 345]
  • trigger_submission – true/false (e.g. submit also to DATEV; default is true)
  • archive_after_export – true/false (if purchases should be archived; default is false)
  • comment – “some additional info…”