Close return
Changed onUse this method to close a return if the customer used an alternative payment method to resolve a returned payment.
To close a return, you need the paymentId of the return. To get the paymentId of the return, complete the following steps:
- Use our Retrieve Payment method to view the details of the original payment.
- From the returns object in the response, get the paymentId of the return.
If your request is successful, our gateway closes the return.
Request
- Base URLhttps://api.payroc.com/v1
- URLhttps://api.payroc.com/v1/bank-transfer-payments/{paymentId}/close
- AuthHTTP bearer
Path parameters
Unique identifier that our gateway assigned to the payment.
Headers
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Response
Successful request. We closed the return.
Changes
- breaking
the
//response property's maxLength was increased from100to255for the response status
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
Bearerwas added to the API
- warning