POST
/
api
/
external
/
v2
/
exports
/
fecs
Create a FEC export
curl --request POST \
  --url https://app.pennylane.com/api/external/v2/exports/fecs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "period_start": "2023-08-30",
  "period_end": "2023-08-30"
}'
{
  "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"

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"