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

Response

201 - application/json

File uploaded successfully

The response is of type object.