"You can use Alliant API to Import Contract data to the Alliant system by sending requests with pages of Contract data to the Import Contract endpoints. When all of the Contracts in an Import Contract Batch have been sent, you use the Submit
parameter to submit the Import Batch Job for processing by the Import Batch Service. When you want to Import Contract data into the Alliant system, you must first create the Import Contract Batch using the HTTP POST api/Import/Contracts/Batch endpoint. You can send the first page of Contract data with the POST endpoint. When the Import Contract Batch includes only a single page of Contract data that is included in the POST request, you can create the Import Contract Batch and submit it for processing in the same request using the Submit
parameter. When the Import Contract Batch includes multiple pages of Contract data, you send each page of Contracts and submit the batch for processing using the HTTP PATCH api/Import/Contracts/Batch/{batchId} endpoint after the Import Contract Batch is created using the HTTP POST endpoint. You can read the data for an Import Contract Batch using the HTTP GET api/Import/Contracts/Batch/{batchId} endpoint. When you want to clear the Contracts from an Import Contract Batch, you can use the HTTP POST api/Import/Contracts/Batch/{batchId}/clear."
Create an Import Contract Batch
When you want to Import Contract data into the Alliant system, you must first issue this endpoint to create the Import Contract Batch.
The POST Request Body must include the Import File Name, the page size (the number of Contracts to be submitted per batch), and the total number of Contracts. When a batch of Contract data is included in the initial POST Request, the POST Request Body also includes a Description for the batch, a page number for the batch, and an array of Contract data. When the entire batch of Contracts is contained within the POST request, you can use the Submit
parameter to submit the job for processing in the same request. The request response includes the batchId value used to submit subsequent pages of Import Contract data for the Batch Job.
query Parameters
Request Body schema: application/jsonrequired
Include as much information as possible regarding the Import Contract Batch
OK
Bad Request
Forbidden
Not Found
Method Not Allowed
Conflict
Unsupported Media Type
Internal Server Error
- Payload
{- "importFileName": "APIContracts",
- "description": "Contract Import from Alliant API",
- "pageSize": 2,
- "totalItems": 2
}
- 201
- 400
- 403
- 404
- 405
- 409
- 415
- 500
{- "result": {
- "batchId": 1,
- "jobQueueGuid": "e29a07ac-4391-4846-9cf6-492fbba5b2dc"
}, - "errors": [ ],
- "warnings": [ ],
- "hasErrors": false,
- "hasWarnings": false
}
Submit Contracts for an Import Contract Batch
Once the Import Contract Batch is created using the HTTP POST endpoint, you submit each page of Contracts using this endpoint.
When you are submitting a page of Contract data, the PATCH Request Body must include the Page Number for the Contracts and an array of Contract data. When you are submitting the final page of Contracts, you can also include the Submit
parameter to submit the batch for processing.
When you are not submitting a page of Contract data but only submitting the batch for processing, no Request Body data is required and you must include the Submit
parameter to submit the batch for processing.
Note: You cannot submit pages of Contracts to an Import Contract Batch that has been cleared. When you clear an Import Contract Batch, the Contract data is removed from the Database. However, you must create a new Import Contract Batch to submit new pages of Contracts.
query Parameters
Request Body schema: application/jsonrequired
Include the Page Number and the Contract data for the page of Contracts.
Note: The Request Body is required only when submitting a page of Contract data. When submitting the Import job for processing without a page of Contract data, no Request Body is required.
OK
Bad Request
Forbidden
Not Found
Method Not Allowed
Conflict
Unsupported Media Type
Internal Server Error
- Payload
{- "pageNumber": 0,
- "items": [
- {
- "adminClassReference": {
- "id": "exampleID"
}, - "assignedPreparerUserReference": {
- "id": "exampleID"
}, - "comment": "New Contract comment",
- "contractEnteredScopeItems": [
- {
- "contact1Reference": {
- "id": "exampleID"
}, - "contact2Reference": {
- "id": "exampleID"
}, - "contact3Reference": {
- "id": "exampleID"
}, - "contact4Reference": {
- "id": "exampleID"
}, - "endActualPeriodReference": {
- "id": "exampleID"
}, - "endOtherPeriodReference": {
- "id": "exampleID"
}, - "endPostedPeriodReference": {
- "id": "exampleID"
}, - "excludeFlag": false,
- "fromDate": "2024-05-01",
- "largeSortOrderNumber": 1,
- "price1Range": "1.99:4.99",
- "price2Range": "1.99:4.99",
- "rate1Range": ".03:.25",
- "rate2Range": ".03:.25",
- "rate3Range": ".03:.25",
- "startActualPeriodReference": {
- "id": "exampleID"
}, - "startOtherPeriodReference": {
- "id": "exampleID"
}, - "startPostedPeriodReference": {
- "id": "exampleID"
}, - "text1": "example text",
- "text2": "example text",
- "toDate": "2025-02-29",
- "udKey1HierarchyTypeReference": {
- "id": "exampleID"
}, - "udKey1ListReference": {
- "description": "exampleDescription"
}, - "udKey1Reference": {
- "id": "exampleID"
}, - "udKey7ListReference": {
- "description": "exampleDescription"
}, - "udKey7Reference": {
- "id": "exampleID"
}
}, - {
- "largeSortOrderNumber": 2,
- "udKey1Reference": {
- "id": "exampleID"
}
}
], - "contractGroupReference": {
- "id": "exampleID"
}, - "contractLinks": [
- {
- "linkAddress": "example link address",
- "linkName": "example link name"
}
], - "contractParticipants": [
- {
- "participantContactReference": {
- "id": "exampleID"
}, - "paymentTypeReference": {
- "description": "example Description"
}, - "recipientGroupReference": {
- "description": "example Description"
}
}
], - "description": "New Contract",
- "dynamicScopeReference": {
- "registeredProcedureName": "example procedure name"
}, - "holdDeliveryFlag": false,
- "id": "New Contract",
- "interestRateAmount": 10,
- "interestRateIndexReference": {
- "id": "exampleID"
}, - "interestRateUsageTypeReference": {
- "id": "exampleID"
}, - "modelContractReference": {
- "id": "exampleID"
}, - "ownedBySecurityGroupReference": {
- "id": "exampleID"
}, - "priorityNumber": 1,
- "systemRunsCalcFlag": true,
- "startingStatementNumber": 1
}
]
}
- 200
- 400
- 403
- 404
- 405
- 409
- 415
- 500
{- "result": { },
- "errors": [ ],
- "warnings": [ ],
- "hasErrors": false,
- "hasWarnings": false
}
Read Import Contract Batch Data
Read the data for an Import Contract Batch.
query Parameters
OK
Bad Request
Forbidden
Not Found
Method Not Allowed
Conflict
Unsupported Media Type
Internal Server Error
- 200
- 400
- 403
- 404
- 405
- 409
- 415
- 500
{- "result": {
- "importFileName": "contracts",
- "importFileSID": 140,
- "description": "Contract Import from Alliant API",
- "fileDownloadNumber": null,
- "pageSize": 2,
- "totalItems": 2,
- "batchId": 22,
- "pageNumber": 0,
- "receivedItems": 2,
- "createdDateTime": "2022-27-25",
- "items": [
- {
- "adminClassReference": {
- "id": "exampleID"
}, - "assignedPreparerUserReference": {
- "id": "exampleID"
}, - "comment": "New Contract comment",
- "contractEnteredScopeItems": [
- {
- "contact1Reference": {
- "id": "exampleID"
}, - "contact2Reference": {
- "id": "exampleID"
}, - "contact3Reference": {
- "id": "exampleID"
}, - "contact4Reference": {
- "id": "exampleID"
}, - "endActualPeriodReference": {
- "id": "exampleID"
}, - "endOtherPeriodReference": {
- "id": "exampleID"
}, - "endPostedPeriodReference": {
- "id": "exampleID"
}, - "excludeFlag": false,
- "fromDate": "2024-05-01",
- "largeSortOrderNumber": 1,
- "price1Range": "1.99:4.99",
- "price2Range": "1.99:4.99",
- "rate1Range": ".03:.25",
- "rate2Range": ".03:.25",
- "rate3Range": ".03:.25",
- "startActualPeriodReference": {
- "id": "exampleID"
}, - "startOtherPeriodReference": {
- "id": "exampleID"
}, - "startPostedPeriodReference": {
- "id": "exampleID"
}, - "text1": "example text",
- "text2": "example text",
- "toDate": "2025-02-29",
- "udKey1HierarchyTypeReference": {
- "id": "exampleID"
}, - "udKey1ListReference": {
- "description": "exampleDescription"
}, - "udKey1Reference": {
- "id": "exampleID"
}, - "udKey7ListReference": {
- "description": "exampleDescription"
}, - "udKey7Reference": {
- "id": "exampleID"
}
}, - {
- "largeSortOrderNumber": 2,
- "udKey1Reference": {
- "id": "exampleID"
}
}
], - "contractGroupReference": {
- "id": "exampleID"
}, - "contractLinks": [
- {
- "linkAddress": "example link address",
- "linkName": "example link name"
}
], - "contractParticipants": [
- {
- "participantContactReference": {
- "id": "exampleID"
}, - "paymentTypeReference": {
- "description": "example Description"
}, - "recipientGroupReference": {
- "description": "example Description"
}
}
], - "description": "New Contract",
- "dynamicScopeReference": {
- "registeredProcedureName": "example procedure name"
}, - "holdDeliveryFlag": false,
- "id": "New Contract",
- "interestRateAmount": 10,
- "interestRateIndexReference": {
- "id": "exampleID"
}, - "interestRateUsageTypeReference": {
- "id": "exampleID"
}, - "modelContractReference": {
- "id": "exampleID"
}, - "ownedBySecurityGroupReference": {
- "id": "exampleID"
}, - "priorityNumber": 1,
- "systemRunsCalcFlag": true,
- "startingStatementNumber": 1,
- "ud_userDefinedStringField": "ud field Value",
- "ud_userDefinedNumberField": 0,
- "ud_userDefinedReference": {
- "id": "exampleID"
}, - "udLookup_LookupUDField": {
- "udfLookupItems": [
- {
- "amount1Range": "1:3",
- "amount2Range": "2:4",
- "contact1Reference": {
- "id": "exampleID"
}, - "contact2Reference": {
- "id": "exampleID"
}, - "contact3Reference": {
- "id": "exampleID"
}, - "contact4Reference": {
- "id": "exampleID"
}, - "endActualPeriodReference": {
- "id": "exampleID"
}, - "endOtherPeriodReference": {
- "id": "exampleID"
}, - "endPostedPeriodReference": {
- "id": "exampleID"
}, - "fromDate": "2019-08-24T14:15:22Z",
- "price1Range": "4.21:30.45",
- "price2Range": "5.24:532.21",
- "rate1Range": "2.3:5.2",
- "rate2Range": "8.6:45.2",
- "rate3Range": "10.3:87.0",
- "sortOrderNumber": 1,
- "startActualPeriodReference": {
- "id": "exampleID"
}, - "startOtherPeriodReference": {
- "id": "exampleID"
}, - "startPostedPeriodReference": {
- "id": "exampleID"
}, - "text1": "example text",
- "text2": "example test",
- "toDate": "2019-08-24T14:15:22Z",
- "ud_LookupUDField": "exampleUDFValue",
- "udKeyXHierarchyTypeReference": {
- "id": "exampleID"
}, - "udKeyXListReference": {
- "description": "exampleDescription"
}, - "udKeyXReference": {
- "id": "exampleID"
}, - "unit1Range": "5:200",
- "unit2Range": "5:100"
}
]
}
}
]
}, - "errors": [ ],
- "warnings": [ ],
- "hasErrors": false,
- "hasWarnings": false
}