post https://developer.api.us.stg.walmart.com/v1/orders/:cancel
This request is a forward flow that stores the reason behind an order cancellation.
Response: Query/Header Param Missing
{ "code": "4015", "errorCodeDesc": "Invalid query/header params", "message": "Invalid/missing storeId in the request"
}
{ "code": "4015", "errorCodeDesc": "Invalid query/header params", "message": "Invalid/missing tenantId in the request"
}
Response: Invalid JSON Request Passed as Input
{ "errorCode": "4079", "errorCodeDesc": "Invalid JSON request", "message": "Unable to parse cancellation string into JSON"
}
Response: Mandatory Fields Missing
{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "cancel orderId is null or empty which is mandatory"
}
{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "cancel reason is null which is mandatory"
}
{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "order source is null or empty which is mandatory"
}