Shipment Scanning
POST /sellers/v3/returns/tasks/shipments
After the Start OTC has been validated, the shipment scanning page is shown for the FE in the FK Seller Hub. As shipments get scanned, the count of shipments in Handover in progress keeps increasing. The response contains the information if more shipments are there to be scanned (has_more Parameter), along with the encoded URL of the next shipment to be scanned (next_url Parameter). The encoded URL of the next shipment forms the URL for the request for next Subsequent Requests API call. In the Shipments Scanning API, after all the shipments have been scanned, the has_more Parameter will become false, and the next_url Parameter will become null. This information can then be used to understand that the scanning of the shipments has been completed and to move to the end OTP generation API after the count of the shipments has been verified and they have been handed over. The API supports pagination for retrieving historical data. It should be called every 30 seconds. Subsequent Requests: GET using next_url from previous response. The next_url is base64 encoded and contains all query parameters. Use the has_more flag to determine if more data might be available. Endpoint: POST /v3/returns/tasks/shipments (First request). Endpoint: GET /sellers/v3/returns/tasks/shipments/{encoded_url} (Subsequent requests). Base URL: https://api.flipkart.net/sellers.
- application/json
Request Body required
Request body for first shipment scanning request
- taskId string required
Task identifier
- feId string required
Field Executive identifier
- pageSize integer required
Number of shipments to return per page
- 200
- 400
- 401
- 500
- 502
- 503
- 504
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- has_more boolean
Indicates if more shipments are available
- next_url string
Base64 encoded URL for next page
scannedShipments object[]
List of scanned shipments
Array [trackingId stringShipment tracking ID
shipmentId stringShipment identifier
status stringPossible values: [
ACCEPTED,REJECTED]Shipment status
reason string nullableReason for rejection (null if accepted)
flyerDetails object
actualFlyerId stringActual flyer ID
capturedFlyerId stringCaptured flyer ID
status stringFlyer verification status
obdDetails object
eligible booleanOBD eligibility status
remark stringOBD remark
imageLinks string[]List of image URLs
scannedAt int64Timestamp when shipment was scanned (in milliseconds)
]
{
"has_more": true,
"next_url": "/sellers/v3/returns/tasks/shipments/ewogICAgInRhc2tJZCI6ICIxMjMiLAogICAgImZlSWQiOiAiMTIzODkwIiwgIAogICAgImV0YWciOiAiRk1QMTA0NSIsIAogICAgInBhZ2VTaXplIjogMjAgCiAgfQ==",
"scannedShipments": [
{
"trackingId": "FMP01",
"shipmentId": "SH123",
"status": "ACCEPTED",
"reason": "string",
"flyerDetails": {
"actualFlyerId": "TEST_FLYER",
"capturedFlyerId": "TEST_FLYER",
"status": "FlyerMatch"
},
"obdDetails": {
"eligible": true,
"remark": "NoIssues",
"imageLinks": [
"url1",
"url2"
]
},
"scannedAt": 1732000000
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}
Bad Gateway
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}
Service Unavailable
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}
Gateway Timeout
- application/json
- Schema
- Example (from schema)
Schema
- errorCode string
Possible values: [
TASK_CLOSED,TRIPSHEET_TASK_NOT_FOUND,INVALID_TASK_TYPE_ERROR,UNAUTHORIZED_ERROR,INTERNAL_SERVER_ERROR,BAD_GATEWAY_ERROR,SERVICE_UNAVAILABLE_ERROR,GATEWAY_TIMEOUT_ERROR]Error code
- message string
Error message
{
"errorCode": "TASK_CLOSED",
"message": "string"
}