@@ -13,8 +13,11 @@ type Finance struct {
13
13
}
14
14
15
15
type ReportOnSoldProductsParams struct {
16
- // Time period in the `YYYY-MM` format
17
- Date string `json:"date"`
16
+ // Month
17
+ Month int32 `json:"month"`
18
+
19
+ // Year
20
+ Year int32 `json:"year"`
18
21
}
19
22
20
23
type ReportOnSoldProductsResponse struct {
@@ -34,7 +37,7 @@ type ReportonSoldProductsResult struct {
34
37
35
38
type ReportOnSoldProductsResultHeader struct {
36
39
// Report ID
37
- Id string `json:"num "`
40
+ Id string `json:"number "`
38
41
39
42
// Report generation date
40
43
DocDate string `json:"doc_date"`
@@ -43,10 +46,10 @@ type ReportOnSoldProductsResultHeader struct {
43
46
ContractDate string `json:"contract_date"`
44
47
45
48
// Offer agreement number
46
- ContractNum string `json:"contract_num "`
49
+ ContractNum string `json:"contract_number "`
47
50
48
51
// Currency of your prices
49
- CurrencyCode string `json:"currency_code "`
52
+ CurrencySysName string `json:"currency_sys_name "`
50
53
51
54
// Amount to accrue
52
55
DocAmount float64 `json:"doc_amount"`
@@ -64,13 +67,13 @@ type ReportOnSoldProductsResultHeader struct {
64
67
PayerName string `json:"payer_name"`
65
68
66
69
// Recipient's TIN
67
- RecipientINN string `json:"rcv_inn "`
70
+ RecipientINN string `json:"receiver_inn "`
68
71
69
72
// Recipient's Tax Registration Reason Code (KPP)
70
- RecipientKPP string `json:"rcv_kpp "`
73
+ RecipientKPP string `json:"receiver_kpp "`
71
74
72
75
// Recipient's name
73
- RecipientName string `json:"rcv_name "`
76
+ RecipientName string `json:"receiver_name "`
74
77
75
78
// Period start in the report
76
79
StartDate string `json:"start_date"`
@@ -81,72 +84,68 @@ type ReportOnSoldProductsResultHeader struct {
81
84
82
85
type ReportOnSoldProductsResultRow struct {
83
86
// Row number
84
- RowNumber int32 `json:"row_number"`
87
+ RowNumber int32 `json:"rowNumber"`
88
+
89
+ // Product Information
90
+ Item ReturnOnSoldProduct `json:"item"`
91
+
92
+ // Commission including the quantity of products, discounts and extra charges.
93
+ // Ozon compensates it for the returned products
94
+ ReturnCommission ReturnCommission `json:"return_commission"`
85
95
86
- // Product ID
87
- ProductId int64 `json:"product_id "`
96
+ // Percentage of sales commission by category
97
+ CommissionRatio float64 `json:"commission_ratio "`
88
98
99
+ // Delivery fee
100
+ DeliveryCommission ReturnCommission `json:"delivery_commission"`
101
+
102
+ // Seller's discounted price
103
+ SellerPricePerInstance float64 `json:"seller_price_per_instance"`
104
+ }
105
+
106
+ type ReturnOnSoldProduct struct {
89
107
// Product name
90
- ProductName string `json:"product_name "`
108
+ ProductName string `json:"name "`
91
109
92
110
// Product barcode
93
111
Barcode string `json:"barcode"`
94
112
95
113
// Product identifier in the seller's system
96
114
OfferId string `json:"offer_id"`
97
115
98
- // Sales commission by category
99
- CommissionPercent float64 `json:"commission_percent"`
100
-
101
- // Seller's price with their discount
102
- Price float64 `json:"price"`
116
+ SKU int64 `json:"sku"`
117
+ }
103
118
104
- // Selling price: the price at which the customer purchased the product. For sold products
105
- PriceSale float64 `json:"price_sale"`
119
+ type ReturnCommission struct {
120
+ // Amount
121
+ Amount float64 `json:"amount"`
106
122
107
- // Sold for amount.
108
- //
109
- // Sold products cost considering the quantity and regional coefficients. Calculation is made by the sale_amount price
110
- SaleAmount float64 `json:"sale_amount"`
123
+ // Points for discounts
124
+ Bonus float64 `json:"bonus"`
111
125
112
126
// Commission for sold products, including discounts and extra charges
113
- SaleCommission float64 `json:"sale_commission "`
127
+ Commission float64 `json:"commission "`
114
128
115
- // Extra charge at the expense of Ozon.
116
- //
117
- // Amount that Ozon will compensate the seller if the Ozon discount is greater than or equal to the sales commission
118
- SaleDiscount float64 `json:"sale_discount"`
129
+ // Additional payment at the expense of Ozon
130
+ Compensation float64 `json:"compensation"`
119
131
120
- // Total accrual for the products sold.
121
- //
122
- // Amount after deduction of sales commission, application of discounts and extra charges
123
- SalePriceSeller float64 `json:"sale_price_seller"`
132
+ // Price per item
133
+ PricePerInstance float64 `json:"price_per_instance"`
124
134
125
- // Quantity of products sold at the price_sale price
126
- SaleQuantity int32 `json:"sale_qty "`
135
+ // Product quantity
136
+ Quantity int32 `json:"quantity "`
127
137
128
- // Price at which the customer purchased the product. For returned products
129
- ReturnSale float64 `json:"return_sale "`
138
+ // Ozon referral fee
139
+ StandardFee float64 `json:"standard_fee "`
130
140
131
- // Cost of returned products, taking into account the quantity and regional coefficients.
132
- // Calculation is carried out at the return_sale price
133
- ReturnAmount float64 `json:"return_amount"`
134
-
135
- // Commission including the quantity of products, discounts and extra charges.
136
- // Ozon compensates it for the returned products
137
- ReturnCommission float64 `json:"return_commission"`
138
-
139
- // Extra charge at the expense of Ozon.
140
- //
141
- // Amount of the discount at the expense of Ozon on returned products.
142
- // Ozon will compensate it to the seller if the Ozon discount is greater than or equal to the sales commission
143
- ReturnDiscount float64 `json:"return_discount"`
141
+ // Payouts on partner loyalty mechanics: green prices
142
+ BankCoinvestment float64 `json:"bank_coinvestment"`
144
143
145
- // Amount charged to the seller for returned products after deducing sales commissions, applying discounts and extra charges
146
- ReturnPriceSeller float64 `json:"return_price_seller "`
144
+ // Payouts on partner loyalty mechanics: stars
145
+ Stars float64 `json:"stars "`
147
146
148
- // Quantity of returned products
149
- ReturnQuantity int32 `json:"return_qty "`
147
+ // Total accrual
148
+ Total float64 `json:"total "`
150
149
}
151
150
152
151
// Returns information on products sold and returned within a month. Canceled or non-purchased products are not included.
0 commit comments