Skip to main content
POST
/
data_exports
/
extra_data
Add a field to be included in data export
curl --request POST \
  --url https://api.sandbox.monite.com/v1/data_exports/extra_data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "field_name": "default_account_code",
  "field_value": "<string>",
  "object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "object_type": "counterpart"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "field_name": "default_account_code",
  "field_value": "<string>",
  "object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "object_type": "counterpart",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Body

application/json
field_name
enum<string>
required
Available options:
default_account_code,
default_tax_rate_code
field_value
string
required
object_id
string<uuid>
required
object_type
enum<string>
required
Available options:
counterpart

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
field_name
enum<string>
required
Available options:
default_account_code,
default_tax_rate_code
field_value
string
required
object_id
string<uuid>
required
object_type
enum<string>
required
Available options:
counterpart
created_by
string<uuid>