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.

  1. 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.
    A sample file in this format is available for download
  1. 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.
    Copy
    Copied
    curl --location --request PUT '<uploadUrl>' \
    --header 'Content-Type: text/csv' \
    --data '@/C:/Users/sample-cost-accounts-import.csv'
  1. 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.
  1. 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.
upload file containing
cost account data in a specific format

success
error
Create Cost Account Import Job
Process Import Cost Account Job
Get Status of an Import Cost Account Job
Check Status
Cost Accounts generated
Reported in Status