Skip to main content
POST
/
v1
/
pay-connect
/
transactions
/
{transaction_id}
/
refund
cURL
curl --request POST \
  --url https://api-payment.lab4pay.com/v1/pay-connect/transactions/{transaction_id}/refund/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Pay-Connect-Integrator-Id: <x-pay-connect-integrator-id>' \
  --data '{
  "amount": 123
}'
{
  "transaction_id": "<string>"
}
Refunds are available only for successfully completed transactions and can be made for the full amount or for part of the original amount.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Pay-Connect-Integrator-Id
string
required

Pay-Connect Integrator ID

Path Parameters

transaction_id
string
required

ID of the transaction

Body

application/json
amount
integer
required

The amount of the refund payment, in cents

Response

Successful operation

transaction_id
string
required

Transaction ID