Perform a payment refund Run in API Explorer

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/pgw/doc/axepta-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"axepta API MCP server": {
  "url": "https://bump.sh/pgw/doc/axepta-api/mcp"
}
Close
POST /merchant/{merchantId}/payment/{paymentId}/refund

Path parameters

  • merchantId string Required

    Client identifier

  • paymentId string(uuid) Required

    Transaction identifier as UUID v4

    Maximum length is 36. Format should match the following pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$.

application/json

Body Required

  • type string Required

    Action type

    Value is refund.

  • serviceId string(uuid) Required

    Store identifier as UUID v4

    Maximum length is 36. Format should match the following pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$.

  • amount integer Required

    Transaction amount in the smallest currency unit, e.g. grosz

POST /merchant/{merchantId}/payment/{paymentId}/refund
curl \
 --request POST 'https://api.sandbox.axepta.pl/v1/merchant/{merchantId}/payment/{paymentId}/refund' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"type":"refund","serviceId":"000eec9b-7248-4dae-98f2-56aab6a53927","amount":100}'
Request example
{
  "type": "refund",
  "serviceId": "000eec9b-7248-4dae-98f2-56aab6a53927",
  "amount": 100
}