# Refunds

# Back mode

No API needed, refund operations have to be initiated in the PSP back office of the merchant. Refund the virtual card used for the payment, and it will be propagated to the initial buyer.

# Transfer mode

For the payment by transfer, the merchant can issue a refund by using this endpoint, with the desired amount_cents in the body.

# Authentication

Basic authentication

This enpoint requires a basic authentication

# Endpoint

POST /api/purchases/<purchase_uid>/credit_by_transfer

# Parameters

Parameter Description
amount_cents amount in cents to credit, cannot be greater than the purchase amount cents

# Request example

    "amount_cents": 200

# Response

The endpoint will return a 200 http status code in case of success.
You will receive a 4xx http status code along with a raw text explanation in case of error.