Administer REST API

These are the IGFC API specifications for the documents published through the REST API service.

To determine the IGFC base URL, see Identifying the IGFC base URL for REST API.

DSV Rest sending

URL: https://<BaseURL>/api/service/dsv/input

Method: POST

These are the specifications for requests:

Request Identifier Type Description
Query Parameter tenantId String GFC tenant ID
lid String Sending the application’s logical ID
Body inputFile MultipartFile File attachment for CSV or EBCIDIC

These are the specifications for response:

Response Status Code Content Type Description
Success 200 JSON Message, “Document/s successfully sent to GFC.”
Error 400 JSON

The message depends on the error category.

Invalid request.

Total file size of the request has exceeded 1 MB.

500 JSON Message, “An error occurred, please contact your system administrator.”

Send Bod REST API service

URL: https://<BaseURL>/GFC/api/service/bod/send

Method: POST

These are the specifications for request messages:

Request Identifier Type Description
Parameter tenantId String GFC tenant ID
Body bods MultipartFile BOD xml file/s. Total size not more than 1MB.

These are the specifications for response messages:

Response Status Code Content Type Description
Success 200 JSON Message, “BODs successfully sent to GFC.”
Error 400 JSON The message depends on the error category.

Invalid request.

No attached file with key bods.

Total file size of the request has exceeded 1 MB.

500 JSON Message, “An error occurred, please contact your system administrator.”

Single Retrieve BOD REST API service

URL: https://<BaseURL>/GFC/api/service/bod/retrieve

Method: GET

These are the specifications for request messages:

Request Identifier Type Description
Parameter lid String logical ID
tenantId String GFC tenant ID
integrationName String intergration name

These are the specifications for response messages:

Response Status Code Content Type Description
Success 200 Text XML XML BOD
Error 400 JSON The message depends on the error category.

No record found.

Invalid request.

500 JSON Message, “An error occurred, please contact your system administrator.”

Bulk Retrieve BOD REST API service

URL: https://<BaseURL>/GFC/api/service/bod/bulkretrieve

Method: GET

These are the specifications for request messages:

Request Identifier Type Description
Parameter lid String logical ID
tenantId String GFC tenant ID
integrationName String intergration name

These are the specifications for response messages:

Response Status Code Content Type Description
Success 200 Text XML List of String of BOD XML
Error 400 JSON The message depends on the error category.

No record found.

Invalid request.

500 JSON Message, “An error occurred, please contact your system administrator.”

Synchronous REST API service – rule specific

URL: https://<BaseURL>/GFC/api/service/bod/generateOutput

Method: POST

These are the specifications for request messages:

Request Identifier Type Description
Query Parameter ruleName String Rule Name
tenantId String GFC tenant ID
scenarioName String Scenario Name
integrationName String integration name
Header Parameter TransactionId String Transaction Id
Body bods MultipartFile Bod xml/s
Note: For Document Reference BODs it should be added on the same request with same identifier(bods)

These are the specifications for response messages:

Response Status Code Content Type Description
Success 200 JSON List of String of BOD XML
Error 400 JSON The message depends on the error category.

Invalid request.

No attached file with key bods.

Transaction ID already exists.

Invalid file format.

Request files must only contain XML documents.

500 JSON Message, “An error occurred, please contact your system administrator.”
Note: REST API authentication details include these values:
  • Authentication type = OAuth 2.0
  • Access Token = paste the generated token from the Access Token API call

Access Token API

URL: https://<base_url>/GFC/api/service/auth/access_token

Method: POST

Body Value
secret Secret key from the IGFC Web Service Security settings
consumer Access key from the IGFC Web Service Security settings
tenantId IGFC tenant ID

The Consumer key and Secret key must match the corresponding keys in the Web Service Security settings.

To resolve API request errors, see Troubleshooting REST API request errors.