@@ -100,17 +100,18 @@ type GetFBSReturnsParams struct {
100
100
// - minimum — 1
101
101
Limit int64 `json:"limit"`
102
102
103
- // Number of elements that will be skipped in the response.
104
- // For example, if offset=10, the response will start with the 11th element found
105
- Offset int64 `json:"offset"`
103
+ // Return identifier that was loaded the last time.
104
+ // Return identifiers with the higher value than `last_id`
105
+ // will be returned in the response.
106
+ LastId int64 `json:"offset"`
106
107
}
107
108
108
109
type GetFBSReturnsFilter struct {
109
110
// Time of receiving the return from the customer
110
111
AcceptedFromCustomerMoment GetFBSReturnsFilterTimeRange `json:"accepted_from_customer_moment"`
111
112
112
113
// Last day of free storage
113
- LastFreeWaitingDay [] GetFBSReturnsFilterTimeRange `json:"last_free_waiting_dat"`
114
+ LastFreeWaitingDay GetFBSReturnsFilterTimeRange `json:"last_free_waiting_dat"`
114
115
115
116
// Order ID
116
117
OrderId int64 `json:"order_id"`
@@ -124,13 +125,8 @@ type GetFBSReturnsFilter struct {
124
125
// Product ID
125
126
ProductOfferId string `json:"product_offer_id"`
126
127
127
- // Return status:
128
- // - returned_to_seller — returned to seller,
129
- // - waiting_for_seller — waiting for seller,
130
- // - accepted_from_customer — accepted from customer,
131
- // - cancelled_with_compensation — cancelled with compensation,
132
- // - ready_for_shipment — ready for shipment
133
- Status string `json:"status"`
128
+ // Return status
129
+ Status GetFBSReturnsFilterStatus `json:"status"`
134
130
}
135
131
136
132
type GetFBSReturnsFilterTimeRange struct {
@@ -152,12 +148,10 @@ type GetFBSReturnsFilterTimeRange struct {
152
148
type GetFBSReturnsResponse struct {
153
149
core.CommonResponse
154
150
155
- Result GetFBSReturnsResult `json:"result"`
156
- }
157
-
158
- type GetFBSReturnsResult struct {
159
- // Elements counter in the response
160
- Count int64 `json:"count"`
151
+ // Return identifier that was loaded the last time.
152
+ // Return identifiers with the higher value than `last_id`
153
+ // will be returned in the response
154
+ LastId int64 `json:"last_id"`
161
155
162
156
// Returns information
163
157
Returns []GetFBSReturnResultReturn `json:"returns"`
@@ -176,7 +170,10 @@ type GetFBSReturnResultReturn struct {
176
170
// Commission percentage
177
171
CommissionPercent float64 `json:"commission_percent"`
178
172
179
- // Return identifier
173
+ // Product item identifier in the Ozon logistics system
174
+ ExemplarId int64 `json:"exemplar_id"`
175
+
176
+ // Return identifier in the Ozon accounting system
180
177
Id int64 `json:"id"`
181
178
182
179
// If the product is in transit — true
@@ -200,6 +197,8 @@ type GetFBSReturnResultReturn struct {
200
197
// Shipment number
201
198
PostingNumber string `json:"posting_number"`
202
199
200
+ PickingTag string `json:"picking_tag"`
201
+
203
202
// Current product price without a discount
204
203
Price float64 `json:"price"`
205
204
@@ -215,6 +214,12 @@ type GetFBSReturnResultReturn struct {
215
214
// Product quantity
216
215
Quantity int64 `json:"quantity"`
217
216
217
+ // Barcode on the return label. Use this parameter value to work with the return label
218
+ ReturnBarcode string `json:"return_barcode"`
219
+
220
+ // Package unit identifier in the Ozon logistics system
221
+ ReturnClearingId int64 `json:"return_clearing_id"`
222
+
218
223
// Product return date
219
224
ReturnDate string `json:"return_date"`
220
225
@@ -242,7 +247,7 @@ type GetFBSReturnResultReturn struct {
242
247
243
248
// Method for getting information on returned products that are sold from the seller's warehouse
244
249
func (c Returns ) GetFBSReturns (params * GetFBSReturnsParams ) (* GetFBSReturnsResponse , error ) {
245
- url := "/v2 /returns/company/fbs"
250
+ url := "/v3 /returns/company/fbs"
246
251
247
252
resp := & GetFBSReturnsResponse {}
248
253
0 commit comments