Skip to main content
POST
/
integrations
/
{integration_token}
/
costs.csv
Upload custom provider costs
curl --request POST \
  --url https://api.vantage.sh/v2/integrations/{integration_token}/costs.csv \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'csv=<string>' \
  --data auto_transform=false
{
  "token": "usr_csts_upld_68f53287682faaf8",
  "filename": "costs.csv20240827-15484-pfxe9o",
  "amount": "1000.0",
  "start_date": "2021-01-01",
  "end_date": "2021-02-01",
  "import_status": "processing",
  "created_by_token": "usr_9ad0e852b8c67db5",
  "created_at": "2024-08-27T22:44:29.220Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

integration_token
string
required

Body

csv
file
required

CSV file containing custom costs

auto_transform
boolean
default:false

Attempt to automatically transform the CSV file to match the FOCUS format.

Response

UserCostsUpload model

token
string
required

The token of the UserCostsUpload.

Example:

"usr_csts_upld_1234"

filename
string
required

The filename of the uploaded costs UserCostsUpload.

Example:

"usr_csts_upld_1234.parquet"

amount
string
required

The total amount of the costs in the UserCostsUpload.

Example:

"1234.56"

start_date
string
required

The start date of the costs in the UserCostsUpload.

Example:

"2021-01-01"

end_date
string
required

The end date of the costs in the UserCostsUpload.

Example:

"2021-01-31"

import_status
string
required

Import status of the UserCostsUpload.

Example:

"processing"

created_by_token
string
required

The token of the Creator of the UserCostsUpload.

Example:

"usr_1234"

created_at
string
required

When the UserCostsUpload was uploaded.

Example:

"2021-01-01T00:00:00Z"