post
https://api.ecartapi.com/api/v2/services/payments/authorize/rejected
Authorize Rejected Payment This endpoint allows you to submit a request to authorize a payment that has been rejected. #### Request Body - paymentService (object): An object containing the ID of the payment session and the reason for rejection. - id (string): The ID of the payment session. - 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/PaymentSession/eHm-b6LCD1iC_Ycq0k9SIY7y", "state": { "code": "REJECTED", "reason": "AUTHORIZATION_EXPIRED", "merchantMessage": "Error porque..." } } }
paymentService (object): An object containing the ID of the payment session and the reason for rejection. - id (string): The ID of the payment session. - 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/PaymentSession/eHm-b6LCD1iC_Ycq0k9SIY7y", "state": { "code": "REJECTED", "reason": "AUTHORIZATION_EXPIRED", "merchantMessage": "Error porque..." } } }