curl --request POST \
  --url https://api.rampartcorporation.com/developer/v1/spends/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-account-token: <x-account-token>'
{
  "success": true,
  "message": "File uploaded successfully",
  "fileName": "spends.csv",
  "fileSize": 1024,
  "partnerId": "partner-123",
  "accountId": "account-456"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>.

Headers

x-account-token
string
required

Account token for authentication

Body

multipart/form-data
file
file
required

Spend file to upload

Response

201 - application/json
File uploaded successfully
success
boolean
Example:

true

message
string
Example:

"File uploaded successfully"

fileName
string
Example:

"spends.csv"

fileSize
number
Example:

1024

partnerId
string
Example:

"partner-123"

accountId
string
Example:

"account-456"