菜单

【英文】Upload revenue report

Note: Before accessing the Api, Please understand the API signature rules first (refer to the Authentication check), which is the source of some http request headers in the Api request sample. Here are authentication demos for different development languages:  Authentication Demo

1. Upload network revenue report

1.1 Request URL

https://openapi.toponad.com/v1/report/upload

1.2 Request Method

POST

1.3 Request Params

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

1.4 Response data

No http body, HTTP status code 200 indicates successful upload, other status codes indicate failed upload.

1.5 Sample

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"
}'

最近修改: 2025-05-30Powered by