post
https://enbduat-acquiring-apigw.creditpluspinelabs.com/checkout/apis/v2/transactions/capture
This API is used to capture the authorized transaction at gateway/processor. It supports partial captures for amount less than or equal to actual amount of original AUTH transaction. Capture of the transaction is allowed only when the transaction is authorized at gateway/processor.
HTTP Status and Response Status Matrix
| HTTP Status | Response Status | Response Message |
|---|---|---|
| 200 | CAPTURED / CAPTURE_PENDING | Success |
| 400 | VALIDATION_ERROR | When validation fails for request body, field specific validation errors will be returned. |
| 400 | REJECTED | Transaction UTR provided is not found |
| 400 | REJECTED | Capture transaction only allowed if transaction type is AUTH |
| 400 | REJECTED | Transaction denied as Capture amount should not exceed Auth amount |
| 400 | REJECTED | Either transaction is already captured or not allowed |
| 500 | ERROR_FROM_PG | Error in processing gateway response |
| 500 | INTERNAL_PROCESSING_ERROR | When there is an error/exception at Checkout which is not handled gracefully or un-recoverable. Specific error messages or generic error message will be returned basis on the scenario. |
| 502,503 | ERROR_CONNECTING_PG | Gateway connectivity unavailable |