post
https://api.ecartapi.com/api/v2/services/payments/refund/rejected
Refund Rejected Payment This endpoint is used to submit a refund request for rejected payments. ### Request Body - paymentService (object): An object containing the ID of the payment service and the reason for rejection. - id (string): The ID of the payment service. - reason (object): An object containing the code and message for the rejection reason. - code (string): The code indicating the reason for rejection. - message (string): A message describing the reason for rejection. ### Response The last execution of this request returned a status code of 200 and the following response body: json { "success": true, "paymentService": { "id": "gid://shopify/RefundSession/eHm-b6LCD1iC_Ycq0k9SIY7y", "state": { "code": "REJECTED", "reason": "PROCESSING_ERROR", "merchantMessage": "Error porque..." } } }
json { "success": true, "paymentService": { "id": "gid://shopify/RefundSession/eHm-b6LCD1iC_Ycq0k9SIY7y", "state": { "code": "REJECTED", "reason": "PROCESSING_ERROR", "merchantMessage": "Error porque..." } } }