PPylon Developers
ApiPayments

Request refund

Requests a refund for a completed payment. Can be partial or full amount.

POST
/api/v1/payments/intents/{id}/refund
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/payments/intents/497f6eca-6276-4993-bfeb-53cbbbba6f08/refund" \  -H "Content-Type: application/json" \  -d '{}'
{
  "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521",
  "amount": 0.1,
  "status": "string"
}
{
  "code": "string",
  "message": "string"
}