Header:
字段名 | 说明 |
---|---|
X-ACCESS-TOKEN | login返回回来的token,除了登录api,其他都需要带 |
Response:
{
"code":"00",
"msg":"OK",
"data":{}
}
POST
https://{base_url}/payment/account/login
Request Example:
{
"user_id": 123,
"app_id": "123456",
"app_secret": "123456",
"email": "[email protected]",
"pwd": "123456"
}
Response Example:
{
"email": "[email protected]",
"name": "Fang",
"role": "user", // "admin" "machine" "user"
"token": "fa3cc6db-2a68-4dfa-a292-b8cf2f3bdb35"
}
POST
https://{base_url}/payment/account/logout
POST
https://{base_url}/payment/account/validate
Response Example:
{
"user_id": 123,
"email": "[email protected]",
"name": "Fang",
"role": "user"
}
POST
https://{base_url}/payment/account/create
Request Example:
{
"email": "[email protected]",
"name": "Fang",
"pwd": "123456",
"role": "user"
}
POST
https://{base_url}/payment/account/delete
Request Example:
{
"id":123
}
POST
https://{base_url}/payment/updateaccount
Request Example:
{
"id":123,
"account_num":"[email protected]",
"pwd":"123456",
"role": "admin", // "admin" "machine" "user" 只有管理员才可以更改这个字段
"name":"xxx",
"email":"xxx"
}
POST
https://{base_url}/payment/queryaccount
Request Example:
{
"filters": {
"email": "fang.qiang"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"active": true,
"agency_id": 4,
"created_at": "2020-07-31T23:19:37.304278+08:00",
"email": "[email protected]",
"id": 10,
"name": "Fang",
"role": "user",
"updated_at": "2020-07-31T23:19:37.304278+08:00"
}
],
"total": 1
}
POST
https://{base_url}/payment/agency/add
Request Example:
{
"name": "asdf",
"tel": "123",
"addr": "asdf",
"email": ""
}
POST
https://{base_url}/payment/agency/update
Request Example:
{
"addr": "wuxicun2",
"agency_id": 0,
"id": 7,
"name": "merc"
}
POST
https://{base_url}/payment/agency/query
Request Example:
{
"filters": {
"name": "mer"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"addr": "wuxicun2",
"email": "",
"id": 5,
"name": "merc",
"tel": "123456789"
},
{
"addr": "wuxicun2",
"email": "adjfasdf.com",
"id": 7,
"name": "merc",
"tel": "123456789"
}
],
"total": 2
}
POST
https://{base_url}/payment/agency_associate/add
Request Example:
{
"agency_id": 123,
"user_id": 456
}
POST
https://{base_url}/payment/agency_associate/delete
Request Example:
{
"id": 1
}
POST
https://{base_url}/payment/agency_associate/query
{
"agency_id": 5,
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"created_at": "2020-07-31T23:10:32.004435+08:00",
"email": "[email protected]",
"id": 4,
"name": "Fang",
"updated_at": "2020-07-31T23:10:32.004435+08:00"
}
],
"total": 1
}
POST
https://{base_url}/payment/agency_acquirer/add
Request Example:
{
"addition": "addtion",
"agency_id": 4,
"config_file_url": "https://asdfadf",
"name": "BOC"
}
POST
https://{base_url}/payment/agency_acquirer/update
Request Example:
{
"id": 123,
"addition": "addtion",
"config_file_url": "https://asdfadf",
"name": "BOC"
}
POST
https://{base_url}/payment/agency_acquirer/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/agency_acquirer/query
Request Example:
{
"agency_id": 4,
"filters": {
"name": "BOC"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"addition": "addtion",
"agency_id": 4,
"config_file_url": "https://asdfadf",
"created_at": "2020-08-01T17:12:15.654777+08:00",
"id": 1,
"name": "BOC",
"updated_at": "2020-08-01T17:12:15.654777+08:00"
},
{
"addition": "addtion",
"agency_id": 4,
"config_file_url": "https://asdfadf",
"created_at": "2020-08-06T17:11:44.228448+08:00",
"id": 4,
"name": "BOC",
"updated_at": "2020-08-06T17:11:44.228448+08:00"
}
],
"total": 2
}
POST
https://{base_url}/payment/agency_device/add
Request Example:
{
"agency_id": 4,
"device_id": 3,
"file_url": "" // device_id或者file_url存在一种,不可同时存在
}
POST
https://{base_url}/payment/agency_device/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/agency_device/query
Request Example:
{
"agency_id": 4,
"filters": {
"device_sn": "PAX-"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"agency_id": 4,
"alias": "",
"battery": 19,
"created_at": "2020-04-02T08:42:53.065968+08:00",
"device_csn": "456789",
"device_model": "17",
"device_sn": "PAX-A920-0821157228",
"id": 1,
"location_lat": "22.546992",
"location_lon": "113.94653",
"push_token": "18071adc0391497837f",
"reboot_day_in_month": 0,
"reboot_day_in_week": 0,
"reboot_mode": "1",
"reboot_time": "03:00:",
"updated_at": "2020-08-04T00:04:17.023+08:00"
},
{
"agency_id": 4,
"alias": "",
"battery": 96,
"created_at": "2020-04-06T02:28:02.58338+08:00",
"device_csn": "17010237",
"device_model": "17",
"device_sn": "PAX-A920-0821251436",
"id": 1505156075807081500,
"location_lat": "22.282085",
"location_lon": "114.162749",
"push_token": "160a3797c89bf7fa890",
"reboot_day_in_month": 0,
"reboot_day_in_week": 0,
"reboot_mode": "1",
"reboot_time": "03:00:",
"updated_at": "2020-08-03T16:43:54.384973+08:00"
},
{
"agency_id": 4,
"alias": "",
"battery": 94,
"created_at": "2020-04-06T02:30:27.038397+08:00",
"device_csn": "17010223",
"device_model": "17",
"device_sn": "PAX-A920-0820340310",
"id": 1505156075807081500,
"location_lat": "22.31403",
"location_lon": "114.166594",
"push_token": "100d855909dba529e70",
"reboot_day_in_month": 0,
"reboot_day_in_week": 0,
"reboot_mode": "1",
"reboot_time": "03:00:",
"updated_at": "2020-08-03T16:43:54.512664+08:00"
}
],
"total": 3
}
GET
https://{base_url}/payment/agency_acquirer/payment_methods
Response Example:
{
"data": [
"Swipe",
"Contact",
"Contactless"
],
"total": 3
}
GET
https://{base_url}/payment/agency_acquirer/entry_types
Response Example:
{
"data": [
"swipe","contact","contactless"
]
}
GET
https://{base_url}/payment/agency_acquirer/payment_types
Response Example:
{
"data": [
"sale","void","refund"
]
}
POST
https://{base_url}/payment/merchant/add
Request Example:
{
"addr": "wuxicun",
"agency_id": 7,
"name": "merchant 1",
"tel": "123456789",
"email": ""
}
POST
https://{base_url}/payment/merchant/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/merchant/update
Request Example:
{
"id": 123,
"name": "213",
"tel": "123",
"addr": ""
}
https://{base_url}/payment/merchant_in_agency/query
Request Example:
{
"agency_id": 4,
"filters": {
"name": "merchant"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"addr": "wuxicun",
"agency_id": 4,
"created_at": "2020-06-13T17:41:05.302358+08:00",
"id": 6,
"name": "merchant 1",
"tel": "123456789",
"updated_at": "2020-06-13T17:41:05.302358+08:00"
},
{
"addr": "wuxicun",
"agency_id": 4,
"created_at": "2020-08-02T16:03:29.6609+08:00",
"id": 8,
"name": "merchant 1",
"tel": "123456789",
"updated_at": "2020-08-02T16:03:29.6609+08:00"
}
],
"total": 2
}
https://{base_url}/payment/merchant/query
Request Example:
{
"filters": {
"name": "merchant"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"addr": "wuxicun",
"agency_id": 4,
"created_at": "2020-06-13T17:41:05.302358+08:00",
"id": 6,
"name": "merchant 1",
"tel": "123456789",
"updated_at": "2020-06-13T17:41:05.302358+08:00"
},
{
"addr": "wuxicun",
"agency_id": 4,
"created_at": "2020-08-02T16:03:29.6609+08:00",
"id": 8,
"name": "merchant 1",
"tel": "123456789",
"updated_at": "2020-08-02T16:03:29.6609+08:00"
}
],
"total": 2
}
POST
https://{base_url}/payment/merchant_associate/add
Request Example:
{
"merchant_id": 8,
"role": "admin",
"user_id": 10
}
POST
https://{base_url}/payment/merchant_associate/query
Request Example:
{
"limit": 100,
"merchant_id": 8,
"offset": 0
}
Response Example:
{
"data": [
{
"created_at": "2020-08-06T17:59:52.861507+08:00",
"email": "[email protected]",
"id": 9,
"name": "Fang",
"role": "admin",
"updated_at": "2020-08-06T17:59:52.861507+08:00"
}
],
"total": 1
}
POST
https://{base_url}/payment/merchant_associate/update
Request Example:
{
"id": 123,
"role": "admin" // "admin", "stuff"
}
POST
https://{base_url}/payment/merchant_associate/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/merchant_device/add
Request Example:
{
"merchant_id": 123,
"device_id": 123
}
POST
https://{base_url}/payment/merchant_device/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/merchant_device/update
Request Example:
{
"id": 123,
"device_id": 123
}
POST
https://{base_url}/payment/merchant_device/query
Request Example:
{
"limit": 100,
"merchant_id": 8,
"offset": 0
}
Response Example:
{
"data": [
{
"created_at": "2020-08-02T22:23:18.142583+08:00",
"device_id": 2,
"device_sn": "L8196RCA8W2136",
"id": 2,
"updated_at": "2020-08-02T22:23:18.142583+08:00"
},
{
"created_at": "2020-08-06T18:03:21.40396+08:00",
"device_id": 2,
"device_sn": "L8196RCA8W2136",
"id": 3,
"updated_at": "2020-08-06T18:03:21.40396+08:00"
}
],
"total": 2
}
POST
https://{base_url}/payment/merchant_device_payment/add
Request Example:
{
"acquirer_id": 1,
"addition": "http://test.com",
"entry_types": [
"Swipe",
"Contact",
"Contactless"
],
"merchant_device_id": 2,
"mid": "123456789012345",
"payment_methods": [
"Visa",
"MasterCard",
"Unionpay"
],
"payment_types": [
"Sale",
"Void",
"Refund"
],
"tid": "12345678"
}
POST
https://{base_url}/payment/merchant_device_payment/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/merchant_device_payment/update
Request Example:
{
"entry_types": [
"Swipe",
"Contact"
],
"id": 1,
"payment_methods": [],
"payment_types": [
"Sale",
"Refund"
]
}
POST
https://{base_url}/payment/merchant_device_payment/query
Request Example:
{
"device_id": 2,
"limit": 100,
"offset": 0
}
Response Example:
{
"total": 1,
"data": [
{
"acquirer_id": 1,
"addition": "http://test.com",
"created_at": "2020-08-02T23:29:32.367686+08:00",
"entry_types": [
"Swipe",
"Contact"
],
"id": 1,
"merchant_device_id": 2,
"mid": "123456789012345",
"payment_methods": [],
"payment_types": [
"Sale",
"Refund"
],
"tid": "12345678",
"updated_at": "2020-08-06T18:10:43.875195+08:00"
}
]
}
POST
https://{base_url}/payment/tms/device/query
Request Example:
{
"filters": {
"device_sn": "PAX-A920-0821157228"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"agency_id": 4,
"alias": "",
"battery": 19,
"created_at": "2020-04-02T08:42:53.065968+08:00",
"device_csn": "456789",
"device_model": "17",
"device_sn": "PAX-A920-0821157228",
"id": 1,
"location_lat": "22.546992",
"location_lon": "113.94653",
"push_token": "18071adc0391497837f",
"reboot_day_in_month": 0,
"reboot_day_in_week": 0,
"reboot_mode": "1",
"reboot_time": "03:00:",
"tags": [
{
"agency_id": 748,
"created_at": "0001-01-01T00:00:00Z",
"id": 25,
"name": "tag3",
"updated_at": "0001-01-01T00:00:00Z"
}
],
"updated_at": "2020-08-04T00:04:17.023+08:00"
}
],
"total": 1
}
POST
https://{base_url}/payment/tms/device/update
Request Example:
{
"alias": "",
"device_csn": "456789",
"id": 1,
"reboot_day_in_month": 0,
"reboot_day_in_week": 0,
"reboot_mode": "",
"reboot_time": "",
"tags": [
{
"id": 25
}
]
}
POST
https://{base_url}/payment/tms/deviceapp/query
Request Example:
{
"device_id": "123"
}
Response Example:
{
"data": [
{
"app": null,
"app_file": null,
"app_file_id": 0,
"app_id": 0,
"created_at": "2020-08-04T16:50:04.894883+08:00",
"external_id": 1,
"external_id_type": "merchantdevice",
"id": 1505221047908102100,
"name": "",
"package_id": "",
"status": "pending uninstall",
"updated_at": "2020-08-04T16:53:18.815934+08:00",
"version_code": 0,
"version_name": ""
}
],
"total": 1
}
POST
https://{base_url}/payment/tms/deviceapp/update
Request Example:
{
"app_file_id": 0,
"app_id": 0,
"external_id": 1, // device ID
"status": "warning installed" // pending install/ installed/ pending uninstall/ warning installed
}
POST
https://{base_url}/payment/tms/deviceapp/add
Request Example:
{
"app_file_id": 0,
"app_id": 0,
"external_id": 1, // device ID
"status": "warning installed" // pending install/ installed/ pending uninstall/ warning installed
}
POST
https://{base_url}/payment/tms/deviceapp/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/app/add
Request Example:
{
"description": "测试",
"name": "Fang Apk",
"package_id": "com.bindo.test"
}
POST
https://{base_url}/payment/tms/app/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/app/update
Request Example:
{
"description": "MDM",
"id": 1,
"name": "MDM",
"package_id": "com.bindo.mdm"
}
POST
https://{base_url}/payment/tms/app/query
Request Example:
{
"limit": 100,
"offset": 0,
"filters": {
"name": "MDM"
}
}
Response Example:
{
"data": [
{
"created_at": "2020-08-04T18:18:15.472834+08:00",
"description": "MDM",
"id": 1,
"name": "MDM",
"package_id": "com.bindo.mdm",
"updated_at": "2020-08-06T18:23:51.266732+08:00"
},
{
"created_at": "2020-08-06T18:23:11.807733+08:00",
"description": "测试",
"id": 1505150659148678100,
"name": "Fang Apk",
"package_id": "com.bindo.test",
"updated_at": "2020-08-06T18:23:11.807733+08:00"
}
],
"total": 2
}
POST
https://{base_url}/payment/tms/appfile/add
Request Example:
{
"app_id": 1,
"file_url": "https://mdmfiles.oss-cn-hongkong.aliyuncs.com/other%20file/Landi-MDM-V1.15_alpha_release_20200720%20%281%29.apk",
"update_description": "MDM First Time"
}
POST
https://{base_url}/payment/tms/appfile/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/appfile/update
Request Example:
{
"id": 1,
"update_description": "MDM First Time"
}
POST
https://{base_url}/payment/tms/appfile/query
Request Example:
{
"app_id": 1,
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"app_id": 1,
"created_at": "2020-08-04T21:02:19+08:00",
"decode_fail_msg": "",
"file_name": "Landi-MDM-V1.15_alpha_release_20200720%20%281%29.apk",
"file_url": "https://mdmfiles.oss-cn-hongkong.aliyuncs.com/other%20file/Landi-MDM-V1.15_alpha_release_20200720%20%281%29.apk",
"id": 1505154471485801700,
"status": "done",
"update_description": "MDM First Time",
"updated_at": "2020-08-04T21:03:43+08:00",
"version_code": 16,
"version_name": "MDM-V1.15"
},
{
"app_id": 1,
"created_at": "2020-08-06T18:27:00+08:00",
"decode_fail_msg": "",
"file_name": "Landi-MDM-V1.15_alpha_release_20200720%20%281%29.apk",
"file_url": "https://mdmfiles.oss-cn-hongkong.aliyuncs.com/other%20file/Landi-MDM-V1.15_alpha_release_20200720%20%281%29.apk",
"id": 1505154471485801700,
"status": "done",
"update_description": "MDM First Time",
"updated_at": "2020-08-06T18:27:03+08:00",
"version_code": 16,
"version_name": "MDM-V1.15"
}
],
"total": 2
}
POST
https://{base_url}/payment/tms/tag/add
Request Example:
{
"name": "Tag2",
"description":"123123"
}
POST
https://{base_url}/payment/tms/tag/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/tag/update
Request Example:
{
"id": 123,
"name": "",
"description":"123123"
}
POST
https://{base_url}/payment/tms/tag/query
Request Example:
{
"filters": {
"name": "tag"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"created_at": "0001-01-01T00:00:00Z",
"id": 23,
"name": "tag1",
"updated_at": "0001-01-01T00:00:00Z"
},
{
"created_at": "0001-01-01T00:00:00Z",
"id": 24,
"name": "tag2",
"updated_at": "0001-01-01T00:00:00Z"
},
{
"created_at": "0001-01-01T00:00:00Z",
"id": 25,
"name": "tag3",
"updated_at": "0001-01-01T00:00:00Z"
}
],
"total": 3
}
POST
https://{base_url}/payment/tms/model/add
Request Example:
{
"name": "Model1"
}
POST
https://{base_url}/payment/tms/model/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/model/update
Request Example:
{
"id": 123,
"name": ""
}
POST
https://{base_url}/payment/tms/model/query
Request Example:
{
"filters": {
"name": "tag"
},
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"created_at": "0001-01-01T00:00:00Z",
"id": 23,
"name": "tag1",
"updated_at": "0001-01-01T00:00:00Z"
},
{
"created_at": "0001-01-01T00:00:00Z",
"id": 24,
"name": "tag2",
"updated_at": "0001-01-01T00:00:00Z"
},
{
"created_at": "0001-01-01T00:00:00Z",
"id": 25,
"name": "tag3",
"updated_at": "0001-01-01T00:00:00Z"
}
],
"total": 3
}
POST
https://{base_url}/payment/tms/batchupdate/add
Request Example:
{
"description": "Test1",
"device_models": [
{
"Name": "A920",
"id": 1
},
{
"Name": "K11",
"id": 2
}
],
"tags": [
{
"id": 1,
"name": "Tag1"
},
{
"id": 2,
"name": "Tag2"
}
]
}
POST
https://{base_url}/payment/tms/batchupdata/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/batchupdata/query
Request Example:
{
"offset": 1234,
"limit": 123,
"filters": {
"name": ""
}
}
Response Example:
{
"data": [
{
"agency_id": 0,
"created_at": "2020-08-26T21:53:21.285089+08:00",
"description": "Test1",
"device_models": [
{
"Name": "A920",
"id": 1
},
{
"Name": "K11",
"id": 2
}
],
"id": 3,
"status": "",
"tags": [
{
"id": 1,
"name": "Tag1"
},
{
"id": 2,
"name": "Tag2"
}
],
"update_fail_msg": "",
"updated_at": "2020-08-26T21:53:21.285089+08:00"
}
],
"total": 1
}
POST
https://{base_url}/payment/tms/batchupdate/update
Request Example:
{
"description": "Test2",
"device_models": [
{
"id": 3
}
],
"id": 3,
"tags": [
{
"id": 1
}
]
}
POST
https://{base_url}/payment/tms/batchupdate/starthandle
Request Example:
{
"id": 3
}
POST
https://{base_url}/payment/tms/appinbatchupdate/query
Request Example:
{
"batch_id": 3,
"limit": 100,
"offset": 0
}
Response Example:
{
"data": [
{
"app": {
"agency_id": 0,
"created_at": "2020-08-24T20:53:05+08:00",
"description": "",
"id": 7,
"name": "Driver",
"package_id": "com.bindo.uniform.driver",
"updated_at": "2020-08-24T20:53:11+08:00"
},
"app_file": {
"app_id": 7,
"created_at": "2020-08-25T04:10:39+08:00",
"decode_fail_msg": "",
"file_name": "Landi-uniform-driver-app_v2.0.17_release-20-07-30-18-23.apk",
"file_url": "https://horizonpay.s3.ap-northeast-2.amazonaws.com/appfile/dbb9e1a7a2ba462f911d564d9661fc60/Landi-uniform-driver-app_v2.0.17_release-20-07-30-18-23.apk",
"id": 8,
"status": "done",
"update_description": "123",
"updated_at": "2020-08-25T04:14:31+08:00",
"version_code": 40,
"version_name": "2.0.17"
},
"app_file_id": 8,
"app_id": 7,
"created_at": "2020-08-26T22:44:24.516081+08:00",
"external_id": 3,
"external_id_type": "batch",
"id": 44,
"name": "Driver",
"package_id": "com.bindo.uniform.driver",
"status": "pending_install",
"updated_at": "2020-08-26T22:44:24.516081+08:00",
"version_code": 40,
"version_name": "2.0.17"
}
],
"total": 1
}
POST
https://{base_url}/payment/tms/appinbatchupdate/update
Request Example:
{
"app_file_id": 0,
"app_id": 0,
"external_id": 1, // device ID
"status": "warning installed" // pending install/ installed/ pending uninstall/ warning installed
}
POST
https://{base_url}/payment/tms/appinbatchupdate/add
Request Example:
{
"app_file_id": 0,
"app_id": 0,
"external_id": 1, // device ID
"status": "warning installed" // pending install/ installed/ pending uninstall/ warning installed
}
POST
https://{base_url}/payment/tms/appinbatchupdate/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/uploadfile/add
Request Example:
{
"device_sn": "PAX-A920-0821157228",
"file_name": "12314",
"file_url": "https://baidu.com/12314"
}
POST
https://{base_url}/payment/tms/uploadfile/delete
Request Example:
{
"id": 123
}
POST
https://{base_url}/payment/tms/uploadfile/query
Request Example:
{
"limit": 100,
"offset": 0,
"filters": {
"name": "MDM"
}
}
Response Example:
{
"data": [
{
"agency_id": 4,
"created_at": "2020-08-05T18:39:01.655595+08:00",
"device_sn": "PAX-A920-0821157228",
"file_name": "12314",
"file_url": "https://baidu.com/12314",
"id": 1,
"updated_at": "2020-08-05T18:39:01.655595+08:00"
},
{
"agency_id": 4,
"created_at": "2020-08-06T18:35:19.057972+08:00",
"device_sn": "PAX-A920-0821157228",
"file_name": "12314",
"file_url": "https://baidu.com/12314",
"id": 734760,
"updated_at": "2020-08-06T18:35:19.057972+08:00"
},
{
"agency_id": 4,
"created_at": "2020-08-06T18:47:34.834438+08:00",
"device_sn": "PAX-A920-0821157228",
"file_name": "12314",
"file_url": "https://baidu.com/12314",
"id": 734761,
"updated_at": "2020-08-06T18:47:34.834438+08:00"
}
],
"total": 3
}
POST
https://{base_url}/payment/file/add
Request Example:
{
"file_name": "test1",
"file_size": 1000000,
"md5": "1231241234",
"tag": "appfile" // app文件上传时,使用appfile; 批量添加设备到agency时:使用 devicefile; tms里面的文件上送时,使用uploadfile
}
Response Example:
{
"download_url": "https://horizonpay.ap-northeast-2/tms/ad2b123ddd054d9e82111ab9ae05aecf/test1",
// base64 encoded
"upload_url": "aHR0cHM6Ly9ob3Jpem9ucGF5LnMzLmFwLW5vcnRoZWFzdC0yLmFtYXpvbmF3cy5jb20vdG1zL2FkMmIxMjNkZGQwNTRkOWU4MjExMWFiOWFlMDVhZWNmL3Rlc3QxP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlSVEpDU1hGRFRPNElGQlElMkYyMDIwMDgwNiUyRmFwLW5vcnRoZWFzdC0yJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIwMDgwNlQxMDQyMzFaJlgtQW16LUV4cGlyZXM9OTAwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCUzQngtYW16LWFjbCZYLUFtei1TaWduYXR1cmU9ZDA0M2M1NDk4MzMwNGM3NDZjNTM5NjQ2MGE5NjcwMzU4MGZiOGFkYmM2OTM2ZDliZTM0YTQzYzRkMWQyYWJhMg=="
"expired_at": "2020-06-13T15:41:16.142489+08:00"
}