{ "operationId": "RefundPayment", "method": "POST", "path": "/payments/{paymentId}/refunds", "summary": "VTex Refund payment", "requestExamples": [], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "refundId": "2EA354989E7E4BBC9F9D7B66674C2574", "value": 57, "code": null, "message": "Successfully refunded", "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91", "connectorMetadata": [ { "name": "MetadataName", "value": "MetadataValue" } ] } }, { "status": "500", "contentType": "application/json", "example": { "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "refundId": null, "value": 0, "code": "ERR123", "message": "Refund has failed due to an internal error", "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91" } }, { "status": "501", "contentType": "application/json", "example": { "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "refundId": null, "value": 0, "code": "refund-manually", "message": "This payment needs to be manually refunded", "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91" } } ] }