- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
清单数目
POST
/v3/finance/transaction/totals
FinanceAPI
请求参数
Header 参数
Client-Id
string
用户识别号。
示例值:
{{Client-Id}}
Api-Key
string
API-密钥。
示例值:
{{Api-Key}}
Body 参数application/json
date
object (object)
按日期过滤。
from
string <date-time>
可选
YYYY-MM-DDTHH:mm:ss.sssZ
.例子:
2019-11-25T10:43:06.51
.to
string <date-time>
可选
YYYY-MM-DDTHH:mm:ss.sssZ
.例子:
2019-11-25T10:43:06.51
.posting_number
string
发货号。
transaction_type
string
可选
all
— 所有,orders
— 订单,returns
— 退货和取消,services
— 服务费,compensation
— 补贴,transferDelivery
— 快递费用,other
— 其他。示例
{
"date": {
"from": "2021-11-01T00:00:00.000Z",
"to": "2021-11-02T00:00:00.000Z"
},
"posting_number": "",
"transaction_type": "all"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-seller.ozon.ru/v3/finance/transaction/totals' \
--header 'Client-Id: ' \
--header 'Api-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"date": {
"from": "2021-11-01T00:00:00.000Z",
"to": "2021-11-02T00:00:00.000Z"
},
"posting_number": "",
"transaction_type": "all"
}'
返回响应
🟢200清单数目
application/json
Body
result
object (object)
询问结果。
accruals_for_sale
number <double>
可选
compensation_amount
number <double>
补贴。
money_transfer
number <double>
可选
others_amount
number <double>
其他应计费用。
processing_and_delivery
number <double>
可选
refunds_and_cancellations
number <double>
可选
sale_commission
number <double>
可选
services_amount
number <double>
可选
示例
{
"result": {
"accruals_for_sale": 96647.58,
"sale_commission": -11456.65,
"processing_and_delivery": -24405.68,
"refunds_and_cancellations": -330,
"services_amount": -1307.57,
"compensation_amount": 0,
"money_transfer": 0,
"others_amount": 113.05
}
}
🟠400参数错误
🟠403拒绝访问
🟠404无响应
🟠409请求冲突
🔴500服务器内部错误
修改于 2023-11-03 06:04:11