Currently it is considered 404 Exception NOT_FOUND in retrievePayment ( GET /payments/{paymentId} ) endpoint, to cover the case when the paymentId does not exist.
Same scenario would happen in the case of the following endpoints:
confirmPayment endpoint ( POST /payments/{paymentId}/confirm )
cancelPayment endpoint ( POST /payments/{paymentId}/cancel )
Possible evolution
Add 404 exception NOT_FOUND to those two endpoints
Problem description
Currently it is considered 404 Exception NOT_FOUND in
retrievePayment
( GET /payments/{paymentId} ) endpoint, to cover the case when the paymentId does not exist.Same scenario would happen in the case of the following endpoints:
confirmPayment
endpoint ( POST /payments/{paymentId}/confirm )cancelPayment
endpoint ( POST /payments/{paymentId}/cancel )Possible evolution
Add 404 exception NOT_FOUND to those two endpoints
Additional context
N/A