# Creation of a refund **POST /{merchantId}/transaction/{transactionId}/refund** This request allows you to make a refund for a paid transaction. When making multiple refund transactions simultaneously, please allow **at least a 5-second delay** between each transaction. > For security reasons, refunds can be made: > - for BLIK, up to a maximum of 12 months > - for imoje pay later, up to a maximum of 12 months > - for payment cards, up to 3 years ## Servers - Production environment: https://api.imoje.pl/v1/merchant (Production environment) - Test environment: https://sandbox.api.imoje.pl/v1/merchant (Test environment) ## Authentication methods - Authorization token ## Parameters ### Path parameters - **merchantId** (string) Merchant identifier - **transactionId** (string(uuid)) Transaction identifier as `UUID v4` ### Body: application/json (object) - **type** (string) Transaction type - **serviceId** (string(uuid)) Shop identifier as `UUID v4` - **amount** (integer) The transaction amount in the smallest currency unit, e.g. **pennies**. - **title** (string) Transaction title - **sendRefundConfirmationEmail** (boolean) Send an e-mail confirming the refund to the payer. The e-mail is sent after the refund has been successfully processed (status `settled`) to the e-mail address provided when placing the order. ## Responses ### 200 Request executed correctly #### Body: application/json (object) - **transaction** (object) ### 422 The payload does not contain the required parameters, contains unacceptable parameters, or the values sent in them do not meet the requirements. #### Body: application/json (object) - **apiErrorResponse** (object) Error details [Powered by Bump.sh](https://bump.sh)