Re-present payment
Use this method to re-present an ACH payment.
To re-present a payment, you need the paymentId of the return. To get the paymentId of the return, complete the following steps:
1. Use our [Retrieve Payment](https://docs.payroc.com/api/schema/bank-transfer-payments/payments/retrieve) method to view the details of the original payment.
2. From the [returns object](https://docs.payroc.com/api/schema/bank-transfer-payments/payments/retrieve#response.body.returns) in the response, get the paymentId of the return.
Our gateway uses the bank account details from the original payment. If you want to update the customer's bank account details, send the new bank account details in the request.
If your request is successful, our gateway re-presents the payment.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
paymentId
Unique identifier that our gateway assigned to the payment.
Headers
Idempotency-Key
Unique identifier that you generate for each request. You must use the [UUID v4 format](https://www.rfc-editor.org/rfc/rfc4122) for the identifier. For more information about the idempotency key, go to [Idempotency](https://docs.payroc.com/api/idempotency).
Request
This endpoint expects an object.
paymentMethod
Object that contains information about the customer's payment details.
Response
Successful request. We processed the payment.
paymentId
Unique identifier that we assigned to the payment.
processingTerminalId
Unique identifier that we assigned to the terminal.
order
Object that contains information about the transaction.
bankAccount
Object that contains information about the bank account.
transactionResult
Object that contains information about the transaction.
customer
Object that contains information about the customer.
refunds
List of refunds issued against the payment.
returns
List of returns issued against the payment.
representment
List of re-presented payments linked to the return.
customFields
Array of customField objects.