Get Customer Volume

This API is used to get customer's one day volume data sample from edge.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v1.1/report/customers/{customerId}/volume
  • Request Method
POST
  • Request Header

Refer to HTTP Request Headers

  • Request Body

Request Body Data Format: JSON

Field Required Type Description
startTime Mandatory string Start time. Format yyyy-MM-ddTHH:mm:ssZ UTC time.
endTime Mandatory string End time. Format yyyy-MM-ddTHH:mm:ssZ UTC time. Interval between start time and end time cannot be longer than 90 days.
fillFixedTime Optional boolean Boolean value if need to fill in zero value for empty data. Values: true or false. Default value: false.
  • Request Body Example
{
    "startTime": "2018-03-29T17:35:00Z",
    "endTime": "2018-03-29T17:45:00Z",
    "fillFixedTime": "false"
}


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
Field Type Description
timestamp string Format yyyy-MM-ddTHH:mm:ssZ UTC time. E.g. 2018-09-28T00:00:00Z will return data from 2018-09-28T00:00:00Z to 2018-09-28T23:59:59Z.
value long Volume data. Format will be like 32342331.
  • Response Body Example
[
    {
        "timestamp": "2018-09-28T00:00:00Z",
        "value": 32342331
    },
    {
        "timestamp": "2018-09-29T00:00:00Z",
        "value": 32342331
    }
]
           Updated 2021-10-26 03:05:56

results matching ""

    No results matching ""