Get categories
You can fetch the categories of the items part of Post-purchase RAP using the Get categories API.
Request to call Get categories API
Example: Request to fetch categories of ELIGIBLE and ENROLLED items in Post-purchase RAP
{ "itemStatus": [ "ENROLLED", "ELIGIBLE" ]
}
Example: Response of fetch categories – SUCCESS scenario
{ "statusCode": 200, "payload": { "itemStatus": ["ENROLLED", "ELIGIBLE"], "categories": ["HARDLINES", "HOME", "APPAREL"] }
}
Example: Response of fetch categories – FAILURE scenario
{ "statusCode": 500, "errors": [ { "code": "500.RR.501", "description": "Internal server error. Please retry after some time", "severity": "ERROR", "category": "Internal server error" } ]
}
Upon success, the API returns the unique set of categories for the items carrying the requested status.
API Throttling: Clients can make a maximum of 100 API hits per hour per seller.
Updated about 2 months ago