Import Cost Account Overview
Import Cost Account APIs provides the capability to customers so that they can add multiple cost accounts in batch. This feature makes the customer process efficient by enabling them to create cost accounts by adding relevant details in csv file format and upload.
- Create Cost Account Import Job: This API provides user a unique jobID and url which can be used to upload cost accounts by adding details in csv format. Sample Cost Account csv template is provided below. Please unzip and use the csv file to add cost account details.
- Upload csv file to the uploadUrl generated from previous step response: Below curl to be used for uploading the cost account csv file. Upon successful 200 response code will be returned.
curl --location --request PUT '<uploadUrl>' \ --header 'Content-Type: text/csv' \ --data '@/C:/Users/sample-cost-accounts-import.csv'
- Process Cost Account job: After importing the cost accounts, the user initiates the processing of the job. This operation triggers the system to generate cost accounts.
- Get Status of Cost Account job: The user can check the status of the batch job after processing. This operation retrieves the current status of the batch job, indicating whether the cost accounts have been generated successfully, any errors encountered during processing. It also returns a url containig csv file with error details.