Refunding card payments

Submit a refund for a payment

Return issued refund information. The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'

post/v1/payments/{paymentId}/refunds

Path parameters

paymentIdstring required

paymentId

Request body

amountinteger required

Amount in pence. Can't be more than the available amount for refunds

refund_amount_availableinteger

Amount in pence. Total amount still available before issuing the refund

Example request

{
  "amount": 150000,
  "refund_amount_available": 200000
}

Response

successful operation

refund_idstring
created_datestring
amountinteger
status'submitted' | 'success' | 'error'

Example response

{
  "refund_id": "act4c33g40j3edfmi8jknab84x",
  "created_date": "2017-01-10T16:52:07.855Z",
  "amount": 120,
  "_links": {
    "self": {
      "href": "https://an.example.link/from/payment/platform",
      "method": "GET"
    },
    "payment": {
      "href": "https://an.example.link/from/payment/platform",
      "method": "GET"
    }
  },
  "status": "success",
  "settlement_summary": {
    "settled_date": "2016-01-21"
  }
}

Changes

Changed in 7 of the 50 revisions of this API.618

    • ▲

      removed the request body

      request-body-removed

    • ▲

      removed the media type application/json for the response with the status

      response-media-type-removed

    • ▲

      removed the media type application/json for the response with the status

      response-media-type-removed

    • ▲

      removed the media type application/json for the response with the status

      response-media-type-removed

    • ▲

      removed the media type application/json for the response with the status

      response-media-type-removed

    • ○

      the endpoint scheme security Authorization was added to the API

      api-security-added

    • ○

      the endpoint scheme security BearerAuth was removed from the API

      api-security-removed

    This revision also has 46 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ▲

      added required request body

      request-body-added-required

    • ○

      the endpoint scheme security BearerAuth was added to the API

      api-security-added

    • ○

      the endpoint scheme security Authorization was removed from the API

      api-security-removed

    • ○

      added the media type application/json for the response with the status

      response-media-type-added

    • ○

      added the media type application/json for the response with the status

      response-media-type-added

    • ○

      added the media type application/json for the response with the status

      response-media-type-added

    • ○

      added the media type application/json for the response with the status

      response-media-type-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      api tag Refunding card payments added

      api-tag-added

    • ○

      api tag Refunding payments removed

      api-tag-removed

    • ○

      api tag Refunding payments added

      api-tag-added

    • ○

      api tag Refunds removed

      api-tag-removed

    • ○

      api operation id submitRefund removed and replaced with Submit a refund for a payment

      api-operation-id-removed

    • ○

      api tag Refunds added

      api-tag-added

    • ○

      api tag refunds removed

      api-tag-removed

    • ○

      api operation id Submit a refund for a payment removed and replaced with submitRefund

      api-operation-id-removed

    • ○

      api tag refunds added

      api-tag-added

    • ○

      api tag Refunding card payments removed

      api-tag-removed