https://openapi.toponad.com/v1/report/upload
POST
fields | type | required | notes |
network_id | Int | Y | Topon network account id |
report_currency | String | Y | report curency, valid enums: USD, CNY |
area | String | N |
country short, If it is a ‘CSJ’ network, it's required, otherwise it can be ignored. nort: valid enums for ‘CSJ’ network: JP, CN |
file | String | Y |
The file date encoded by base64, the file size does not exceed 5M, the supported networs and corresponding file types are as follows: CSJ: xlsx file with columns 8, 10, 11, 12 Tencent: 15-column csv file Baidu: 12-column csv file, 12-column xlsx file Kuaishou: 12-column csv file Custom network: 6-column xlsx file |
file_type | Int | N |
file extension,note: 0: xlsx 1: csv |
No http body, HTTP status code 200 indicates successful upload, other status codes indicate failed upload.
request sample:
curl --location --request POST 'https://openapi.toponad.com/v1/report/upload' \
--header 'X-Up-Key: 877f8ae9c6e9ca82c0==5b5fff594c373axxx' \
--header 'X-Up-Signature: CE12B506DBCD868C2C6F09E08C139CBC' \
--header 'X-Up-Timestamp: 1626161553000' \
--header 'Content-Type: application/json' \
--data-raw '{
"file": "UEsDBBQACAgIAGx6EFcAAAAAAA",
"file_type": 0,
"network_id": 3609090882,
"report_currency": "USD"
}'