POST
/
billing
/
v1
/
org
/
files
/
report
Generate a report
curl --request POST \
  --url https://api.gcore.com/billing/v1/org/files/report \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "parameters": {
    "date_from": "2024-01-01",
    "date_to": "2024-02-01"
  },
  "template_code": "ResellerExpenses"
}'
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": 123,
  "client_id": 123,
  "task_type": "Report",
  "status": "Pending",
  "parameters": {
    "date_from": "2024-01-01",
    "date_to": "2024-02-01"
  },
  "processing_notes": "<any>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

Response

201 - application/json

The response is of type object.