code: def refund_order(self, request, pk):
          
          order = Order.objects.get(id=pk)
          order.refund()
          return Response(status=status.HTTP_204_NO_CONTENT)
docs: Refund the order specified by the pk