Trigger Max ITC Workflow
Max ITC API
This API will trigger MaxITC workflow based on the inputs provided by the user in the request payload. It is a bi-functional API with the option to ingest PR data or skip ingestion if the user wants to trigger MaxITC for the existing purchase data in Clear.
Request Method
POST
Request URL
Request Headers
x-cleartax-auth-token
String
NA
Mandatory.
User auth token.
Request Path Params
There are no path parameters for this API.
Request Query Params
There are no query parameters for this API.
Request Body
fileList
Array
NA
Conditional. List of File Objects. Each File Object contains information about the file which is to be ingested before running the reconciliation.
userInputArgs
Object
NA
Mandatory. User input arguments for the running reconciliation.
File List
If no data needs to be ingested, provide fileList
as an empty list. The API will run reconciliation against the data already available in Clear system.
s3FileUrl
String
NA
Mandatory. Pre-Signed URL used to upload the file to storage.
userFileName
String
NA
Mandatory.
Filename used when generating the Pre-signed URL.
User Input Arguments Object
gstins
List<String>
NA
Optional. List of GSTINs for which reconciliation will be triggered.
Default: Can be an empty list or NULL. We will take all GSTINs under the provided PAN in the pan field and will be considered for reconciliation and GSTR Pull.
pan
String
NA
Mandatory. PAN for which the reconciliation will be triggered.
pullReturnPeriodStart
String
Format: MMYYYY
Mandatory. Start Return Period for 2A Pull in MMYYYY format. Example : 042021 if the return period is April 2021.
pullReturnPeriodEnd
String
Format: MMYYYY
Mandatory. End Return Period for 2A Pull in MMYYYY format. Example : 042021 if the return period is April 2021.
reconReturnPeriodStart
String
Format: MMYYYY
Mandatory. Start Return Period for recon in MMYYYY format. Example : 042021 if the return period is April 2021.
reconReturnPeriodEnd
String
Format: MMYYYY
Mandatory. End Return Period for recon in MMYYYY format. Example : 042021 if the return period is April 2021
enableVoucherMerge
Boolean
NA
If enabled, vouchers pertaining to same document will get merged in the same document e.g. doc1 [v1, v2] If disabled, vouchers will get overridden in the document E.g. doc1 [v2]
templateId
String
NA
Mandatory. Template ID of the file uploaded. For a purchase document, the system template ID is "60e5613ff71f4a7aeca4336b".
reconType
Enum
Enum:
MAX_ITC_2A_PR, MAX_ITC_2B_PR, MAX_ITC_6A_PR, MAX_ITC_8A_PR
Mandatory. Type of Reconciliation to trigger.
reconResultFilter
Object
NA
Optional. Pass filtering criteria to filter response.
returnType
String
NA
MAX_ITC_2A_PR, MAX_ITC_2B_PR, MAX_ITC_8A_PR, MAX_ITC_6A_PR
gstins can be an empty list or NULL. We will take all GSTINs under the provided PAN in pan field for reconciliation and GSTN Pull in such case.
Return Period will be accepted only in MMYYYY format.
ReconResultFilter Object
matchStatus
Object
NA
Optional; Filter based on match status e.g. exact, missing_in_pr etc.
voucherNos
Object
NA
Optional; Filter based on voucher number
returnPeriod
Object
NA
Optional; Filter based on govt / pr return period
myGstin
Object
NA
Optional; Filter based on customer gstin
vendorCode
Object
NA
Optional; Filter based on voucher code
supplierPan
Object
NA
Optional; Filter based on supplier PAN
MatchStatus Object
values
Array
Valid MatchStatus
Mandatory
Values should be one or more of [exact, suggested, manual, mismatch, missing_in_pr, missing_in_govt, ignored_pr, ignored_govt, excluded_pr, excluded_govt]
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be “metadata”
VoucherNos Object
values
Array
NA
Mandatory
Should be an array of voucher numbers
E.g. [“voucher1”, “voucher2”]
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be one of “pr” or “govt”
ReturnPeriod Object
values
Array
Format: MMYYYY
Mandatory
Return period of the document
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be one of “pr” or “govt”
MyGSTIN Object
values
Array
Valid GSTIN number
Mandatory
Should be an array of GSTIN numbers
E.g. ["23AAAAAAAAAA123"]
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be one of “pr” or “govt”
VendorCode Object
values
Array
NA
Mandatory
Should be array of vendor codes
E.g. ["V1"]
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be one of “pr” or “govt”
SupplierPan Object
values
Array
Valid GSTIN number
Mandatory
Should be an array of supplier PAN numbers
E.g. - [“CXXPS1795P”]
negative
Boolean
NA
Optional : Negates the filtering criteria
source
String
Valid source string
Mandatory
Should be one of “pr” or “govt”
Example
Not in “Missing in PR”
Not in “Missing in PR” & “Not in supplier pan = [“abcd…”]” (“abcd..” is PAN for which recon is triggered)
Sample Request
Request Body:
Response Status Codes
201
Triggered ingestion successfully.
400
Bad request.
401
Unauthorized
500
Internal Server Error
Response Schema
workflowId
String
NA
Workflow Id to track the status of the triggered workflow.
status
String
Enum: WORKFLOW_IN_PROGRESS,
WORKFLOW_FAILED
Status of the workflow.
errors
List<JSON>
NA
Array of Error Objects. If there are no errors, then this field will be an empty list.
userInputArgs
Object
NA
User Input for the request.
Error Object
errorCode
String
Enum: AUTHORIZATION_FAILED,
WORKFLOW_ALREADY_IN_PROGRESS,LICENSE_EXPIRED, QUOTA_EXCEEDED, PERMISSION_DENIED, INTERNAL_ERROR, INVALID_TEMPLATE, GSTIN_TOKEN_INACTIVE, INVALID_REQUEST_PARAMETER
API Error Code
errorMessage
String
NA
Name of the field if it is a validation error.
errorValues
Array
NA
List of error values.
errorResolution
String
NA
Possible resolution.
User Input Arguments Object
templateId
String
NA
Template Id
pan
String
NA
PAN for which the reconciliation is triggered.
gstins
String
NA
List of GSTINs for which reconciliation is triggered. considered.
reconType
String
NA
Type of Reconciliation trigger.
pullReturnPeriodStart
String
Format: MMYYYY
Start Return Period for 2A Pull
pullReturnPeriodEnd
String
Format: MMYYYY
End Return Period for 2A Pull
reconReturnPeriodStart
String
Format: MMYYYY
Start Return Period for recon
reconReturnPeriodEnd
String
Format: MMYYYY
End Return Period for recon
returnType
String
NA
Type of return
Sample Response (Success)
HTTP Status Code - 201 Created
Sample Response (Error)
HTTP Status Code - 401 Unauthorized
API Validations
Currently there are no known validations.
API Constraints
We place the following four constraints as a ‘fair usage policy’ on our APIs:
ERP Trigger workflow cannot be triggered more than 24 times per day/PAN in Production and 48 times per day/PAN in SaaS sandbox environments from a single workspace
Customer is expected to use ingestion API for transferring historic data instead of triggering recon
Customer is expected to use ingestion API for transferring historic data instead of triggering recon
Last updated