POST
/
api
/
external
/
v2
/
exports
/
analytical_general_ledgers
Create an Analytical General Ledger export
curl --request POST \
  --url https://app.pennylane.com/api/external/v2/exports/analytical_general_ledgers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "period_start": "2023-08-30",
  "period_end": "2023-08-30",
  "mode": "in_line"
}'
{
  "id": 124,
  "status": "pending",
  "created_at": "2023-08-30T10:08:08.146343Z",
  "updated_at": "2023-08-30T10:08:08.146343Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
period_start
string<date>
required

Start date of the period to export

Example:

"2023-08-30"

period_end
string<date>
required

End date of the period to export

Example:

"2023-08-30"

mode
enum<string>
default:in_line

The mode of the export. The export can be in lines or in columns. If this parameter is not provided, it will use the default in_line mode.

Available options:
in_line,
in_column

Response

Returns the generated export status

id
integer
required

ID of the export

Example:

124

status
enum<string>
required

The state of the export

Available options:
pending,
ready,
error
created_at
string<date-time>
required
Example:

"2023-08-30T10:08:08.146343Z"

updated_at
string<date-time>
required
Example:

"2023-08-30T10:08:08.146343Z"