Create Ingestion Activity

Processes uploaded files through transformation and/or ingestion flows based on template configuration.

Request Method

POST

Request URL

{{base_url}}/one-integration/api/v1/ingest

Request Headers

Parameter
Data Type
Field Validations
Description

x-clear-auth-token

String

NA

Mandatory. Authentication token.

Content-Type

String

NA

Mandatory. Must be application/json

x-integration-id

String

NA

Mandatory. Integration identifier

Request Path Params

There are no path parameters for this API.

Request Query Params

There are no query parameters for this API.

Request Body

Parameter
Data Type
Field Validations
Description

fileInfo

List

MinListLength:1

Mandatory. List of File Info objects.

templateType

String

MinLength:1

Mandatory. Template name of the input set.

If transformation is not required as defined during onboarding, then only one of the system template names are accepted:

SALES, PURCHASE, TDSV2_PR, GENERAL_LEDGER.

If transformation is required as defined during onboarding, then the template which was defined during the on-boarding process should be used.

metadata

Object

NA

Optional. Metadata Object.

File Info Object

Parameter
Data Type
Field Validations
Description

uploadUrl

String

MinLength:1

Mandatory. Presign Url is required (with or without signature)

filename

String

NA

Optional. Original filename along with file extension as provided by the user.

Default: Will be derived from uploadUrl

fileType

String

NA

Mandatory. Logical identifier used during transformation to distinguish files (e.g., "sales", "purchase", "order") as defined during the on-boarding process.

If transformation is not required as defined during onboarding, then still file type should be passed with any string value.

If transformation is required as defined during onboarding, then this field is used to identify the schema of the input file by transformation layer and its value will be decided during onboarding.

Metadata Object

Parameter
Data Type
Field Validations
Description

ingestionTemplate

Array

ENUM: PURCHASE, SALES, GENERAL_LEDGER,

TDSV2_PR

Optional. Output template names to be ingested after transformation.

Default: List of ingestion templates defined during Integration ID generation.

If transformation is not required as defined during onboarding, then this is not required as the template type itself will be used. Even if sent, this field will be ignored and ingestion will happen based on the template type.

If transformation is required as defined during onboarding, if multiple output templates were selected against a particular 'template Type', and if user wants to now ingest only a subset of those output template types, then the required output template types can be specified here. All other template types defined in onboarding will be ignored for this particular ingestion activity.

Response Status Codes

HTTP Status Code
Description

200

Request processed successfully and response returned.

400

The request is invalid or missing required parameters

403

User not authorized

500

Something went wrong on the server.

Response Schema

Parameter
Data Type
Field Callouts
Description

status

Integer

Always 200 on success.

HTTP status code of the response (e.g., 200 for success).

success

Boolean

Always true on success.

Indicates whether the request was successful (true or false).

message

String

Contains taskId in message.

Human-readable message describing the result.

result

Object/Null

Null on error

Contains the detailed result data.

metadata

Object/Null

Always Null for this API

Pagination metadata, not applicable for this endpoint.

error

Object/Null

Null on success

Error object containing code, message, and optional validationErrors array. Only populated when exceptions occur.

Result Object

Parameter
Data Type
Field Callouts
Description

taskId

String

String (24 chars)

Unique identifier for the asynchronous task created.

status

String

ENUM: CREATED, FAILED

Current status of the task.

By default, the first status on creation will be CREATED.

FAILED will be terminal states.

Error Object

Parameter
Data Type
Fields Callouts
Description

code

String

Always returned in case of any error

Contains the error code

message

String

Always returned in case of any error

Contains the error message

validationErrors

List

Always null

Always null

Sample Request and Response

Sample Success

Request cURL

Request Body

Response Body

Sample Failure

Request Body

Response Body

Multi-File Ingestion Example

API Validations

Currently there are no known validations.

API Constraints

There are no constraints at API level.

Last updated

Was this helpful?